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 A4C3CA0353; Thu, 24 Feb 2022 09:38:08 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 93DE641156; Thu, 24 Feb 2022 09:38:08 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2051.outbound.protection.outlook.com [40.107.223.51]) by mails.dpdk.org (Postfix) with ESMTP id D9F134114D for ; Thu, 24 Feb 2022 09:38:06 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LFUijjQEOw29bMZzyYgIaDBsij5s1QqaebAC7cDtdTjvWzlx3qcBMIUsRnXYNySzbC6rZtskCKF2IeWNZiIGV6bOdEibpK9sSiuPm/mGs5ZCXNJ7nOTKIAa7K3vmQ5KVBeMg6MpcaSUXkvMfQhMizivi/LNviYi3x4rB20mCxw6lbRd++WBg9CBFcr834WuLNh9XgtbKi3LvZJLAPrCDBT5Y2HJnJgTCsj9G5EEKRXi0Q0ieFdiuhxtAvx1BSC1enDf9YdRdjNHecWadCRec+SWv+pdNnFQn6yzyOYoWFo2xwZp2Gr4yvDBn8g8SXP+8q9Jt/FKLyohgy7Kk3fmriA== 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=RCdsusSAPlj94F2NlH7fNXyPXmXbriguEJPv+8aIQeM=; b=FWF4xddgjS5L4XLcgMp81kg5nnxw6MhJwsPxiS13vTCLvhhiqfkYrMLi0Z8fY2B/7CA59Rq2lXARvjdoRRu6kPIX9PZKFQWwlv1xKXK1fBT1x0cqdufMrelyQfol1vaH+EgfaqYt2whjVrUk29EgdAKue5iPtGd1TIysQZyNiA/Ncz0KFkd9sgWmF4Qoy5zK1hVsH84eQcWHj1ol1f7AbIxHQDohcpzK67InmV/XAt8hCdV5p8uHURJxIfmJOfoNGNPz+He2oVM6n4oayYaLIRKFXFCDwojwsBmqAKbG2BWHqUhXFyd2OrvXUPSWHFIJmY4BepaJlyveJ4IBSWlwXA== 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=RCdsusSAPlj94F2NlH7fNXyPXmXbriguEJPv+8aIQeM=; b=eETt3xEoRtpPaBWE9jVoKZUFUlO+0/0+XQPAlUXscOLv+V4qk1/EDNd1UGbAkJfJ9iJsJgvQHWdttXGN4XG3DxYyS9BoRxxnPM+1Vq4fFEBzMRGu07HwN4ImbztDhdHBs1Lfas7mrFALncUxNRHKNAcQ4IYigfPhnwPAEX9opJ/yK7ajkEYL/72mNegYtFyZYGAIfc6MjteWUIMNaRM3FcH88LKSRnZ99PivXcwiHD6SxVlzQcTQ0geFzmlkvloc5qGUJtKEXwoELMK/ZT3Q+215VxP+DX+sY1j9mhuSpEsk1kkz8gCgXusRQrQ7cs3c9kT6OiqtCZjqfEevvYMYbA== Received: from DM4PR12MB5389.namprd12.prod.outlook.com (2603:10b6:5:39e::8) by MN0PR12MB5787.namprd12.prod.outlook.com (2603:10b6:208:376::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.22; Thu, 24 Feb 2022 08:38:03 +0000 Received: from DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::9c18:b83d:16b8:c4c]) by DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::9c18:b83d:16b8:c4c%7]) with mapi id 15.20.5017.024; Thu, 24 Feb 2022 08:38:03 +0000 From: Matan Azrad To: Michael Baum , "dev@dpdk.org" CC: Raslan Darawsheh , Slava Ovsiienko Subject: RE: [PATCH v2 0/6] mlx5: external RxQ support Thread-Topic: [PATCH v2 0/6] mlx5: external RxQ support Thread-Index: AQHYKOYbNBiOE8d4/UasmQDu5oHmBKyiXvJQ Date: Thu, 24 Feb 2022 08:38:03 +0000 Message-ID: References: <20220222210416.2669519-1-michaelba@nvidia.com> <20220223184835.3061161-1-michaelba@nvidia.com> In-Reply-To: <20220223184835.3061161-1-michaelba@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: 606a2fa0-fa6d-41bf-7beb-08d9f770f93c x-ms-traffictypediagnostic: MN0PR12MB5787:EE_ 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: roBbNLnZOI/6TbQlnHPeKzjMrHFHZLEQzxyTxSUck166p/7ee01hJumkrTM+Xjrhn5z4Z1waZpaNbb59yw5EBfDNqjX+uFgKUq/0Cny8M3PrspOZMWY6ZqnucNMvZieE7Ro4GXOvxT5OxjSYALUpjoBol3GdsYVmmp3dSiCOJMbjr+uTwuKlQSPKHG38xvoEJAsNh50MRkPgy1kIX+5WreG9no/dV0kVnJkYEu5F7PDRCDllevSy/RiTLTpQHtc2X3Ub6HAP38g0JErHUicEbjpqp3Nc7nTnsazFM7TrzkB6rerBEZPvJ9V7mTflF7xkjUlrBxkgQPNQBKRL+giflRB7Y0XEB9L7zw15X9k8nEi3PgQIeu9+BpqfuYfKly5WVFvDA8fNDnCfNvDGGpOyHKkkBFeJxBmV9cmQQdXSlCDJlR5/OsD67eD/3Jl0dG920Ugd3CXUjl83NPwnbIQArZghXnpwdrslXOR85VcYcNOzMlLm5BjnZ4gVkmMsEij5HRQEdyjQa05nnVLIIPnra+xd4uIrQ8DyYRYipsS2A0IZUWMHuYcov0a99Kvl6fvLCZ54sz2YyBOYJGIWlrQ2/pyJPfoNjp32ShsRfCSkXIzWF6Fy6vXj0K1RakOrNrFM5Vu3LQ2Lusx8L8qhcDE4ACmrb0bQnVlkUhHWNrNaXhLTWO8Yt9FdVJunbcVMbgKlltJLYRuJIdRjL6pgKTDojA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5389.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(71200400001)(66446008)(7696005)(5660300002)(8676002)(8936002)(86362001)(76116006)(9686003)(66946007)(66556008)(6506007)(55016003)(64756008)(122000001)(66476007)(508600001)(4326008)(83380400001)(186003)(52536014)(33656002)(38070700005)(54906003)(110136005)(2906002)(316002)(38100700002)(107886003)(26005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?X72ec/0gl6YQkOb3gv8hjw5OApINKDqRskC090WvhFGk7j1B6G2K1CZ/ELKY?= =?us-ascii?Q?3bDRiBOeRSlmP9fRxAjKcbreiUi9q8jirH1VhpYXhYl9zCVwNrWT20NNnUoW?= =?us-ascii?Q?B4M9ipzg8UoqaOvCsModcUOckNKuqscy0fDAEtjWlr9pJITwGV9aUAKSovIT?= =?us-ascii?Q?JhM9BlUfNb7CbwbdbbNa73mW8pspral1eVeeB89El15FqRuu2nsdm1LtywML?= =?us-ascii?Q?RnplRXaOB/t7QHcwBuWe99MtRM1d9AV24r1xL1mL1f7fkxXBDkZHp/Ip4kdo?= =?us-ascii?Q?Daop3yucdmDC+BfOJa58BZ6UYXI0yTn07QRcwAp2y9tPim46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GPff0aZ8JtNp9kSepUNg6NiDTj+xr5ZbmhA2/Wl?= =?us-ascii?Q?K+g8xzovP7MCZKNALWOjvogxogz8u8raIQoKM612iBd1L9dlsBp7lheRkueH?= =?us-ascii?Q?hT+RnKBWLUyDlCPGarFFN4XNqDGnlv2ujNWAelP5vsOIVN+4YdQUvA2+LKht?= =?us-ascii?Q?poq7APoXws4wAjsNEWl+rlv9gL2Y3DKSLTSsWDBYxKHPeSLggFXQ6+iXXnVR?= =?us-ascii?Q?YlAcuhQ0k1zIMqXyjZqS4D14tdQrS/3B7Qas3JNZeutTxzCGh0zEBDdwYPye?= =?us-ascii?Q?qPvrzx87se+vL3aoTmgkNjXJM1Z1fQGjJWFBEXVzmHC4+Js5Qcj+GZTYod3M?= =?us-ascii?Q?zmyDsgLaqGYmzO5D486MOqk0xJOwpu0JV9M6L9H1+9M/x3ApEIipyXILQxK7?= =?us-ascii?Q?/KfdJw2f/quI04lLJxg4x9Q=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: DM4PR12MB5389.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 606a2fa0-fa6d-41bf-7beb-08d9f770f93c X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Feb 2022 08:38:03.8587 (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: j9QUcRduBnLZ3eYZgzxNxo9bZqh5rqGG9uhYnQwyfTnBA6YeNZLYKQKIRpH4nCU2n8JCmoIRslU9sJ4hKtW6wg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB5787 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 From: Michael Baum > These patches add support to external Rx queues. > External queue is a queue that is managed by a process external to PMD, b= ut > uses PMD process to generate its flow rules. >=20 > For the hardware to allow the DPDK process to set rules for it, the proce= ss needs > to use the same PD of the external process. In addition, the indexes of t= he > queues in hardware are represented by 32-bit compared to the rte_flow ind= exes > represented by 16-bit, so the processes need to share some mapping betwee= n > the indexes. >=20 > These patches allow the external process to provide devargs which enable > importing its context and PD, instead of prepare new ones. In addition, a= n API is > provided for mapping for the indexes of the queues. >=20 > v2: > - Rebase. > - Add ABI exception for common/mlx5 library. > - Correct DevX flag updating. > - Improve explanations in doc and comments. > - Remove teatpmd part. >=20 Series-acked-by: Matan Azrad > Michael Baum (6): > common/mlx5: consider local functions as internal > common/mlx5: glue device and PD importation > common/mlx5: add remote PD and CTX support > net/mlx5: optimize RxQ/TxQ control structure > net/mlx5: add external RxQ mapping API > net/mlx5: support queue/RSS action for external RxQ >=20 > devtools/libabigail.abignore | 4 + > doc/guides/nics/mlx5.rst | 1 + > doc/guides/platform/mlx5.rst | 37 ++- > doc/guides/rel_notes/release_22_03.rst | 1 + > drivers/common/mlx5/linux/meson.build | 2 + > drivers/common/mlx5/linux/mlx5_common_os.c | 196 ++++++++++++-- > drivers/common/mlx5/linux/mlx5_common_os.h | 7 +- > drivers/common/mlx5/linux/mlx5_glue.c | 41 +++ > drivers/common/mlx5/linux/mlx5_glue.h | 4 + > drivers/common/mlx5/mlx5_common.c | 64 ++++- > drivers/common/mlx5/mlx5_common.h | 23 +- > drivers/common/mlx5/version.map | 3 + > drivers/common/mlx5/windows/mlx5_common_os.c | 37 ++- > drivers/common/mlx5/windows/mlx5_common_os.h | 1 - > drivers/net/mlx5/linux/mlx5_os.c | 18 ++ > drivers/net/mlx5/mlx5.c | 6 + > drivers/net/mlx5/mlx5.h | 1 + > drivers/net/mlx5/mlx5_defs.h | 3 + > drivers/net/mlx5/mlx5_devx.c | 52 ++-- > drivers/net/mlx5/mlx5_ethdev.c | 18 +- > drivers/net/mlx5/mlx5_flow.c | 43 ++-- > drivers/net/mlx5/mlx5_flow_dv.c | 14 +- > drivers/net/mlx5/mlx5_rx.h | 49 +++- > drivers/net/mlx5/mlx5_rxq.c | 258 +++++++++++++++++-- > drivers/net/mlx5/mlx5_trigger.c | 36 +-- > drivers/net/mlx5/mlx5_tx.h | 7 +- > drivers/net/mlx5/mlx5_txq.c | 14 +- > drivers/net/mlx5/rte_pmd_mlx5.h | 50 +++- > drivers/net/mlx5/version.map | 3 + > 29 files changed, 821 insertions(+), 172 deletions(-) >=20 > -- > 2.25.1