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 D7D50A04A8; Mon, 24 Jan 2022 16:10:50 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7A1FE427DA; Mon, 24 Jan 2022 16:10:50 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2054.outbound.protection.outlook.com [40.107.243.54]) by mails.dpdk.org (Postfix) with ESMTP id 1BC4440040 for ; Mon, 24 Jan 2022 16:10:49 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dl6bZaL64bLdc7z39+viDjzV5KdqBO9NgCNlfuFDDuR2mLRVcTQAOhEOgm3k4g3xHeToithxiPebgrdtQ4GeVQDljhVOrYXLz4wTErAejTLtfB4nPpGdbRZNMUv8pU2Whh4w3Gn+NOSBO5KCC866GlRorHR5fepDAdFlz80ZCwpmdEHTvZVDAXAj6Oy9ylS2vDsdjeWxJs+y+IK+IYPqaNVGRW0mP28z5uZfdMp0taCc0a/Aqc9HT2JDL8S6bgcpfJz/F0MH90uZjOWV2/dHH+l3AcLo5Hjo22T+RexRNS38V4wjmWnn/YmY2b/J6LlXjOeScPpNjh8d8+y3Z8/wcA== 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=VfuiMFGislnpOGi+ZwZ5DjB6MpUsJVXi05ibymy4Z8I=; b=YDZ7SdRF/88c82BMchyydR+0gHE3rso3SLEwqtwuUChnov29lki4d0CmTPkK3jkjDqqjaLVM4j11YemOdGH4EntvGmFAO8G0Wb9oFQmcGPZE5j008xbxmGzDfu8++EvDX6S6b0pD6rZ2X7LlK7bts+kgzXXKzTjoW/FqZjwThCXmjn4xewn/iCgxUA3LZvJ8fePYcL2Z096YBkeos+MIFzfQDNl/F6XqGd4LXHTNRY2BVGs1/WfdBkQRlEVxL/hjFL5L2KICL+hvv8wN2mvTQ8XMs2pIMonDYyRWWU5FiqaWvSvCvq6pEBKO+iGvQEpNTNESsCBSehSkg+o3j3OQWQ== 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=VfuiMFGislnpOGi+ZwZ5DjB6MpUsJVXi05ibymy4Z8I=; b=fPlRp7WyvR75IjSNyAIX4WpDOzdLofJ9Ah7i0Q3UM3GTbsdGEt/Vg6QYUsRpROS7uaJsFB5rfkHicPuhHbUWq9qpmZmOWh9vNB5mufrheN11D8z3L8fvfnGe20+nLwv2qTd74EtSAyyx0Aw57B5zDpo8vwOOj8Qc/aXD51a7B7P0VQbi9sAwnjZdiPkswB5WBoaDujXU5m8pQCVyN/1pcDN3ylwTCBdQOjKkd/vj8Qv5pL81FCI/3+ZEC6B54Fm+Ng8wRTZ5jdOydOdb241Gc3BaAq2LjeEuUFYSpQwI6fqzkHrrGGTW8BhhJegyXzo/eOcLRtAoNkjnwaKnFgTeYQ== Received: from MWHPR12MB1823.namprd12.prod.outlook.com (2603:10b6:300:112::18) by MN2PR12MB3646.namprd12.prod.outlook.com (2603:10b6:208:c5::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.8; Mon, 24 Jan 2022 15:10:47 +0000 Received: from MW2PR12MB4666.namprd12.prod.outlook.com (2603:10b6:302:13::22) by MWHPR12MB1823.namprd12.prod.outlook.com (2603:10b6:300:112::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.17; Mon, 24 Jan 2022 15:10:45 +0000 Received: from MW2PR12MB4666.namprd12.prod.outlook.com ([fe80::78:438a:c6b7:1cc1]) by MW2PR12MB4666.namprd12.prod.outlook.com ([fe80::78:438a:c6b7:1cc1%3]) with mapi id 15.20.4909.017; Mon, 24 Jan 2022 15:10:45 +0000 From: Ori Kam To: Suanming Mou , 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 v2 00/10] ethdev: datapath-focused flow rules management Thread-Topic: [PATCH v2 00/10] ethdev: datapath-focused flow rules management Thread-Index: AQHYDIBhwdtekllDxEus86JwrBpy6Kxp8A8AgAhfydA= Date: Mon, 24 Jan 2022 15:10:45 +0000 Message-ID: References: <20211006044835.3936226-1-akozyrev@nvidia.com> <20220118153027.3947448-1-akozyrev@nvidia.com> In-Reply-To: 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: 064155f8-51a0-48de-f828-08d9df4bb225 x-ms-traffictypediagnostic: MWHPR12MB1823:EE_|MN2PR12MB3646:EE_ x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: TP/nll7ibg575fUhFQ4t4PCEEHBYMXz+M7I4qopWqWaiCVwmzz5gS8TxjZ2YBe4vmc8o9lTZsIGgvBu5Jn9nznuO9ljCqmt/DU6aPe6ql/MgsmIMhzSUaWvPtNk07+1oESfFUsxhLYpFjZwP5aWavG3Q1OvCczoQK9wnl5qSj/PMEYzr4vervOeZEJIy8ARl1DFL5kJSNDuUsGGXTlbsVpz4I1uYsKYbhV0uXN3SoTnJLnC2uZh8qP/sXLhpE38t9E6K4IpOyrK3pwTrjc8i20QT/NaOGomb5gQZjyaGLdD0sgDx8Ss+l3wVdU0XqIuRdWwRhZs/l4avDOqiYgUR/tVK7qoXUY20LXcvZnqjveEUZCZEfdrZkA7dy/YdNTOIn78Eg0EAsVHHh8pwri5aLxa1uwNff+JYzXZCn0LQY7WNtjm89RwNvtyQ9q7W6pNWJw5X5XZ60PzTYdS4XWNwBCOF3ozKMzb8dLZs5rZQqNZV9ybPmN3ehLXvdVxNFfrU+0sFGMXhPxvoQAnB5LC32M57xSO7VM/4Y1sezpheSLMtn8VGH07v/phEnf9V3UR1oBnJi53E/R1eglCWExPl7CS8UtCf3TIWdwEkRMZsam/4o8O2fd5U98opkV0OMTpwPRD+xEn8JykMBUtoLHGFu98EBg0SmcT172nK7l4N+jZzpcH2rmZ4/pvev4SSokPItLQDhSa/mpUMhAElZMZAPxLdoyb5w5wesDSXkLLBwPRmPO2r8TKnCZ/4LO+NCoxtqG9dt0W6W2nuYONLJscaIOIyasXbkTVy+moBCk0jJ5o= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR12MB1823.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(966005)(55016003)(508600001)(9686003)(66556008)(6506007)(316002)(66946007)(122000001)(53546011)(8936002)(4326008)(26005)(83380400001)(54906003)(66446008)(33656002)(7696005)(5660300002)(38070700005)(64756008)(76116006)(66476007)(38100700002)(52536014)(110136005)(2906002)(71200400001)(186003)(86362001)(8676002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?va/551oohk+Wnqxwk818eWzmtW4CdtYi/OK5DRRWTAk4vTqu55IVPeWdMj3f?= =?us-ascii?Q?L9eZ4hRtSdc5WitYCD8+1r/VUyAXToAnH2RrEsVKa9sUGOipWxR6n+eDc/rJ?= =?us-ascii?Q?f/WbMzxDHmlAOvHELzIPtECzffLAkvS/bqlKUMXPK525xKThgLD4EvuSY8jH?= =?us-ascii?Q?eSi2Q8JrZZd9ARIA8JDgHOSBVG8iJfbIiYWhPiJzDRSOIbJtc819nM186Ahg?= =?us-ascii?Q?s9GiwM6dpdW61g4gvqIBQw8gN3dIoVtT/PyMPN/oFk1WL6ysoTDsEEiyXmC+?= =?us-ascii?Q?5T/xJNAN/RSFiC4k5J9O7hXx0jwcgM01XUYs32aS5zr8HoKAwalc6Nmn40b7?= =?us-ascii?Q?g4pyxNgDmg+wDlVUcy9OX4MBYs5rMeug8gbqFUUEw3qBVPOrVbp8Ekyqh0Pm?= =?us-ascii?Q?y/NzfSgLRr9QMqQrfls8AkxOGfpF2ftejN1xL5xphlMykx5ThG85GEl0A04f?= =?us-ascii?Q?5rK8AlBEzn42ZjUsjCgdGKlc8UaGv+KxokoE9Hd8rB1d/dSSFEMoY+Nkr6BO?= =?us-ascii?Q?hiMs02GKfPNXzky3efShsTNcKsv17HbRL/ujHZCp7y+mB9huwf+enLz+o2ou?= =?us-ascii?Q?sloiWCCS7b0JkiOry88ix3J/8l6dqh41Qpost1JOQL++4eyDpVdtF92M96jv?= =?us-ascii?Q?RXvh0ptccHoQcc5OF4NgTHgpc5/RiLhBAtSfKIvSZ4SjEYnlrrpvF2TIh4Xi?= =?us-ascii?Q?qd8NdPZn1vbPg9HfejI+yusoEIkzt+DaRyFE3x5zPZU3kv33TR6dd3Lcg8VR?= =?us-ascii?Q?0leVgcEwT9iTPykYAfvFnMAm9Hgm0lL90ZmDLz2xleLI1mOg+t5DJ1tqIpLo?= =?us-ascii?Q?CgZriJhcqzsEVjLOVf3pjsm8Lxq6dJJvrOn+Nyz0pup+YwAMUl7l35TDWZs/?= =?us-ascii?Q?Gd3nCrZB8hWZ+RySq0l3+8ul6HaMG2NI8b9qiR56gCIQN+SjeXqMJdtxLZps?= =?us-ascii?Q?dx7TH8K5bNsTHW+EAU7oJkcSA1X+5CPEsBKcEz3Q5oD8L4ZqmjXMyjgpPP48?= =?us-ascii?Q?ULoiZ2ok/K39x3CcZzF/jHTz3tVlXgypBPkYMD5Ok2saDOqEHHswv18mi1va?= =?us-ascii?Q?ew/7/lEjL3996anE9pTCuvtG9E0MuJgiIzeBNzBe+Ev6jjHpVdo1DTPpzYs9?= =?us-ascii?Q?A4/EgM4dC2TjDLSIAvfF1eJP9z7enicLnY+qMdTU0I1DRUGmiob+RRczxCSZ?= =?us-ascii?Q?e0lI9A9MK1u2iG0H3Eg0MQKDBAw37TldywKeeaXeX8bPn1/JXD4EeY81+SXB?= =?us-ascii?Q?FjBc9Fd1QAIreV3DPdaRMxfBDOasQ1wruVl2sI1MWLwYNf7YcSHNmIhIMoSF?= =?us-ascii?Q?PRTMnPR/vDt9PY4gI5W58V6+7WKISL3tZ0eXN2RC9Cn5jUZQln9nn7db7ogF?= =?us-ascii?Q?39wGaaYtbklZGKFfDNAn6W/CxV2xAC2203z0Gb9qROtWKZzbpWa0j4ergo56?= =?us-ascii?Q?UeJg4Nzvpj8Q9jKxCa7QnIc48JSfiFnwJNSsnYVtEHuELEIn5/M8PVzwvDU1?= =?us-ascii?Q?ZADnwtvZ5HVPA0v7R0Aqz08kF41f5kuOBeLLdgn/dE744yU5kKcrmjEkztnm?= =?us-ascii?Q?qgrYZbj8upAksYEIAXxAzBqQXsngnv6jQ/QVB4g1oat7/d1TSpn+mdCq/O79?= =?us-ascii?Q?yiBtOuA0lyNNwKAPhRB7Zok=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: 064155f8-51a0-48de-f828-08d9df4bb225 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2022 15:10:45.2759 (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: /WgkjSpCB6mnz2C7QaQpjFcHTu6xuZ1gKc9z7z5la+foy6Z0xNfG+wuuJmfdAcfPtRpMHunIAqdfTUGxoxPZRA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB3646 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 Alex, > -----Original Message----- > From: Suanming Mou > Subject: RE: [PATCH v2 00/10] ethdev: datapath-focused flow rules managem= ent >=20 >=20 >=20 > > -----Original Message----- > > From: Alexander Kozyrev > > Sent: Tuesday, January 18, 2022 11:30 PM > > To: dev@dpdk.org > > Cc: Ori Kam ; 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: [PATCH v2 00/10] ethdev: datapath-focused flow rules managemen= t > > > > Three major changes to a generic RTE Flow API were implemented in order= to > > speed up flow rule insertion/destruction and adapt the API to the needs= of a > > datapath-focused flow rules management applications: > > > > 1. Pre-configuration hints. > > Application may give us some hints on what type of resources are needed= . > > Introduce the configuration routine to prepare all the needed resources= inside a > > PMD/HW before any flow rules are created at the init stage. > > > > 2. Flow grouping using templates. > > Use the knowledge about which flow rules are to be used in an applicati= on and > > prepare item and action templates for them in advance. Group flow rules= with > > common patterns and actions together for better resource management. > > > > 3. Queue-based flow management. > > Perform flow rule insertion/destruction asynchronously to spare the dat= apath > > from blocking on RTE Flow API and allow it to continue with packet proc= essing. > > Enqueue flow rules operations and poll for the results later. > > > > testpmd examples are part of the patch series. PMD changes will follow. > > > > RFC: > > https://patchwork.dpdk.org/project/dpdk/cover/20211006044835.3936226-1- > > akozyrev@nvidia.com/ > > > > Signed-off-by: Alexander Kozyrev > Reviewed-by: Suanming Mou > > > > --- > > v2: fixed patch series thread > > > > Alexander Kozyrev (10): > > ethdev: introduce flow pre-configuration hints > > ethdev: add flow item/action templates > > ethdev: bring in async queue-based flow rules operations > > app/testpmd: implement rte flow configure > > app/testpmd: implement rte flow item/action template > > app/testpmd: implement rte flow table > > app/testpmd: implement rte flow queue create flow > > app/testpmd: implement rte flow queue drain > > app/testpmd: implement rte flow queue dequeue > > app/testpmd: implement rte flow queue indirect action > > > > app/test-pmd/cmdline_flow.c | 1484 ++++++++++++++++- > > app/test-pmd/config.c | 731 ++++++++ > > app/test-pmd/testpmd.h | 61 + > > doc/guides/prog_guide/img/rte_flow_q_init.svg | 71 + > > .../prog_guide/img/rte_flow_q_usage.svg | 60 + > > doc/guides/prog_guide/rte_flow.rst | 319 ++++ > > doc/guides/rel_notes/release_22_03.rst | 19 + > > doc/guides/testpmd_app_ug/testpmd_funcs.rst | 350 +++- > > lib/ethdev/rte_flow.c | 332 ++++ > > lib/ethdev/rte_flow.h | 680 ++++++++ > > lib/ethdev/rte_flow_driver.h | 103 ++ > > lib/ethdev/version.map | 16 + > > 12 files changed, 4203 insertions(+), 23 deletions(-) create mode 100= 644 > > doc/guides/prog_guide/img/rte_flow_q_init.svg > > create mode 100644 doc/guides/prog_guide/img/rte_flow_q_usage.svg > > > > -- > > 2.18.2 Series-acked-by: Ori Kam Thanks, Ori