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 6A5BBA0A02; Thu, 25 Mar 2021 09:16:11 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4FC7F140D57; Thu, 25 Mar 2021 09:16:11 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 6A9EB140D57 for ; Thu, 25 Mar 2021 09:16:09 +0100 (CET) IronPort-SDR: o80YvIdS1B9aYjNABRQg/mTMVqykA+p8SmQPrEA6TOnDh1+uS6mfSebZcIPoR8qt52+UR9RLxU Lo991lexULhg== X-IronPort-AV: E=McAfee;i="6000,8403,9933"; a="190972424" X-IronPort-AV: E=Sophos;i="5.81,277,1610438400"; d="scan'208";a="190972424" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2021 01:16:08 -0700 IronPort-SDR: YTUqZPgRQH1YZrHxkAwnkw9ia+dpum5XSrPBSgB8KnsYZUZfN7XCqP1iq02lOGHtibIvpNbkLz SpzzmbRfH0tw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,277,1610438400"; d="scan'208";a="442663081" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga002.fm.intel.com with ESMTP; 25 Mar 2021 01:16:08 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) 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.2106.2; Thu, 25 Mar 2021 01:16:07 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Thu, 25 Mar 2021 01:16:06 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2 via Frontend Transport; Thu, 25 Mar 2021 01:16:06 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.103) 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.2106.2; Thu, 25 Mar 2021 01:16:06 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dPUNz2TFbAT3pgo59M4ADq0N3hb1bGa3eD8vhpgWLAM5/Ev28jwG1RVY3uahyKjMYZqDaTcORiMSbsT8gSB5ogQFwpjkTO+mEv01nDdxXo5O3jMuk3wJzAQ2CNjdrkVOUE/zPK+BXONWNRFArMGhix82JPR7FXUzF+KaEVMWq+ePbTuFbfUINws/1kipwaceHFsfCke4JpzybSo9UKXSSmxw8Gz7vOXyofYH0hZKQR4Quvd5e7t1NdxNPopEKBsl571hHipmHXFdnoD8ERXd4s7EklyhmH9zeR53wDiCJ899q9HvZ+Pl4VtLTauN8+STomuiKN1Q7zZqtE7dZC2T7w== 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=SDo06ovySq6gQUayqWrF85gx07xTfOLmtp9QXmmi9LM=; b=W8sCEwiAcit6guxpocXsq9xe6xYO0tETIeuvOuyGtAbVyWfYx8zl9RpB8LcCNsywKVEbZ8cnPgR4/rdr0Ne4i90NvoMuk41q17r7376Gk6UF8prYblZ9PXbMS2yR5bA6onIaJ7IFDM3KmlXrnZf6S0lEF5TzhCZcDMHyB5fZXQeGTHdLwkGT/oOp/P7pCz0rpY/WxgL3VgrtulGm2R9l8ZBOVJWEqofysxoi3f69yyBgBdIJLVzIUKxMCGCfHpS6frwQifNNc9R6sfdf8pNUeUWpywVzY58quW84wrmdC/5LtmHYOQY0hvWWf1aOruOjEedAHfV2ubwucSyMr8FG/w== 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=SDo06ovySq6gQUayqWrF85gx07xTfOLmtp9QXmmi9LM=; b=BiyVsm+zflZjGrSjwqL9rCKHbavSL9hAGCxY7H9hIhcLGbHDztJiZxHcE9hCgOxFocKdHCBrRU1C68GcpwQmrG0A2u6Ij3avjFtG92cGwqSyOEHSmP0VIFEY+ssJdhZWMNeGNC4zGAkpCF4E3fnAh1hKCQGKX3FLzNSlaN3z5q0= Received: from SN6PR11MB3117.namprd11.prod.outlook.com (2603:10b6:805:d7::32) by SA2PR11MB4987.namprd11.prod.outlook.com (2603:10b6:806:113::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.24; Thu, 25 Mar 2021 08:16:02 +0000 Received: from SN6PR11MB3117.namprd11.prod.outlook.com ([fe80::4579:2bc0:3dc8:8b37]) by SN6PR11MB3117.namprd11.prod.outlook.com ([fe80::4579:2bc0:3dc8:8b37%5]) with mapi id 15.20.3977.026; Thu, 25 Mar 2021 08:16:02 +0000 From: "Jayatheerthan, Jay" To: "pbhagavatula@marvell.com" , "jerinj@marvell.com" , "Carrillo, Erik G" , "Gujjar, Abhinandan S" , "McDaniel, Timothy" , "hemant.agrawal@nxp.com" , "Van Haaren, Harry" , mattias.ronnblom , "Ma, Liang J" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v5 3/8] eventdev: introduce event vector Tx capability Thread-Index: AQHXIGuP8Sib7chKaEOIuInUofqVYqqUQNtA Date: Thu, 25 Mar 2021 08:16:02 +0000 Message-ID: References: <20210319205718.1436-1-pbhagavatula@marvell.com> <20210324050525.4489-1-pbhagavatula@marvell.com> <20210324050525.4489-4-pbhagavatula@marvell.com> In-Reply-To: <20210324050525.4489-4-pbhagavatula@marvell.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: marvell.com; dkim=none (message not signed) header.d=none;marvell.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [136.185.187.198] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 116143d4-45b9-4f40-a0ec-08d8ef663b0d x-ms-traffictypediagnostic: SA2PR11MB4987: 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:4502; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: rTwBwpskH1oG3tronKCM7td8S7SKn4QQ2ISuGlIrhp4U+wQhRml1YO6aHxkNcYYMNbC2F+U2eePSI5KmoQVvXRpPhIPeWhDyv528pARsX61dIz2AncPn4GvROs0B/CC0VgIy4wDbP+PvBUUOSIfiDFhq4jHzDaqfiHPSxLZBmEilMnJdO1Al7NK0WySpoXpaUZoP1kLs7KAOZZeQUYEYRsQAkh8JT0UE3CD0Bg7Wh4l6AIT5XAOQhbj+TF9jb7QwLmobAVxJRjstcqgR+Kyf3atTTxXAN9qO3ww8rJzQ+7RZVPNs8ZO7ktoGUpX8uiWJE5I35CMJeh2QhoYEsyhsGGTBasfg1x6Ub9hGVnLGVQbu1Oq4KRfL6lJJxQ/rCTmP9376RFOn08wjye9wcczD3q+Gv+F+MrTOqd8KSNYOltX+WtItD0YNZk5chs/Vw6Vkg2Ha5/g6+0jFkNH09wuk5GuaKfv6VTXISBtHOWI475BJEwKKHJjDhBO1PisJEz7hNPwqLK7hKtBozvkqUx8FwJ/tc0rNpD7kSd/Hw1BZXUc3w7jIE3mW/BG8XP/zW43Sdi4LPDc5/V/wZ1PO1x/QXnlDW50MU0LuCWBWzr/cxnirYUI4Pvvs6ZbMAziJE79o5+L7hfMFm/crsZjNc4zRYtR7VTBENaaflJL2OHPh8S1aMp5RzMKrjaBbz8XisxaH x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB3117.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(376002)(39860400002)(346002)(396003)(136003)(186003)(8676002)(478600001)(316002)(6636002)(26005)(5660300002)(921005)(8936002)(6506007)(38100700001)(7696005)(52536014)(71200400001)(4326008)(9686003)(64756008)(66446008)(55016002)(53546011)(66476007)(33656002)(86362001)(83380400001)(110136005)(2906002)(76116006)(66946007)(66556008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?zsI81mIj6EguOh9AlonKdQRvH7PaMV4loW9/RJmz4dMMTXfichZ7aqMKws8J?= =?us-ascii?Q?FYzgyS2NcFTkBmglGqwmn+pvb1mVgiWjmZ8uMkbSGZc/iO65nMtVhkwEEnWc?= =?us-ascii?Q?P3Gw7+zG+O+8kvm7xBceam9RemCxcK1p6UVt/D3MPjF+0+KjBF6zmbGpImby?= =?us-ascii?Q?NKCd+eZu0MQnIxTg3OY6h+NL0ux6OYAMjReKnmhYDXhf9SyrGlQYJ27L3Brg?= =?us-ascii?Q?DundNAZtor1riwZ6+3TPdWO3w+DbNHOw9+WSpQ0yL7PISZBj7sTTSPoYIqkH?= =?us-ascii?Q?s1VFO+K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WfvHi?= =?us-ascii?Q?8UpDyv3oh/e8Ecbh/Ql3CzQOwbTlVBCrnp0Y8uNJY9+EkVudNbKVRGt35Hab?= =?us-ascii?Q?nzbIeQfYhiukg3pVZQOvdsjaMAUKc8IYUVpoc2+gnIgHsLrfUuKAslinGeqV?= =?us-ascii?Q?PS6m4il99hDLeHYbiOvlcv8e?= 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: SN6PR11MB3117.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 116143d4-45b9-4f40-a0ec-08d8ef663b0d X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Mar 2021 08:16:02.8657 (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: GpsmitZ0DWO2nOQIyLukXhE2Zr9clXs7knYV4kbpiy0L85w4sLW9dng+U0D2fFfKrW0S7zbgN7Fudsk3CPGYs/a1HFO5LZGShbNDirelm4g= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB4987 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v5 3/8] eventdev: introduce event vector Tx capability 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" > -----Original Message----- > From: pbhagavatula@marvell.com > Sent: Wednesday, March 24, 2021 10:35 AM > To: jerinj@marvell.com; Jayatheerthan, Jay ;= Carrillo, Erik G ; Gujjar, > Abhinandan S ; McDaniel, Timothy ; hemant.agrawal@nxp.com; Van > Haaren, Harry ; mattias.ronnblom ; Ma, Liang J > > Cc: dev@dpdk.org; Pavan Nikhilesh > Subject: [dpdk-dev] [PATCH v5 3/8] eventdev: introduce event vector Tx ca= pability >=20 > From: Pavan Nikhilesh >=20 > Introduce event vector transmit capability for event eth > tx adapter. >=20 > The capability indicates that the Tx adapter is capable of > transmitting event vectors. > When rte_event_vector::union_valid is set, the Tx adapter should > transmit all the packets to the rte_event_vector::port using the > rte_event_vector::queue. > If rte_event_vector::union_valid is not set then the Tx adapter > should peek into each mbuf to get the destination port and queue > pair. >=20 > Signed-off-by: Pavan Nikhilesh > Acked-by: Jerin Jacob > --- > doc/guides/prog_guide/event_ethernet_tx_adapter.rst | 12 ++++++++++++ > lib/librte_eventdev/rte_eventdev.h | 8 +++++++- > 2 files changed, 19 insertions(+), 1 deletion(-) >=20 > diff --git a/doc/guides/prog_guide/event_ethernet_tx_adapter.rst b/doc/gu= ides/prog_guide/event_ethernet_tx_adapter.rst > index a8c13e136..87277dcaf 100644 > --- a/doc/guides/prog_guide/event_ethernet_tx_adapter.rst > +++ b/doc/guides/prog_guide/event_ethernet_tx_adapter.rst > @@ -164,3 +164,15 @@ The ``rte_event_eth_tx_adapter_stats_get()`` functi= on reports counters defined > in struct ``rte_event_eth_tx_adapter_stats``. The counter values are the= sum of > the counts from the eventdev PMD callback if the callback is supported, = and > the counts maintained by the service function, if one exists. > + > +Tx event vectorization > +~~~~~~~~~~~~~~~~~~~~~~ > + > +The event device, ethernet device paris which support the capability Typo: "pairs" instead of "paris". > +``RTE_EVENT_ETH_TX_ADAPTER_CAP_EVENT_VECTOR`` can process event vector o= f mbufs. > +Additionally, application can provide a hint to that Tx adapter that all= the Typo: "hint to the Tx adapter" instead of "hint to that Tx adapter" > +mbufs are destined to the same ethernet port and queue by setting the bi= t > +``rte_event_vector::attr_valid`` and filling `rte_event_vector::port`` a= nd > +``rte_event_vector::queue``. > +If ``rte_event_vector::attr_valid`` is not set then the Tx adapter shoul= d peek > +into each mbuf and transmit them to the requested ethernet port and queu= e pair. > diff --git a/lib/librte_eventdev/rte_eventdev.h b/lib/librte_eventdev/rte= _eventdev.h > index 678338247..67b681ef6 100644 > --- a/lib/librte_eventdev/rte_eventdev.h > +++ b/lib/librte_eventdev/rte_eventdev.h > @@ -927,11 +927,13 @@ struct rte_event_vector { > /**< Indicates that the below union attributes have valid information. > */ > union { > - /* Used by Rx adapter. > + /* Used by Rx/Tx adapter. > * Indicates that all the elements in this vector belong to the > * same port and queue pair when originating from Rx adapter, > * valid only when event type is ETHDEV_VECTOR or > * ETH_RX_ADAPTER_VECTOR. > + * Can also be used to indicate the Tx adapter the destination > + * port and queue of the mbufs in the vector > */ > struct { > uint16_t port; > @@ -1293,6 +1295,10 @@ rte_event_crypto_adapter_caps_get(uint8_t dev_id, = uint8_t cdev_id, > #define RTE_EVENT_ETH_TX_ADAPTER_CAP_INTERNAL_PORT 0x1 > /**< This flag is sent when the PMD supports a packet transmit callback > */ > +#define RTE_EVENT_ETH_TX_ADAPTER_CAP_EVENT_VECTOR 0x2 > +/**< Indicates that the Tx adapter is capable of handling event vector o= f > + * mbufs. > + */ >=20 > /** > * Retrieve the event device's eth Tx adapter capabilities > -- > 2.17.1 With above changes, you can add Acked-by: Jay Jayatheerthan .