From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 91DCBA04B1; Wed, 23 Sep 2020 10:10:47 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 58C051D723; Wed, 23 Sep 2020 10:10:46 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 5CE461C215 for ; Wed, 23 Sep 2020 10:10:44 +0200 (CEST) IronPort-SDR: RvSICF0ljJ09okt3uXYM98sLt2nc20+ClM9Z/9AdJcs5UVv79tORBuuQo0SUPZb4UVDGeLKDFO fyUYTiBtX2uw== X-IronPort-AV: E=McAfee;i="6000,8403,9752"; a="148561046" X-IronPort-AV: E=Sophos;i="5.77,293,1596524400"; d="scan'208";a="148561046" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Sep 2020 01:10:43 -0700 IronPort-SDR: Qgi9Wv39h/w0i/pJLGeVQPwFxMRO90sCD1uAxt6p/8a1r0nW5AlVSUTp7SpUnPnxxS40zj2aLU Z9mXUeOF5jkw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,293,1596524400"; d="scan'208";a="290713662" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by fmsmga007.fm.intel.com with ESMTP; 23 Sep 2020 01:10:42 -0700 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 23 Sep 2020 01:10:42 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Wed, 23 Sep 2020 01:10:42 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.169) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Wed, 23 Sep 2020 01:10:42 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J100AeGDffnJzzwlOnPgfHLjEXrAzvPtw6SFnzaDIyyw09g74Okg365nh5fS6TumUPEd5ZnX9/j5DwA5CpL0LOg9nI6mtKWrwv57gANAEp2y967g0jxQgy7srIqs0984JtF8oZfuEhYtS1gPPQTmc52wXih8IT6Mrt16JJeM95Su7kAcv8fil43G6flMnq5/8Xonu0B9YIDuIipeXfqyUe9H9THpacE/5WmGMJ7GLiCe0JWIDzyYdDuNZS/Us9edHCS+wFhj9fH+Xr1MQI5IgBVCDSKTzEYh0hXo/MxQTRRBXJuAzzgv1baRXYL7r2qm/C/L73mOkPnr3YuNIPSmbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IyUzBnHMMRx6DyBmb7lJ1l8bh0KndNybLJyjEDJjvuU=; b=TDD1RdwbNgo8e1o1nl3tcgFy9SZvR49TnfP3acE40O8/egudb6HykrzcQoKdBsrNEcvnoHMiWdhn4gL8kfOGt0SkSJ7UVZ9aqa8lSArrKeN66IUsrYEG3omSnUsAPuqBbdY2uWKJBGC9nUM5AstbjqTrv4Yvl8zbRyLsjwbuEBFCxBE2jARdTE3WQqsZZvB+qStU3UOJhmRVG55z3X/+Cjjn0e+unfWacOYBz84IZegwaiObbr2TUGo49BUVxdu2FM5bCZ+R7PfmRZQA5TawrAfuuWc+D7+2iDVsVtlXmNtUS6KgAJhkJRYF4BokGwUg9JYMC9h6Vfo2VKC0bnYKQw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IyUzBnHMMRx6DyBmb7lJ1l8bh0KndNybLJyjEDJjvuU=; b=yRrT7G76XmSz2GXiBlsHXt+H96RcTwQbDMG9zD0MI+bQqE/Lyu6xZMV2RID4/TEHC/dbJUjd2ZikSNwklX+VgrlYf0yPd1bKgEBSylT7NbkRuyMJM3AN9YrKGZLhhcJCAbsBvTkBMgjXkaPNoS3H38y/K5Mq2VgzdLTz0c54l+s= Received: from BN8PR11MB3795.namprd11.prod.outlook.com (2603:10b6:408:82::31) by BN6PR11MB0036.namprd11.prod.outlook.com (2603:10b6:405:68::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3348.15; Wed, 23 Sep 2020 08:10:38 +0000 Received: from BN8PR11MB3795.namprd11.prod.outlook.com ([fe80::e4a8:91ab:e032:b8ae]) by BN8PR11MB3795.namprd11.prod.outlook.com ([fe80::e4a8:91ab:e032:b8ae%5]) with mapi id 15.20.3391.027; Wed, 23 Sep 2020 08:10:38 +0000 From: "Wang, Haiyue" To: "Guo, Jia" , "Wu, Jingjing" , "Zhang, Qi Z" , "Xing, Beilei" CC: "dev@dpdk.org" Thread-Topic: [PATCH v3] net/iavf: support flex desc metadata extraction Thread-Index: AQHWkX8JOJnipQIgjES5RHPnxX8ylKl13YDg Date: Wed, 23 Sep 2020 08:10:38 +0000 Message-ID: References: <20200909025415.6185-1-jia.guo@intel.com> <20200923075240.106481-1-jia.guo@intel.com> In-Reply-To: <20200923075240.106481-1-jia.guo@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.102.204.38] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3e7d7f07-0823-44e2-ac7e-08d85f9827f5 x-ms-traffictypediagnostic: BN6PR11MB0036: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: UhE7MS/nvPktG2IEvki5utb0eigcxkU/gz+ks55gOMABsp/i7GwCiMFOKSwX+kD6724x/2qHIfwNOScUVmmNkPA5xhWA++fneUpRVvyVijq9a64foZBVyZiCFy02g18h+RkihskB+DFt3TuniRqReSQmbF46R/mDrTVkE1LpxNHjbZaSGtAtI7s3HyOS5J3WIMHMo6QPSehTU9YPFAZSYpBIx6HeY4I8wDJynb8oN3GH2JAubYiJC0KcCwndEhkhPy78wveup3v4TMCYIIEdj250p6HwmhI5wYD0OGf4YI9jtYAN5ogDRmiKFJPGkr/wQ3KnMu/j0YtlrP+j5dc5f/Mm42SXeEBk9qz0ubRDDldU6TG2qEIkP0u7KNEPcEKB x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN8PR11MB3795.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(366004)(136003)(346002)(39860400002)(396003)(2906002)(55016002)(6636002)(4326008)(86362001)(316002)(110136005)(8676002)(8936002)(478600001)(9686003)(5660300002)(76116006)(7696005)(53546011)(6506007)(33656002)(71200400001)(26005)(19627235002)(83380400001)(52536014)(66476007)(64756008)(66556008)(186003)(66446008)(66946007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: qMleq/lwhhkkeUD4k1oxiTThQp660VXlKUjTiBxXQC7/dNTtdb/SPFGQgFuf7OKcwDm/A+eymoG5Y7Ssr7ek3KnmkOkMBXmoy2YdJ3OIwidwHvaKLlY/4CiL+8Mfns3xnkutZ58iSV55Pp5Yrzgk/VPTtt8UaGy7dSLnI4f+SAZtirjHS9Cwb5qQBRH0CVHBIS5DFOxLRkPTU3c5C+76LxeMfMey/rVyyfsoiMzH/oCHYfCToDtFlXUuY81X+pQQpJHDcqZhUxhzrchHf0SEfTHODZt3inpUugr5XRw/l/9J+TIXVWcEXhIB5yQTYUfs5UFotCeEcvkhldvY3L+kis1lnbQkntUzs+TtjPLW4eeoHpCcGnU5HIbSh3BJKPWsbbmeJxCAnoDoWhjf8MsaMgq9EbH/2KYD0N9hz4Sch9mgDHgblWGUvyuCjARIr+cQN0bcSCQbYf7GUyfUEC8CW4cE6lrqDphDcA4OrDN3pDSX3aYI9/DMUX+iTU8EKf/66SktYYqdSlI7ZUnWKPbXFjvF5G/pPK8tkIPJCBtUsi7gtKvuEOcBVhbO3r/VCOHkcsu41bqqfSyURAjD5s1Lvk06t2RQsrMSVyQPdhWHlWwhWyfm7SMJhO1mDUtW9qgviPcNBb4XYwPQ9HQ71EC3TQ== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN8PR11MB3795.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3e7d7f07-0823-44e2-ac7e-08d85f9827f5 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Sep 2020 08:10:38.2115 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: VjGqc2zls6OW3pFE9HhEPFJNHMgr1LW1CenXxpJe6xa8z7vti71slSXhsqI15UgDNCEnWfvBz/DEX5TvX3U3Qg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB0036 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v3] net/iavf: support flex desc metadata extraction 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" > -----Original Message----- > From: Guo, Jia > Sent: Wednesday, September 23, 2020 15:53 > To: Wu, Jingjing ; Zhang, Qi Z ; Xing, Beilei > > Cc: dev@dpdk.org; Wang, Haiyue ; Guo, Jia > Subject: [PATCH v3] net/iavf: support flex desc metadata extraction >=20 > Enable metadata extraction for flexible descriptors in AVF, that would > allow network function directly get metadata without additional parsing > which would reduce the CPU cost for VFs. The enabling metadata > extractions involve the metadata of VLAN/IPv4/IPv6/IPv6-FLOW/TCP/MPLS > flexible descriptors, and the VF could negotiate the capability of > the flexible descriptor with PF and correspondingly configure the > specific offload at receiving queues. >=20 > Signed-off-by: Jeff Guo > --- > v3: > export these global symbols into .map >=20 > v2: > remove makefile change and modify the rxdid handling > --- > doc/guides/rel_notes/release_20_11.rst | 6 + > drivers/net/iavf/iavf.h | 25 +- > drivers/net/iavf/iavf_ethdev.c | 395 ++++++++++++++++++++++ > drivers/net/iavf/iavf_rxtx.c | 282 +++++++++++++-- > drivers/net/iavf/iavf_rxtx.h | 233 +++++++------ > drivers/net/iavf/iavf_vchnl.c | 22 +- > drivers/net/iavf/meson.build | 2 + > drivers/net/iavf/rte_pmd_iavf.h | 250 ++++++++++++++ > drivers/net/iavf/rte_pmd_iavf_version.map | 13 + > 9 files changed, 1081 insertions(+), 147 deletions(-) > create mode 100644 drivers/net/iavf/rte_pmd_iavf.h >=20 > +enum iavf_flex_desc_type { > + IAVF_FLEX_DESC_NONE, > + IAVF_FLEX_DESC_VLAN, > + IAVF_FLEX_DESC_IPV4, > + IAVF_FLEX_DESC_IPV6, > + IAVF_FLEX_DESC_IPV6_FLOW, > + IAVF_FLEX_DESC_TCP, > + IAVF_FLEX_DESC_OVS, > + IAVF_FLEX_DESC_IP_OFFSET, > + IAVF_FLEX_DESC_MAX, > +}; The vector PMD will also support extract the above data type ? Take ice as an example, if user specifies the 'proto_xtr', the vector Rx path will be disabled, it will be handled in C function. enum proto_xtr_type { PROTO_XTR_NONE, PROTO_XTR_VLAN, PROTO_XTR_IPV4, PROTO_XTR_IPV6, PROTO_XTR_IPV6_FLOW, PROTO_XTR_TCP, PROTO_XTR_IP_OFFSET, PROTO_XTR_MAX /* The last one */ }; static inline int ice_rx_vec_queue_default(struct ice_rx_queue *rxq) { ... if (rxq->proto_xtr !=3D PROTO_XTR_NONE) return -1; return 0; } > -- > 2.20.1