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 87A17A04A3; Mon, 7 Feb 2022 14:15:47 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 76178410F6; Mon, 7 Feb 2022 14:15:47 +0100 (CET) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2041.outbound.protection.outlook.com [40.107.92.41]) by mails.dpdk.org (Postfix) with ESMTP id 791A3410EA for ; Mon, 7 Feb 2022 14:15:46 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nn7ZxYDw6PfLKLw2/OYsptLFvklgudg4h0Y/rX7bQTr00SknuCNXvVBTULEIqFanXPxGaIQwpDnP3RcFbd5qFeVvGdj7CqLdr6PiolC9uy9DAH+k6kSDSFZSDsG+dfBFlGSNSNprWh5amvXMN9VfgHpRvZpePg8v+ILvZTTytFH22uHgLCpn5TsJwvQ5k4+RtXYE15ugUQPW3ShNILMmV5SeSreXPgetqUsgiJ9NeIg6tFG4/2w0HjbpoduKWqE95nqvvllcTp8LtHp95OC8O7+8W7zZCniYYlC6bLLyO3yf/G2yn0/eD4KDpdkK2uk0e8nGXuEH+//wP/LWdJ2W6Q== 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=ige7ELDhFAr10okmvpGY+ZBQz3b6NzD0Y4Ig5Mhi8j4=; b=EjzTBFoDbPptPAApSLeW5joefXu34lzfPSUzElA57LrzI6+RlDsSpey8MMYFsuJxIjCT6NWmzvR2ZgUstUHHPg/yeh/YK4xYg/VCCF1kwuuxdO3IzBAexKDpOf9b8JQq/M4B3k3Yqq2oFSy+khd+UZzCpF9lm0yM9EGFl3/HbBquAro4mQ2TXUKPx3tGXj7CMX01BS4i8sjtQsMH+0qCRbmJt/JuPE6Q5h7FQE7ZquSu5AHBYIqrqf/aVpE5EL7puumSUXyYupGMo17CxxPZ+NKMQMMtU/Yl5SOoTNMEkvWPHGArMGXkANC6eYZWYVf321mc2PGeNPykqUDAJwxDUg== 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=ige7ELDhFAr10okmvpGY+ZBQz3b6NzD0Y4Ig5Mhi8j4=; b=QNc/eRjRbi435T1t53OjzLgG+3V9EJ9MJvIDrC291foK5U3wTo3y4I+8J2c4S5csY/sIQe5fPeIjljvyerLO0Uav6LFt2KLKhVl/eauMAm7tHFNJG+/sdqO2NeakW9JQ8RubQkELTHZu3FC+XBRpHQ49jR+gsfUrxSMoYFq4oWKvFVkNmQ7YeX7Nf4m0DjCuq0EO9ftlyavEI6G/X3yDS8XaXFPFw9/gtuX+TWfV5/qfliPtI6H5ij0UWhDml6WqiNYJkwWBmtIwL7Tuy2HiIfr8LQJV1JtKOKKeQ1xAvvRdiTGQmDpGl17wtYCafiKZCXyPdqfjJA0NYdH8Rel8cg== Received: from BYAPR12MB3495.namprd12.prod.outlook.com (2603:10b6:a03:ae::13) by DM6PR12MB2826.namprd12.prod.outlook.com (2603:10b6:5:76::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.18; Mon, 7 Feb 2022 13:15:45 +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:15:42 +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:15:42 +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 01/10] ethdev: introduce flow pre-configuration hints Thread-Topic: [PATCH v3 01/10] ethdev: introduce flow pre-configuration hints Thread-Index: AQHYGwk/Q8L0XhwzAE620pJCvQHT16yIErDg Date: Mon, 7 Feb 2022 13:15:42 +0000 Message-ID: References: <20220118153027.3947448-1-akozyrev@nvidia.com> <20220206032526.816079-1-akozyrev@nvidia.com> <20220206032526.816079-2-akozyrev@nvidia.com> In-Reply-To: <20220206032526.816079-2-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: 7de058f2-016e-4d71-d059-08d9ea3bf14a x-ms-traffictypediagnostic: BYAPR12MB3495:EE_|DM6PR12MB2826:EE_ x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 87U5sZfPvJ/paSWYGq+hKMBhbHpP4fqpnbS7ZXynOC4o/Si9mDd+xd4TTwCYZigCq3SkYqv/QQf0zrd8R+1NIZ9eZgmvIXxGYBRvrejMeclIVnqwJHbdV5bJJU+y7NZx551qBrm+HsGwofmX2HwiOV586HtPnkeJ+BuQQ6WuMfrb8pXXfjgwRxfWtkUoW/Q2WxgRTzDoGLZDU6DIxg9mjSmPoN0u9KTqxyvzTjZo5TBjJE+0PhTovZyM/dwXlz4SRNAjf+IdmJeQLAW4rNlyvqAMMiXSnUUpnSQVUI5XujxBCJbQz0Peq8WN0nO0C67Zh5HGd9BU2CxMORu0PL+VuQFYV0iknXUre54iZyt9x/GK23q3wn1dHtTgdyFXrSsw2cvlb6JnbdY3bJ9X59zAUpf4N+FdYPOSNSou3wQooMkQbvdOdkw2VsnYnyTYTvA4xez6boWD2lK3S6K6GU0ylONczVcneuipHlQqx96QrIdAr5lStgCKZKMPU5O48rY4nemw2TaQ7cFTYi0Ptfp7ZzdmoHkoYY23bkxVt4S4rQeNWKcjAhythTVWbiYyOjEnMAC2ngkjNp2Ir7sdNbWbis8YCQrYf8wY/pprABzVmQ5uvJrfDtRzQMHD+UPwpVTkKW1ecK0Jk6mRdtSG9wK2uqkoLWNx4KseVSiHE0AsBPqiuJMFFlNQPkBzVkWPXct1s0xefKg51ehfh+D31zXQhA== 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)(55016003)(38070700005)(66476007)(52536014)(9686003)(5660300002)(54906003)(186003)(26005)(83380400001)(316002)(2906002)(53546011)(76116006)(66446008)(66556008)(8936002)(66946007)(8676002)(64756008)(7696005)(508600001)(122000001)(6506007)(86362001)(110136005)(33656002)(4326008)(38100700002)(71200400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam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tMCkE33EKrLxAr3WV8hTpbUc8nG0vgKPgWAfiIO2Hgc?= =?us-ascii?Q?XqgEtBhaxl1bk2IYpdYgJyhXFP7vX2YBB40NQKQgkTTN2LuKRf+F+cPGKYjy?= =?us-ascii?Q?pJfcY5MxrvLWabQ4EQoDyxN480Kq3X+5hTlYQnN5Pl4orHzuxP91EHnumBdF?= =?us-ascii?Q?6c+AK12u9tnBergmRyBGGn+lEoV0JkayL/OQqqRga3RjROKPom+32J32tPRy?= =?us-ascii?Q?77s6AqeVFMsOWe2aV25mkjG6HJdGnaE50GHX+rUXDHuRW7n834xvJMtSRCNZ?= =?us-ascii?Q?K4AL2dHIPMyFdFT+MenkZboLh/+MlBGzRgKGc4Yw4t67TYl990kiqX0ptZVe?= =?us-ascii?Q?xMSQhKylDCj+udbvQB+z6dbWlXo+zIxU4yC21BlF9fcmBQF8VQ0Qb+48VcAH?= =?us-ascii?Q?7vuhMWRfz88qRBND5Li9lj5umnbhQtcq6cQbMLxA4GChW8bP5OGcysOhc0+w?= =?us-ascii?Q?CxZDlB9SKCJWRa5ED8JFLklYOxNQ0WfxHl0KLNo4cuwdYI4kxYesPCG92nWD?= =?us-ascii?Q?6vGaeMIc2d0oroAYnZRPP8CFG56Jnz5EXod7livWgpIt1PsBeIacZnofjV1I?= =?us-ascii?Q?2W7VG9vgRIs6H/ICNtQWhogBBr5vnxh5zkckijZ9QHbGlOD9O7i60a2UFUxR?= =?us-ascii?Q?bdw8P+1t7xhLcgLUSVCLZV+8dzEA3nBmAj/lrJBEB+daxPQMPlR3QFLx5aoX?= =?us-ascii?Q?v3GxzINGwPteP6h7jpwa9cVaN5eDUkmbl7UNwAZ74EXkFixcVMh9/VlcivXa?= =?us-ascii?Q?tWj6mBbwAbj4pN4hMAcfLZ8=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: 7de058f2-016e-4d71-d059-08d9ea3bf14a X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Feb 2022 13:15:42.0568 (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: tCOTSe6j/SVTPqNuQBkW3LrELUYoM6Qte7kwEcDZJY7XNDZHu665YFyc8Su0d9XajgHHofz+aAoxeZIQ6LwV8w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB2826 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 01/10] ethdev: introduce flow pre-configuration hints >=20 > The flow rules creation/destruction at a large scale incurs a performance > penalty and may negatively impact the packet processing when used > as part of the datapath logic. This is mainly because software/hardware > resources are allocated and prepared during the flow rule creation. >=20 > In order to optimize the insertion rate, PMD may use some hints provided > by the application at the initialization phase. The rte_flow_configure() > function allows to pre-allocate all the needed resources beforehand. > These resources can be used at a later stage without costly allocations. > Every PMD may use only the subset of hints and ignore unused ones or > fail in case the requested configuration is not supported. >=20 > The rte_flow_info_get() is available to retrieve the information about > supported pre-configurable resources. Both these functions must be called > before any other usage of the flow API engine. >=20 > Signed-off-by: Alexander Kozyrev > --- Acked-by: Ori Kam Best, Ori