X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fstaging%2Fwigyori.git;a=blobdiff_plain;f=target%2Flinux%2Flayerscape%2Fpatches-5.4%2F701-net-0339-LF-368-net-mscc-ocelot-hard-code-VCAP_PORT_CNT-for-F.patch;fp=target%2Flinux%2Flayerscape%2Fpatches-5.4%2F701-net-0339-LF-368-net-mscc-ocelot-hard-code-VCAP_PORT_CNT-for-F.patch;h=44d97baddb174cab051b5df0143b4166a956726f;hp=0000000000000000000000000000000000000000;hb=cddd4591404fb4c53dc0b3c0b15b942cdbed4356;hpb=d1d2c0b5579ea4f69a42246c9318539d61ba1999 diff --git a/target/linux/layerscape/patches-5.4/701-net-0339-LF-368-net-mscc-ocelot-hard-code-VCAP_PORT_CNT-for-F.patch b/target/linux/layerscape/patches-5.4/701-net-0339-LF-368-net-mscc-ocelot-hard-code-VCAP_PORT_CNT-for-F.patch new file mode 100644 index 0000000000..44d97baddb --- /dev/null +++ b/target/linux/layerscape/patches-5.4/701-net-0339-LF-368-net-mscc-ocelot-hard-code-VCAP_PORT_CNT-for-F.patch @@ -0,0 +1,26 @@ +From 17bde33ffe50be558520a063392dc73b319a7f20 Mon Sep 17 00:00:00 2001 +From: Yangbo Lu +Date: Thu, 28 Nov 2019 11:48:24 +0800 +Subject: [PATCH] LF-368 net: mscc: ocelot: hard code VCAP_PORT_CNT for Felix + temporarily + +The Felix switch supports different port number with Ocelot. +This makes the bits mapping in TCAM entry and Action entry +is different with Ocelot for VCAP function. + +Signed-off-by: Yangbo Lu +--- + drivers/net/ethernet/mscc/ocelot_vcap.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/net/ethernet/mscc/ocelot_vcap.h ++++ b/drivers/net/ethernet/mscc/ocelot_vcap.h +@@ -25,7 +25,7 @@ + #define VCAP_IS2_CNT 64 + #define VCAP_IS2_ENTRY_WIDTH 376 + #define VCAP_IS2_ACTION_WIDTH 99 +-#define VCAP_PORT_CNT 11 ++#define VCAP_PORT_CNT 6 + + /* IS2 half key types */ + #define IS2_TYPE_ETYPE 0