From d559d2048e368400feb455fa2b082eee81d2f5cc Mon Sep 17 00:00:00 2001 From: Jeff Guo Date: Tue, 19 Jan 2021 16:07:31 +0800 Subject: [PATCH] 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") Signed-off-by: Jeff Guo Acked-by: Qi Zhang --- drivers/net/ice/ice_generic_flow.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ice/ice_generic_flow.c b/drivers/net/ice/ice_generic_flow.c index 454650f6ac..c4496dbbe1 100644 --- a/drivers/net/ice/ice_generic_flow.c +++ b/drivers/net/ice/ice_generic_flow.c @@ -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 -- 2.20.1