Skip to contentSkip to conversation

net/ice/base: fix internal etype in switch filter

PATCH Applied Mingjin Ye 2 participants 2 messages Jun 15, 2023 – Jun 16, 2023 Network drivers

lore
Share & tools
lore

Mingjin Ye

author
#0 lore raw

PATCH 1/1 net/ice/base: fix internal etype in switch filter

The definition of internal etype was missing in the preferred grouping table and protocol structure mapping table of a recipe. This was causing some functions to be abnormal.

This patch adds the missing internal etype definition to the relevant tables to fix the issue.

Fixes ee3e244afb06 ("net/ice/base: support ethertype switch filters")
---
 drivers/net/ice/base/ice_switch.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/ice/base/ice_switch.c +2 -0
index 1f391002b8..f7fcc3a8d4 100644
@@ -6985,6 +6985,7 @@ static const struct ice_prot_ext_tbl_entry ice_prot_ext[ICE_PROTOCOL_LAST] = {
 	{ ICE_MAC_OFOS,		{ 0, 2, 4, 6, 8, 10, 12 } },
 	{ ICE_MAC_IL,		{ 0, 2, 4, 6, 8, 10, 12 } },
 	{ ICE_ETYPE_OL,		{ 0 } },
+	{ ICE_ETYPE_IL,		{ 0 } },
 	{ ICE_VLAN_OFOS,	{ 2, 0 } },
 	{ ICE_IPV4_OFOS,	{ 0, 2, 4, 6, 8, 10, 12, 14, 16, 18 } },
 	{ ICE_IPV4_IL,		{ 0, 2, 4, 6, 8, 10, 12, 14, 16, 18 } },
@@ -7022,6 +7023,7 @@ static struct ice_protocol_entry ice_prot_id_tbl[ICE_PROTOCOL_LAST] = {
 	{ ICE_MAC_OFOS,		ICE_MAC_OFOS_HW },
 	{ ICE_MAC_IL,		ICE_MAC_IL_HW },
 	{ ICE_ETYPE_OL,		ICE_ETYPE_OL_HW },
+	{ ICE_ETYPE_IL,		ICE_ETYPE_IL_HW },
 	{ ICE_VLAN_OFOS,	ICE_VLAN_OL_HW },
 	{ ICE_IPV4_OFOS,	ICE_IPV4_OFOS_HW },
 	{ ICE_IPV4_IL,		ICE_IPV4_IL_HW },
Signature · 1 line
2.25.1
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 15 lines

-----Original Message-----
From: Ye, MingjinX <[email protected]>
Sent: Thursday, June 15, 2023 6:05 PM
To: [email protected]
Cc: Yang, Qiming <[email protected]>; [email protected]; Zhou, YidingX <[email protected]>; Ye, MingjinX <[email protected]>; Zhang, Qi Z <[email protected]>
Subject: [PATCH] net/ice/base: fix internal etype in switch filter

The definition of internal etype was missing in the preferred grouping table and protocol structure mapping table of a recipe. This was causing some functions to be abnormal.

Quoted 7 lines

This patch adds the missing internal etype definition to the relevant tables to fix the issue.

Fixes ee3e244afb06 ("net/ice/base: support ethertype switch filters")

Applied to dpdk-next-net-intel.

Thanks
Qi