blob: 44d97baddb174cab051b5df0143b4166a956726f [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From 17bde33ffe50be558520a063392dc73b319a7f20 Mon Sep 17 00:00:00 2001
2From: Yangbo Lu <yangbo.lu@nxp.com>
3Date: Thu, 28 Nov 2019 11:48:24 +0800
4Subject: [PATCH] LF-368 net: mscc: ocelot: hard code VCAP_PORT_CNT for Felix
5 temporarily
6
7The Felix switch supports different port number with Ocelot.
8This makes the bits mapping in TCAM entry and Action entry
9is different with Ocelot for VCAP function.
10
11Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
12---
13 drivers/net/ethernet/mscc/ocelot_vcap.h | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16--- a/drivers/net/ethernet/mscc/ocelot_vcap.h
17+++ b/drivers/net/ethernet/mscc/ocelot_vcap.h
18@@ -25,7 +25,7 @@
19 #define VCAP_IS2_CNT 64
20 #define VCAP_IS2_ENTRY_WIDTH 376
21 #define VCAP_IS2_ACTION_WIDTH 99
22-#define VCAP_PORT_CNT 11
23+#define VCAP_PORT_CNT 6
24
25 /* IS2 half key types */
26 #define IS2_TYPE_ETYPE 0