Skip to contentSkip to conversation

net/ice: fix flow rule checking

PATCH Applied Jeff Guo 2 participants 2 messages Jan 19, 2021 Network drivers

lore
Share & tools
lore

Jeff Guo

author
#0 lore raw

PATCH 1/1 net/ice: fix flow rule checking

Add empty item into the pattern mapping list when checking the ptype is supported or not, since we do support the NUll pattern for rte flow in ice pmd.

Fixes 68b6240ee9f0 ("net/ice: refactor packet type parsing")
---
 drivers/net/ice/ice_generic_flow.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ice/ice_generic_flow.c +1 -0
index 454650f6ac..c4496dbbe1 100644
@@ -2151,6 +2151,7 @@ static struct ice_ptype_match ice_ptype_map[] = {
 	{pattern_eth_ipv4_nvgre_eth_ipv4,		ICE_MAC_IPV4_TUN_IPV4_PAY},
 	{pattern_eth_ipv4_nvgre_eth_ipv4_udp,		ICE_MAC_IPV4_TUN_IPV4_UDP_PAY},
 	{pattern_eth_ipv4_nvgre_eth_ipv4_tcp,		ICE_MAC_IPV4_TUN_IPV4_TCP},
+	{pattern_empty,					0},
 };
 
 static bool
Signature · 1 line
2.20.1
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 9 lines

-----Original Message-----
From: Guo, Jia <[email protected]>
Sent: Tuesday, January 19, 2021 4:08 PM
To: Zhang, Qi Z <[email protected]>; Yang, Qiming <[email protected]>
Cc: [email protected]; Guo, Jia <[email protected]>
Subject: [dpdk-dev v1] net/ice: fix flow rule checking

Quoted 6 lines

Add empty item into the pattern mapping list when checking the ptype is supported or not, since we do support the NUll pattern for rte flow in ice pmd.

Fixes 68b6240ee9f0 ("net/ice: refactor packet type parsing")

Applied to dpdk-next-net-intel.

Thanks
Qi