]> git.droids-corp.org - dpdk.git/commitdiff
net/ice: fix flow rule checking
authorJeff Guo <jia.guo@intel.com>
Tue, 19 Jan 2021 08:07:31 +0000 (16:07 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 19 Jan 2021 17:30:00 +0000 (18:30 +0100)
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")
Signed-off-by: Jeff Guo <jia.guo@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_generic_flow.c

index 454650f6acc27c0b9ff299c857e0ba9b8d643813..c4496dbbe12d6606f504be7267bc03cd7ecaa0b9 100644 (file)
@@ -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