From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 931EEA04B5; Wed, 13 Jan 2021 06:38:04 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 05D05140E08; Wed, 13 Jan 2021 06:38:04 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id A53DC140E03 for ; Wed, 13 Jan 2021 06:38:02 +0100 (CET) IronPort-SDR: JcI8HxzeXS8NIkVZQKLEGOaCIilKu7o1kchVonp5Xr7QTHChBFZQ7HMkaAGuMYdn/zNGJSADA0 xd6rjH5XyiWw== X-IronPort-AV: E=McAfee;i="6000,8403,9862"; a="174646027" X-IronPort-AV: E=Sophos;i="5.79,343,1602572400"; d="scan'208";a="174646027" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2021 21:38:01 -0800 IronPort-SDR: nHiMqeMHUnhw1wVKuJgGMMokAweor2WAiJtY0Bfd9En6HmEfEBcb82Bld0FJVthrzYotOaVdKB TfzyHdiXnZww== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,343,1602572400"; d="scan'208";a="353323606" Received: from npg-dpdk-cvl-jeffguo-01.sh.intel.com ([10.67.111.128]) by fmsmga008.fm.intel.com with ESMTP; 12 Jan 2021 21:37:59 -0800 From: Jeff Guo To: qi.z.zhang@intel.com, jingjing.wu@intel.com, qiming.yang@intel.com, haiyue.wang@intel.com Cc: dev@dpdk.org, jia.guo@intel.com, simei.su@intel.com Date: Wed, 13 Jan 2021 13:31:27 +0800 Message-Id: <20210113053129.49211-1-jia.guo@intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201216085854.7842-1-jia.guo@intel.com> References: <20201216085854.7842-1-jia.guo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [dpdk-dev v4 0/2] net/ice: refactor PTYPE parsing 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" If the capability of a PTYPE within a specific package could be negotiated, no need to maintain a different PTYPE list for each type of the package when parsing PTYPE. So refactor the PTYPE parsing mechanism for each flow engines. v4: rebase patch and add some more PTYPE macros v3: separate the patch set from the ecpri configure patch set Jeff Guo (2): net/ice/base: add PTYPE value net/ice: refactor PTYPE parsing drivers/net/ice/base/ice_flex_type.h | 189 +++++++++++++++++++++------ drivers/net/ice/ice_acl_filter.c | 3 +- drivers/net/ice/ice_fdir_filter.c | 63 ++------- drivers/net/ice/ice_generic_flow.c | 132 +++++++++++++++++-- drivers/net/ice/ice_generic_flow.h | 9 +- drivers/net/ice/ice_hash.c | 51 ++------ drivers/net/ice/ice_switch_filter.c | 139 +++----------------- 7 files changed, 315 insertions(+), 271 deletions(-) -- 2.20.1