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 B359BA034F; Mon, 7 Feb 2022 14:17:03 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 86557410F3; Mon, 7 Feb 2022 14:17:03 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2053.outbound.protection.outlook.com [40.107.220.53]) by mails.dpdk.org (Postfix) with ESMTP id ED3D5410EA for ; Mon, 7 Feb 2022 14:17:01 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dueACj2FUbm6iVRBhH5n7frkqAlZOuhcQE0aAlrPvinJlDgghYPRx0ESJ/Wou/vQ9FIvvlWwnBh69PLa1GBG/17DGh1Dbe7qP8d1gGarV8jGhKEYsSkKcW3Bz1qj3E3MZcu2pCDtG/0MDjuxAyZRj5RhEVI5CfCgdPePzWFapBbSP+uncanF01wrwNiKWSoWmdioRbC3jMsk5FaWRTytzJu5TPan5OOEO7AdE7EI61P4BzS8GYrkwKQtq6tH5eS+58M3kJmJwpj+I/BAiZGFdb4Lj0dbYquhj2MCuqOeyr1w/qvQQqB41+6d2gG0sJqEEK69jwaBlHEVmx1NfCrpIA== 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=DOnoQvnOiX1oM7sCpeLHq48q+8DVN/I/yvWL5Ij7Uwc=; b=bQtIZg0pwFUVYvbX+yiFdjhR3CnjwSR88jwmZZY1WAooGDy4Qj7swB3KxpRfdb2wqWLKYhchlxxlcugJ9NkoJRKFrF0m2vw2tQBq6ODu8lKHh1Ob2bzBDg00aPQj+yjHu8m6ekwvim6PH3A2sDQI9bshXX7p9cUKYYO/tkRSIT5lwqU8Y6cNN1B2MKtqifQVkpdimezA9dNBNJJWGCCouVgAXDJJmdaQ/VEqV75AAUekDHQWl3kDuInQy8xrXKqFjTdp3sd97lV1ttXY8CCsw1jZDuPztqWYbPk+9GDOKz4+3Osm/YkzzFgU5eB157MRjqw3gxD2wlsUhQQkhE3JlQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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=DOnoQvnOiX1oM7sCpeLHq48q+8DVN/I/yvWL5Ij7Uwc=; b=Y+fsqBQUGIDp/c3/GDP/IrZFmI/IFkRKi6T+j8gedfWTYSWcjFnxeZVP8tRcd27751knKtG+VwJYhdHe+66sv0ZxDNwy4cSPWkoKeFgcifWTtLlefzpvEU+DUCM4XAhC76NvL4Cm+8j2DTYuC2xBJFI0EpjfzwyS6YnBOufnV8iFZ33SOT+KJjW2vpqh9EKdmRH7DqiW12Ep7OwmpOC40hkHuq7VQiON/T5MwriS3k4Vl+E1KoP1WypjtoazXKSLKJDSZlOkuEob4vK/NhdBhbna87O8SLypkya70vuD2Ed2AL88fdCPNGwWpIs/1nx3J4itp8AuesFL0ldBd/qe6g== Received: from BYAPR12MB3495.namprd12.prod.outlook.com (2603:10b6:a03:ae::13) by BN9PR12MB5366.namprd12.prod.outlook.com (2603:10b6:408:103::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12; Mon, 7 Feb 2022 13:17:00 +0000 Received: from MW2PR12MB4666.namprd12.prod.outlook.com (2603:10b6:302:13::22) by BYAPR12MB3495.namprd12.prod.outlook.com (2603:10b6:a03:ae::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.17; Mon, 7 Feb 2022 13:16:58 +0000 Received: from MW2PR12MB4666.namprd12.prod.outlook.com ([fe80::9d4e:649c:c6b8:b353]) by MW2PR12MB4666.namprd12.prod.outlook.com ([fe80::9d4e:649c:c6b8:b353%4]) with mapi id 15.20.4951.019; Mon, 7 Feb 2022 13:16:58 +0000 From: Ori Kam To: Alexander Kozyrev , "dev@dpdk.org" CC: "NBU-Contact-Thomas Monjalon (EXTERNAL)" , "ivan.malov@oktetlabs.ru" , "andrew.rybchenko@oktetlabs.ru" , "ferruh.yigit@intel.com" , "mohammad.abdul.awal@intel.com" , "qi.z.zhang@intel.com" , "jerinj@marvell.com" , "ajit.khaparde@broadcom.com" Subject: RE: [PATCH v3 02/10] ethdev: add flow item/action templates Thread-Topic: [PATCH v3 02/10] ethdev: add flow item/action templates Thread-Index: AQHYGwk/wEACqSilqEizcks9eMu0VqyIE5xA Date: Mon, 7 Feb 2022 13:16:58 +0000 Message-ID: References: <20220118153027.3947448-1-akozyrev@nvidia.com> <20220206032526.816079-1-akozyrev@nvidia.com> <20220206032526.816079-3-akozyrev@nvidia.com> In-Reply-To: <20220206032526.816079-3-akozyrev@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: 5edd6f51-6b1c-462b-f6c8-08d9ea3c1eee x-ms-traffictypediagnostic: BYAPR12MB3495:EE_|BN9PR12MB5366:EE_ x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: UP6wrHBHPOi3dpspuNii4gnPOoTaUYyPKq8TThjp5tMYTpWCyLBe0kHZXJ42z5IIE1bO6XoBzONkUa9dny6eYCII3xa9UYCFmqKRP85V+AniFVRj7JR71LTwVi2lNgREN+dbdnd3mFtjKH4fvX3FIq3QNkET4BX2/tjxe7Pa2EI2LCdUZVXdUwKyIAQ//ZkbmRqP/rY75N3DlZgitohAOzUN24QEy4Y5Du2fHzFa79RR1NfoMkKDTGYs4Bf7jSNTwv7P4JqbhmGngBWSrzEyMjqvUOqy4zkk6e7lggSDApwZq+9Un2vcuGmWjQRE4O0NMtP5xyg3dGA2i/728a04X3aVKiX3q7gPZxAB2mBcxXh9Dm1wIt2YpqYM/AXzQPT+uUAEARDHsUaHDAHKn1UK++l0r1py19CJV5eWDYlsVaQ1yyrJn1dJgLb78zgbv3ks33IImj3MUaXEt2NoZlTkSNq+FM1v9a5wXjtsMDtcqvU2bi4JMKko8tT/DOKf6DuUb7MWs4PSB0IVsHCYapk5/TWPI73sHOdAVhRD4qEoKeAWpJCjPcCyemxA6+2uuuEgetcfdAi3PzXpIp9Cmk1SWNq32e5n/G2VjvGVP/NJmb+eS6WflZImsLyVUI+BhcApwDHFh4KwoDhuPPCTtSvcrLEe0Q1iarQO84Axn07JskmyCdQ8Lhj65VV5cHLEYg5j427rV9iUqBIFSKxn9CvVeA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR12MB3495.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(38100700002)(122000001)(55016003)(38070700005)(54906003)(316002)(83380400001)(110136005)(508600001)(5660300002)(52536014)(53546011)(33656002)(8936002)(7696005)(6506007)(9686003)(2906002)(71200400001)(86362001)(66476007)(66446008)(64756008)(186003)(26005)(66946007)(76116006)(66556008)(4326008)(8676002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q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FwGUzmx3zwOKGVOPFXCPGpbHax?= =?us-ascii?Q?f13CXMbLYWrjPgA0RyT2XxXy2xqvBLFgivEiJgOWG4oz3ryHMJFFsWWeaXao?= =?us-ascii?Q?qMkZdhIQX98bgHVXoPxnG0KqsXi6pf1z5YGPr+2GKDfphHCFJ2kBQ7z2Yi9A?= =?us-ascii?Q?vHv97fftt6v0BfFC0moiKPS9UpRe4KJY2Pccw6xbGUvgE86Zcv2f3JpI7r+H?= =?us-ascii?Q?BHvp/LauOKE+kGS8dPjSQaayoXIO7ByDikM5fV96rL68Seta5jRaKYzEwR+m?= =?us-ascii?Q?mYkeKyugvmR5x+clQdoS7OSSYSdyx4il0yPYA1YNuayZe6gwVULphezbrQjj?= =?us-ascii?Q?nuDanXrCrW/zYKEKL5hwKp5eAnUPypaWGNbG2TgZAsr3LuVB1ufurqdyn1z4?= =?us-ascii?Q?dBt6o4/AcBR95jdaWeg6liWg0tf3Dd/LQ6Yrz+A9eabpnww4V4NmEZL5g3bp?= =?us-ascii?Q?r/vTDdcS9FmAdissIl5Lm9YdUsoWxk5RKunCbsfaiqnFBafRB1wDHbrPFaTG?= =?us-ascii?Q?8x3FvYaTv/LBD7sfmcqjETm1nCM9G03/5cLr/z00DbyjueKxLH5kOSr7WYsV?= =?us-ascii?Q?sAfCRUlFK6DbOGnHsL418Mx+tNPaDwG+kkdjxwa61GGqT5nJlvIr+/ozqB1t?= =?us-ascii?Q?eytnAPxLMpwWGLz5gBDrLONo1ikgnoXa2STtTp6NbZcyOURH7bwiUEgPuJqy?= =?us-ascii?Q?CC7Aaly0HY6SpWsfLopT4/7vZPOW6BDM76uhAdXbOqLWy0USqtsfogn96X/l?= =?us-ascii?Q?JQMhJoe6PRFjzl9Vl9a3osM=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: 5edd6f51-6b1c-462b-f6c8-08d9ea3c1eee X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Feb 2022 13:16:58.6300 (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: vEZfEm7oicXhG0UKfZ1ESn8IUbvQjC62xaDlJk/PsbikiXtsuvDDUqdUqtNnwZv2SEn8Lb78MkZUnmuFGop4gA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5366 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 Alexander, > -----Original Message----- > From: Alexander Kozyrev > Sent: Sunday, February 6, 2022 5:25 AM > Subject: [PATCH v3 02/10] ethdev: add flow item/action templates >=20 > Treating every single flow rule as a completely independent and separate > entity negatively impacts the flow rules insertion rate. Oftentimes in an > application, many flow rules share a common structure (the same item mask > and/or action list) so they can be grouped and classified together. > This knowledge may be used as a source of optimization by a PMD/HW. >=20 > The pattern template defines common matching fields (the item mask) witho= ut > values. The actions template holds a list of action types that will be us= ed > together in the same rule. The specific values for items and actions will > be given only during the rule creation. >=20 > A table combines pattern and actions templates along with shared flow rul= e > attributes (group ID, priority and traffic direction). This way a PMD/HW > can prepare all the resources needed for efficient flow rules creation in > the datapath. To avoid any hiccups due to memory reallocation, the maximu= m > number of flow rules is defined at the table creation time. >=20 > The flow rule creation is done by selecting a table, a pattern template > and an actions template (which are bound to the table), and setting uniqu= e > values for the items and actions. >=20 > Signed-off-by: Alexander Kozyrev > --- Acked-by: Ori Kam Best, Ori