From patchwork Tue Oct 27 01:23:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wang, Haiyue" X-Patchwork-Id: 82256 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 dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A9037A04B5; Tue, 27 Oct 2020 02:36:12 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 88AB02BAF; Tue, 27 Oct 2020 02:36:11 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 0722D100C for ; Tue, 27 Oct 2020 02:36:08 +0100 (CET) IronPort-SDR: pvHmw8UN8kezWm8+mj6AzcAcxDsGIt1Ecd/p0Ae0aoWc7S9BhvjsjcroELkCSKhikmMjtpoby9 reSrQqT1kLJQ== X-IronPort-AV: E=McAfee;i="6000,8403,9786"; a="147867237" X-IronPort-AV: E=Sophos;i="5.77,422,1596524400"; d="scan'208";a="147867237" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2020 18:36:06 -0700 IronPort-SDR: XreMf7FGUxn9178w4tbzihbsVX5R/G+hqKxnZhJm8vQ9JWrqO0odqiXmjtHURq86mWpBpc9wMV BZuMx6pu4+VQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,422,1596524400"; d="scan'208";a="468124209" Received: from npg-dpdk-haiyue-3.sh.intel.com ([10.67.118.151]) by orsmga004.jf.intel.com with ESMTP; 26 Oct 2020 18:36:04 -0700 From: Haiyue Wang To: dev@dpdk.org Cc: ferruh.yigit@intel.com, jia.guo@intel.com, qi.z.zhang@intel.com, zhaoyan.chen@intel.com, olivier.matz@6wind.com, Haiyue Wang , Qiming Yang Date: Tue, 27 Oct 2020 09:23:28 +0800 Message-Id: <20201027012328.30744-1-haiyue.wang@intel.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20201025071352.221953-1-haiyue.wang@intel.com> References: <20201025071352.221953-1-haiyue.wang@intel.com> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v4] net/ice: rename the dynamic mbuf name X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Rename the dynamic mbuf name to 'intel_pmd_xxx' format, so that the Intel PMD which has the protocol extraction feature will share the same dynamic field/flags space in mbuf. Signed-off-by: Haiyue Wang Acked-by: Qi Zhang --- v4: "who register, who use", even the PMD has the duplicated code with different name space, the defined API will help the application to focus on the function itself that the PMD provides. v3: Fix 'regiser' typo in commit message. v2: update the commit message, doc; and add the error handling for dynamic mbuf lookup. Also keep the metadata format defination. --- drivers/net/ice/ice_ethdev.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index 3483f99897..d51f3faba4 100644 --- a/drivers/net/ice/ice_ethdev.c +++ b/drivers/net/ice/ice_ethdev.c @@ -33,7 +33,7 @@ static const char * const ice_valid_args[] = { }; static const struct rte_mbuf_dynfield ice_proto_xtr_metadata_param = { - .name = "ice_dynfield_proto_xtr_metadata", + .name = "intel_pmd_dynfield_proto_xtr_metadata", .size = sizeof(uint32_t), .align = __alignof__(uint32_t), .flags = 0, @@ -49,22 +49,22 @@ static bool ice_proto_xtr_hw_support[PROTO_XTR_MAX]; static struct proto_xtr_ol_flag ice_proto_xtr_ol_flag_params[] = { [PROTO_XTR_VLAN] = { - .param = { .name = "ice_dynflag_proto_xtr_vlan" }, + .param = { .name = "intel_pmd_dynflag_proto_xtr_vlan" }, .ol_flag = &rte_net_ice_dynflag_proto_xtr_vlan_mask }, [PROTO_XTR_IPV4] = { - .param = { .name = "ice_dynflag_proto_xtr_ipv4" }, + .param = { .name = "intel_pmd_dynflag_proto_xtr_ipv4" }, .ol_flag = &rte_net_ice_dynflag_proto_xtr_ipv4_mask }, [PROTO_XTR_IPV6] = { - .param = { .name = "ice_dynflag_proto_xtr_ipv6" }, + .param = { .name = "intel_pmd_dynflag_proto_xtr_ipv6" }, .ol_flag = &rte_net_ice_dynflag_proto_xtr_ipv6_mask }, [PROTO_XTR_IPV6_FLOW] = { - .param = { .name = "ice_dynflag_proto_xtr_ipv6_flow" }, + .param = { .name = "intel_pmd_dynflag_proto_xtr_ipv6_flow" }, .ol_flag = &rte_net_ice_dynflag_proto_xtr_ipv6_flow_mask }, [PROTO_XTR_TCP] = { - .param = { .name = "ice_dynflag_proto_xtr_tcp" }, + .param = { .name = "intel_pmd_dynflag_proto_xtr_tcp" }, .ol_flag = &rte_net_ice_dynflag_proto_xtr_tcp_mask }, [PROTO_XTR_IP_OFFSET] = { - .param = { .name = "ice_dynflag_proto_xtr_ip_offset" }, + .param = { .name = "intel_pmd_dynflag_proto_xtr_ip_offset" }, .ol_flag = &rte_net_ice_dynflag_proto_xtr_ip_offset_mask }, };