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 07992A0548; Wed, 1 Jun 2022 11:03:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ED22540694; Wed, 1 Jun 2022 11:03:55 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2072.outbound.protection.outlook.com [40.107.94.72]) by mails.dpdk.org (Postfix) with ESMTP id D433040689 for ; Wed, 1 Jun 2022 11:03:54 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bPp/bimf2yF5dap9xBxEXafiE3J+FKmKkd7AUQfNafSITw9/auL5Mhcv4uauuEdcQd0jbYlecFJlgn8vYM7UDY8QIaVKiHzj3irq6+pm9f0282aYE6GQhzxVFBUqtIBo7M8v9imypquoWaZPb1ONPkElQOJSN2+9q8pRLWtaFs9JnO22KsGyuFKbIBEi6Yh+d62OvwDVI7ixZ1vnSWcf0LiT5nNSWLRaGZPpP1JdSLlJ1b+YnyXsDRmoeY+aLVRj7kNqS8QxSz4jbjb4DpOfDMnM1Vdd98d+a0NAkfjQPDiudUk/uSqzd8WC126jffqqVMJmA4utdBB3qUm6Pv4UUQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kngdliR7mM/2CMGKalA2+0rb31eY4Ddr86V7XZBFS70=; b=XeTh/PFqj5qtYS0Og7XLfe6hGRZp2tmhlAh1NQM/xn/UzbK393y9v/Qdrx8r005F7D5N180thOvt9U6g7py74NDCiqlzCZM75I88nHW9vZsXYEzjQmVaaw9LfE5MP+p+vcX709W5bfwB7Vk/Tu+aqxd1PIs51UB/hJ8rUhqyq1Qm+YWsocmjmTy4fy8UjVNcQcXscx2I/I6EFL2lPt9nVzAvTdZLO5bp+1w7tiPGW9WxWcL5ICUH70f0Cgn4PPnTgB8Mhtx/K2wzafCquEA9dBFgCZ2C5sn5WAHgdnHFDWgWSyi+L7kIUdvcxbApeBhZWcOMrdc5PVQV0hr9Muj2Sg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kngdliR7mM/2CMGKalA2+0rb31eY4Ddr86V7XZBFS70=; b=Kw2+AfJeICeRu5nUr9wmIPzvSAuP8gPMc+x8v+9u+48g828y3j4vL2Uk4awO7d2Yrle5IQcZBPvtGqwqIE6h1f5IjJATwtnlN60C+kMbUliEa5rfIlBAXhuxe3JePOmj4nDRT0W7zT7AuvJwrOf2Ge8phYY95+Ta5nstsU3XXDHjiVPHRmcIghPOR/aXrhH85qEX3PSWeZypA4YBvSRkSTDOpZLRD6d2nMj7aEAmFysRhgeeMKpMGnY63Hpahxok2B/wiuvx+rwS3qY7QIhrB2+cl1u1eAdxQ7LsFXs0GDKmjl8VjxvcBLQTAKrpRY/dFu9IgA2U+/tI1UfK2J/zaA== Received: from MW2PR12MB4666.namprd12.prod.outlook.com (2603:10b6:302:13::22) by BYAPR12MB3319.namprd12.prod.outlook.com (2603:10b6:a03:dc::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.12; Wed, 1 Jun 2022 09:03:52 +0000 Received: from MW2PR12MB4666.namprd12.prod.outlook.com ([fe80::edeb:4144:1ee4:83a1]) by MW2PR12MB4666.namprd12.prod.outlook.com ([fe80::edeb:4144:1ee4:83a1%6]) with mapi id 15.20.5293.019; Wed, 1 Jun 2022 09:03:52 +0000 From: Ori Kam To: Jack Min , "NBU-Contact-Thomas Monjalon (EXTERNAL)" , Ferruh Yigit , Andrew Rybchenko CC: "dev@dpdk.org" Subject: RE: [RFC v2 1/2] ethdev: port flags for pre-configuration flow hints Thread-Topic: [RFC v2 1/2] ethdev: port flags for pre-configuration flow hints Thread-Index: AQHYdYrFcodPKcqbtEGyhrR9XU5E1a06Qaog Date: Wed, 1 Jun 2022 09:03:52 +0000 Message-ID: References: <608febf8d5d3c434a1eddb2e56f425ebbd6ff0b4.1654063912.git.jackmin@nvidia.com> In-Reply-To: <608febf8d5d3c434a1eddb2e56f425ebbd6ff0b4.1654063912.git.jackmin@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: afc12046-5d56-4c8a-1646-08da43ada672 x-ms-traffictypediagnostic: BYAPR12MB3319:EE_ x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: hvZ0bEht9pHYfbEYqSX9wKmZyc83g69h4IexK1vufs693CVHN3piLwNLzbdyv9CeQKMlcEKwV8eiI+Z6ns9eMbqYs2DFWEtBG9i775S85N7VrRwfN9kqio0tSEnwugCJCbmcCV8X4vQqB2lJwlWgQT77qA9+6DjqKKSwK5yzn90b4EFkyp2T35uzDm0+CsdSz3Whg/P/i+TUYxfaDW+/oHvjN+r4yMVWQv9sTCWCxPvSWY1uovy0dMrZFbSVCYau8nSgVGAeD6GT6xygFke2e4u00ZsJp0zyEOmFT8+ctVAuvBbWrW7QSRDOwef08dE1w4I2NKn1uDX7HjoCAYE8Y2h/TxI1CB4AiHACp+/MGX6mVTjiE901iNC5sw1Yxnl1DhVnJZw4qu3zVGjy6NfO0Gj7MMHE9rGXOAjdbHk/ZscehYpju++hOUvaSE37gNQht+L8kfrtZhidsm2SzqY+fjVP47YfDAKQvFfB3uJ9ZPSeuNrsYzlPPdirVR4qu8QsiTwUZozogE9nTi84ov9p5ZSbDPXgospxtH7Ow17oQ0u0yaZXEciWifmRKqB2+ClPCNfM0YNZgf5EEfsUcUgF+41hc0wKq6uqc1gbbkTBr+VicE/IzaoBhSrj/i80N2Db1miUA+FGdse1lsG3yW1l1Y3yLwDvyWNi+b1Il3h+FY3MrgZ6PbY56et/HHOGSCpaU9QU1xBOhABmbxFgwmIjBw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW2PR12MB4666.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(76116006)(55016003)(508600001)(122000001)(110136005)(8676002)(83380400001)(38100700002)(4326008)(2906002)(66476007)(66946007)(64756008)(66556008)(66446008)(38070700005)(5660300002)(71200400001)(52536014)(316002)(8936002)(86362001)(186003)(6506007)(9686003)(26005)(53546011)(7696005)(33656002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?V3MTMtFqNfBwgcD8psIl9LzeARI8AVWQLwG+c9q2k9P5if1tIg7n+EIFVe/f?= =?us-ascii?Q?dNR8UuTKXMuekDcp7HiIzvRnme6zyaJwp4idFxVwetQaebEsUgw3h5A90MFD?= =?us-ascii?Q?tBvsJVRu91ckmjTx3QIQWi+b56ClByQviImJHSEahvtDyJeuH3EMQptnQMh8?= =?us-ascii?Q?wo8H6KgEtRQ9Zp22WYB+eJ/EznI75ZEaiM6uNETQv2NvF0qOgo6f1mq+5ub7?= =?us-ascii?Q?FDIBuSki2T3lHQbhddcp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dfL?= =?us-ascii?Q?2tK1TvDFl9tkOqrN+9pIqF8VvmYdQmC280yMwabmoGuLlaACeU5lqBFsrHs2?= =?us-ascii?Q?gJxJ2iTF/AIfxF2YYMhYkrf0Jez6jnpOMDml2q5q9bdjOmdjfZ8rS8Oo9aLP?= =?us-ascii?Q?j9yAnJxpbU+ZLUPNYncgBkFRsDOPDpa13nWpaLTbov7qTjmyPtNgGJbQyjCe?= =?us-ascii?Q?DzOO1tVxeQ7Kwup6GvRM9IqAFVzJuJhw5sUyKxh/YZKBKNomq3Mu4r5LlPLy?= =?us-ascii?Q?EgsGJRl6zyhAyAnHD8N3yZm+Z959xhIVI8g6O5miT7w2/ggBt0djI8JHMhll?= =?us-ascii?Q?wQjrTKzvyyS2Ylr8oHwMZLMlsFnPG9P8ul2cVdhPfx+pyXhSnxZtzkLwPqNT?= =?us-ascii?Q?TAYAajLmgiqLm8E4pwaUTuFYGwQ6J7A3kVxOSBAYGEzaZuQtJi4PGYVncBAu?= =?us-ascii?Q?vaX5SiENG8tcKBtKSB3/NoeUhDCAAGjo1H2Ns6Xm4khgP/E1omE7h5i0WgbR?= =?us-ascii?Q?IIy+5qRR6cGUT6XfzWfi2ikznS+60DMn7AsGyTQWh+9JyxPc3HDjDr55LXEG?= =?us-ascii?Q?wyXb3geSzIbOt8waMwva5pckNIhmJBglnO5BjiszOHKchj37CxR7APgL8z4g?= =?us-ascii?Q?mLUnhA3MDA=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW2PR12MB4666.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: afc12046-5d56-4c8a-1646-08da43ada672 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Jun 2022 09:03:52.6619 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 7cwZSRguE0tn5e33cDaZr2GJ8z9W7Uh0+yzGkV5vSd6SPax7GRGmnmGr5jfzcVidce9haRxoi+o8m7c7mrPDIA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB3319 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 Hi Jack, > -----Original Message----- > From: Jack Min > Sent: Wednesday, June 1, 2022 10:39 AM > Subject: [RFC v2 1/2] ethdev: port flags for pre-configuration flow hints >=20 > The data-path focused flow rule management can manage flow rules in more > optimized way than traditional one by using hints provided by > application in initialization phase. >=20 > In addition to the current hints we have in port attr, more hints could > be provided by application about its behaviour. >=20 > One example is how the application do with the same flow rule ? > A. create/destroy flow on same queue but query flow on different queue > or queue-less way (i.e, counter query) > B. All flow operations will be exactly on the same queue, by which PMD > could be in more optimized way then A because resource could be > isolated and access based on queue, without lock, for example. >=20 > This patch add flag about above situation and could be extended to cover > more situations. >=20 > Signed-off-by: Xiaoyu Min > --- > lib/ethdev/rte_flow.h | 11 +++++++++++ > 1 file changed, 11 insertions(+) >=20 > diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h > index d8827dd184..38439fcd1d 100644 > --- a/lib/ethdev/rte_flow.h > +++ b/lib/ethdev/rte_flow.h > @@ -4948,6 +4948,12 @@ rte_flow_info_get(uint16_t port_id, > struct rte_flow_queue_info *queue_info, > struct rte_flow_error *error); >=20 > +/** > + * Indicate all operations for a given flow rule will _strictly_ happen > + * on the same queue (create/destroy/query/update). > + */ > +#define RTE_FLOW_PORT_FLAG_STRICT_QUEUE RTE_BIT32(0) > + > /** > * @warning > * @b EXPERIMENTAL: this API may change without prior notice. > @@ -4972,6 +4978,11 @@ struct rte_flow_port_attr { > * @see RTE_FLOW_ACTION_TYPE_METER > */ > uint32_t nb_meters; > + /** > + * Port flags. > + * @see RTE_FLOW_PORT_FLAG_STRICT_QUEUE > + */ > + uint32_t flags; > }; >=20 > /** > -- > 2.36.1 Acked-by: Ori Kam Best, Ori