From patchwork Tue Jan 19 08:07:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Guo, Jia" X-Patchwork-Id: 86877 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3031EA0A03; Tue, 19 Jan 2021 09:15:00 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BFEE1140D1E; Tue, 19 Jan 2021 09:14:59 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id C8145140CEF for ; Tue, 19 Jan 2021 09:14:58 +0100 (CET) IronPort-SDR: wKMkB6Bb9gMLyh1R7ZsZ0E0L196MVWDJAUno9kgPzTt/xInBeOrA6MSXPDAd9w9JKtAKsxoZ7N tQGL59NpVkig== X-IronPort-AV: E=McAfee;i="6000,8403,9868"; a="175391038" X-IronPort-AV: E=Sophos;i="5.79,358,1602572400"; d="scan'208";a="175391038" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2021 00:14:53 -0800 IronPort-SDR: LNRTnrj4SYuAWCah6jwB01T8z3V5Dp+6Rpue3/XTfrUPMq761GJe48SWksg+8LYKLU9FrmyYmX 3ca2DfnzgAwQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,358,1602572400"; d="scan'208";a="355492932" Received: from npg-dpdk-cvl-jeffguo-01.sh.intel.com ([10.67.111.128]) by fmsmga008.fm.intel.com with ESMTP; 19 Jan 2021 00:14:50 -0800 From: Jeff Guo To: qi.z.zhang@intel.com, qiming.yang@intel.com Cc: dev@dpdk.org, jia.guo@intel.com Date: Tue, 19 Jan 2021 16:07:31 +0800 Message-Id: <20210119080731.83398-1-jia.guo@intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [dpdk-dev] [dpdk-dev v1] net/ice: fix flow rule checking X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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