Skip to content

Commit b334ec6

Browse files
committed
Merge branch 'Fix-broken-tc-flower-rules-for-mscc_ocelot-switches'
Vladimir Oltean says: ==================== Fix broken tc-flower rules for mscc_ocelot switches All 3 switch drivers from the Ocelot family have the same bug in the VCAP IS2 key offsets, which is that some keys are in the incorrect order. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
2 parents d5e4d0a + 8194d8f commit b334ec6

3 files changed

Lines changed: 24 additions & 24 deletions

File tree

drivers/net/dsa/ocelot/felix_vsc9959.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -645,17 +645,17 @@ static struct vcap_field vsc9959_vcap_is2_keys[] = {
645645
[VCAP_IS2_HK_DIP_EQ_SIP] = {118, 1},
646646
/* IP4_TCP_UDP (TYPE=100) */
647647
[VCAP_IS2_HK_TCP] = {119, 1},
648-
[VCAP_IS2_HK_L4_SPORT] = {120, 16},
649-
[VCAP_IS2_HK_L4_DPORT] = {136, 16},
648+
[VCAP_IS2_HK_L4_DPORT] = {120, 16},
649+
[VCAP_IS2_HK_L4_SPORT] = {136, 16},
650650
[VCAP_IS2_HK_L4_RNG] = {152, 8},
651651
[VCAP_IS2_HK_L4_SPORT_EQ_DPORT] = {160, 1},
652652
[VCAP_IS2_HK_L4_SEQUENCE_EQ0] = {161, 1},
653-
[VCAP_IS2_HK_L4_URG] = {162, 1},
654-
[VCAP_IS2_HK_L4_ACK] = {163, 1},
655-
[VCAP_IS2_HK_L4_PSH] = {164, 1},
656-
[VCAP_IS2_HK_L4_RST] = {165, 1},
657-
[VCAP_IS2_HK_L4_SYN] = {166, 1},
658-
[VCAP_IS2_HK_L4_FIN] = {167, 1},
653+
[VCAP_IS2_HK_L4_FIN] = {162, 1},
654+
[VCAP_IS2_HK_L4_SYN] = {163, 1},
655+
[VCAP_IS2_HK_L4_RST] = {164, 1},
656+
[VCAP_IS2_HK_L4_PSH] = {165, 1},
657+
[VCAP_IS2_HK_L4_ACK] = {166, 1},
658+
[VCAP_IS2_HK_L4_URG] = {167, 1},
659659
[VCAP_IS2_HK_L4_1588_DOM] = {168, 8},
660660
[VCAP_IS2_HK_L4_1588_VER] = {176, 4},
661661
/* IP4_OTHER (TYPE=101) */

drivers/net/dsa/ocelot/seville_vsc9953.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -659,17 +659,17 @@ static struct vcap_field vsc9953_vcap_is2_keys[] = {
659659
[VCAP_IS2_HK_DIP_EQ_SIP] = {122, 1},
660660
/* IP4_TCP_UDP (TYPE=100) */
661661
[VCAP_IS2_HK_TCP] = {123, 1},
662-
[VCAP_IS2_HK_L4_SPORT] = {124, 16},
663-
[VCAP_IS2_HK_L4_DPORT] = {140, 16},
662+
[VCAP_IS2_HK_L4_DPORT] = {124, 16},
663+
[VCAP_IS2_HK_L4_SPORT] = {140, 16},
664664
[VCAP_IS2_HK_L4_RNG] = {156, 8},
665665
[VCAP_IS2_HK_L4_SPORT_EQ_DPORT] = {164, 1},
666666
[VCAP_IS2_HK_L4_SEQUENCE_EQ0] = {165, 1},
667-
[VCAP_IS2_HK_L4_URG] = {166, 1},
668-
[VCAP_IS2_HK_L4_ACK] = {167, 1},
669-
[VCAP_IS2_HK_L4_PSH] = {168, 1},
670-
[VCAP_IS2_HK_L4_RST] = {169, 1},
671-
[VCAP_IS2_HK_L4_SYN] = {170, 1},
672-
[VCAP_IS2_HK_L4_FIN] = {171, 1},
667+
[VCAP_IS2_HK_L4_FIN] = {166, 1},
668+
[VCAP_IS2_HK_L4_SYN] = {167, 1},
669+
[VCAP_IS2_HK_L4_RST] = {168, 1},
670+
[VCAP_IS2_HK_L4_PSH] = {169, 1},
671+
[VCAP_IS2_HK_L4_ACK] = {170, 1},
672+
[VCAP_IS2_HK_L4_URG] = {171, 1},
673673
/* IP4_OTHER (TYPE=101) */
674674
[VCAP_IS2_HK_IP4_L3_PROTO] = {123, 8},
675675
[VCAP_IS2_HK_L3_PAYLOAD] = {131, 56},

drivers/net/ethernet/mscc/ocelot_vsc7514.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -806,17 +806,17 @@ static const struct vcap_field vsc7514_vcap_is2_keys[] = {
806806
[VCAP_IS2_HK_DIP_EQ_SIP] = {123, 1},
807807
/* IP4_TCP_UDP (TYPE=100) */
808808
[VCAP_IS2_HK_TCP] = {124, 1},
809-
[VCAP_IS2_HK_L4_SPORT] = {125, 16},
810-
[VCAP_IS2_HK_L4_DPORT] = {141, 16},
809+
[VCAP_IS2_HK_L4_DPORT] = {125, 16},
810+
[VCAP_IS2_HK_L4_SPORT] = {141, 16},
811811
[VCAP_IS2_HK_L4_RNG] = {157, 8},
812812
[VCAP_IS2_HK_L4_SPORT_EQ_DPORT] = {165, 1},
813813
[VCAP_IS2_HK_L4_SEQUENCE_EQ0] = {166, 1},
814-
[VCAP_IS2_HK_L4_URG] = {167, 1},
815-
[VCAP_IS2_HK_L4_ACK] = {168, 1},
816-
[VCAP_IS2_HK_L4_PSH] = {169, 1},
817-
[VCAP_IS2_HK_L4_RST] = {170, 1},
818-
[VCAP_IS2_HK_L4_SYN] = {171, 1},
819-
[VCAP_IS2_HK_L4_FIN] = {172, 1},
814+
[VCAP_IS2_HK_L4_FIN] = {167, 1},
815+
[VCAP_IS2_HK_L4_SYN] = {168, 1},
816+
[VCAP_IS2_HK_L4_RST] = {169, 1},
817+
[VCAP_IS2_HK_L4_PSH] = {170, 1},
818+
[VCAP_IS2_HK_L4_ACK] = {171, 1},
819+
[VCAP_IS2_HK_L4_URG] = {172, 1},
820820
[VCAP_IS2_HK_L4_1588_DOM] = {173, 8},
821821
[VCAP_IS2_HK_L4_1588_VER] = {181, 4},
822822
/* IP4_OTHER (TYPE=101) */

0 commit comments

Comments
 (0)