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 D52A3A0C48; Thu, 8 Jul 2021 18:07:42 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 516CB40696; Thu, 8 Jul 2021 18:07:42 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2046.outbound.protection.outlook.com [40.107.92.46]) by mails.dpdk.org (Postfix) with ESMTP id B06684014F; Thu, 8 Jul 2021 18:07:40 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cHNT8h8ct8mLmK7gh0bNKuaNid2OWghJsZgioi0OtVES6Vbu6CL/2QESK2Kczk2pHyIkfeiiz2CmkA4H1iLZ0edEFtli8MHbisx6D2h9PpPNMxTPycA7SILuyfZkCtVW0vockLfw29w6iZJIYr9LLtbwW6JAw+kkq6bOMnxYDgvBPCiOyQWjEtGUNhVx+6hz8CdcUQ/ecYNQ4Y9HS59T/mjbA1PZUz9z6XMCfrFfsWNxuNB752nuymWk/C/Ldj6VdzWTblz57zIuxq24zCKOtQVafJ0mHjzKZb4TjaLOJWGeut4D+JuXcqR01IdHPRhAS724xw3k930dEetUQST05A== 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-SenderADCheck; bh=YCQ1svdnTdmKRnGMPFSeowuGbebTLHRjZFssEKZrSQw=; b=AAtqT26n7gpyWanBlCA1qhBbIg4QdnrfeLe/J3k0APfWHJKqvMVZ/+jN1t5Id6LEdSrfZer35Dm90/rsnYYz3WUz09IO866SQ/SuBvsj9mddg8T29MRlBjPG8PL8RZgzMc6Duwb5d7wBE4s16oFm4DsVbexc6f4f5V3fyTADD+4BFkl5zzmu6L18QakL3A57BLzBX85uBGokBhWhTxCWwQHvFdca3+1OHmfwO6EaJfVVEU39IhgW7Yi9wgos7RfVwd8tdp5MCbTjI4Dl/Mt7N3MofmUZR9v7CD1rhgLQLmDaW5OEkI71ENJjC/8uF+948KMjPoJbK/vqYRn/7WNCjQ== 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=YCQ1svdnTdmKRnGMPFSeowuGbebTLHRjZFssEKZrSQw=; b=dysKXpZF2xJlv9/GPQO5zcXjUJ3NR6w0N5nUBkaIejS5WC2kzrrWONoZ/eF+DUJK6oGiPaOYgU+xL5Eosp/o5y9pxQ6L+EA9yJXmDrhsmmLugTCQ0GxLhu7auCs8IeNHbs898+oXfl8gPEFNLoseAFn1uFo1OUYAGjDQxQBftTBEOfyighoNRau55caDPmh/+ENXj8TEXQMMuVBcwa49MHShHhlUGrri0qGYFRGUeMkoEtDsA+5hhc3NXGJ//jLlD0EeOnNjB4/DkFRLsPz/qpU/qyTELuHhur/FAAwLMYtNlG8JUzPE+JZhs8ey10cyIUaKLNq+4Rz5cnCQLPVEkw== Received: from DM4PR12MB5054.namprd12.prod.outlook.com (2603:10b6:5:389::24) by DM4PR12MB5101.namprd12.prod.outlook.com (2603:10b6:5:390::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.22; Thu, 8 Jul 2021 16:07:39 +0000 Received: from DM4PR12MB5054.namprd12.prod.outlook.com ([fe80::584f:2720:1100:666a]) by DM4PR12MB5054.namprd12.prod.outlook.com ([fe80::584f:2720:1100:666a%4]) with mapi id 15.20.4308.023; Thu, 8 Jul 2021 16:07:39 +0000 From: Raslan Darawsheh To: Slava Ovsiienko , "dev@dpdk.org" CC: Matan Azrad , NBU-Contact-Thomas Monjalon , "david.marchand@redhat.com" , "stable@dpdk.org" Thread-Topic: [PATCH v4 1/2] common/mlx5: add provider query port support to glue library Thread-Index: AQHXc0hqsoC8XyqApE2rwbEGklBmq6s5QArw Date: Thu, 8 Jul 2021 16:07:39 +0000 Message-ID: References: <20210707155428.13178-1-viacheslavo@nvidia.com> In-Reply-To: <20210707155428.13178-1-viacheslavo@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7efdbb05-9957-4993-66e8-08d9422a8287 x-ms-traffictypediagnostic: DM4PR12MB5101: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: UHxrcWL6MouFRhUzNQGlb038Wyo03wKCmFy/ibgDjC8Cqr+Lp8TL5S/0rZBuwZlwsW1gVivZaejRvoSSHKJRBXvLJxUZDk+O5qMGQiyQJFxhnLvCoRRzUeWj2mxO1S+vvPbtNsmAMrO6BH9yuVCJh+YUNTAJC0xY+VVzytDON3ACkVSTPB+A8WH5WROXhCLqvLFZdOeFnNlwNtI8+h2EsJgf1dxVnSf6ZNaoKrOGA7hexpu3r2yS+70vKohi4583i1wSkLpuLz/AAbr63JP1G/Rzs2Aeg8i9XrF6TGbK+4Rt/a++aIDabic4NadE6fv/+HAFmOKqRXfgRGFzbvMh+8SDT/MHYGG6y+7Tvy6y3pe+zY30tRcaPfRwCswJiHck6nk5cc+QWIEMpAHF0MBIi1dDUZMERhq8c4HqWtF/55wHOIKCej2onKiEV85Xasv/uajqaHxyJEqE2IeAX39y+6ILpSS60bZzyD7tuJqy+nbBPU290/QzgbZtdmQ5LdmM8TN8PM/J1BLa+utBy03i7Y7Klkw1HIzAAfxGydRQrNjRXjdMKEG5kK06T/NoGLUiaczZnociBgar0F7EnNXQE2SGrWtTokOF9//SEj5+vOiEPiPqmjZWlhfmCBBqrznL88XapTvvC91C4vICOxOX4Q== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5054.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(136003)(376002)(346002)(39860400002)(366004)(110136005)(54906003)(9686003)(86362001)(316002)(2906002)(53546011)(478600001)(5660300002)(55016002)(52536014)(38100700002)(6506007)(76116006)(66476007)(66556008)(64756008)(71200400001)(33656002)(4326008)(66446008)(7696005)(83380400001)(8936002)(122000001)(8676002)(186003)(26005)(66946007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?v/UPGPdX65eebjWI8QnB30quuIMgbGapujEbPCT98lUvaKga9ZVXggfujrRO?= =?us-ascii?Q?dsbAgpTe+0WGuvYNu609bYi4Ykq8Ao9Qg/nsJOjzaK8p7PPSpQQ4vXlXDyFn?= =?us-ascii?Q?tPucTwaFamBFg5uzkySU0vP9N64p668zLJWw3+CZ/Uh8vd3HtRXxSyhCsN4D?= =?us-ascii?Q?RPgYpwboMdM9zKb+xhxTSukk2ppz4z3I66jNqsPwFOx85fpnI3ahF+tfXME3?= =?us-ascii?Q?F+bD29XSuyT0XYq/NBLXwPiBWR0HbiS4a9pEZ9ty7DJovn3EmdgaUOelgVDt?= =?us-ascii?Q?ev1jWQjYSbQlPq6igalXFus6uodH272kuh74Ysrk1/+myzHcWRDDPt6FC+wp?= =?us-ascii?Q?WRgEDMnMSiPgY3hWNWcUBIcbwsxanxnzpXpsmpbrHqmScl01BBn/qt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WrO3SLTX8uB74Kki3+NohWkbSRKJwo6+YkMFNnRnyUw82uD?= =?us-ascii?Q?iAnZaz0LyHFhZKxgxE78qgy7?= 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: DM4PR12MB5054.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7efdbb05-9957-4993-66e8-08d9422a8287 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jul 2021 16:07:39.5308 (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: 6hRX57WYey6JBJ514voUv7k+mWWB9IT99//6E0orXmDsQTM6Vt13Ujq/c0tPWfhoSEo2QBlddxFjpcG73e2NBw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5101 Subject: Re: [dpdk-dev] [PATCH v4 1/2] common/mlx5: add provider query port support to glue library 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 Sender: "dev" Hi, > -----Original Message----- > From: Slava Ovsiienko > Sent: Wednesday, July 7, 2021 6:54 PM > To: dev@dpdk.org > Cc: Raslan Darawsheh ; Matan Azrad > ; NBU-Contact-Thomas Monjalon > ; david.marchand@redhat.com; stable@dpdk.org > Subject: [PATCH v4 1/2] common/mlx5: add provider query port support to > glue library >=20 > In order to get E-Switch vport identifiers the mlx5 PMD relies > on two approaches: > [a] use port query API if it is provided by rdma-core library > [b] otherwise, deduce vport ids from the related VF index > The latter is not reliable and may not work with newer kernel > drivers and in some configurations (LAG), causing E-Switch > malfunction. Hence, engaging the port query API is highly > desirable. >=20 > Depending on rdma-core version the port query API is: > - very old OFED versions have no query API (approach [b]) > - rdma-core OFED < 5.5 provides mlx5dv_query_devx_port, > HAVE_MLX5DV_DR_DEVX_PORT flag is defined (approach [a]) > - rdma-core OFED >=3D 5.5 has mlx5dv_query_port, flag > HAVE_MLX5DV_DR_DEVX_PORT_V35 is defined (approach [a]) > - future OFED versions might remove mlx5dv_query_devx_port > and HAVE_MLX5DV_DR_DEVX_PORT will not be defined > - Upstream rdma-core < v35 has no port query API (approach [b]) > - Upstream rdma-core >=3D v35 has mlx5dv_query_port, flag > HAVE_MLX5DV_DR_DEVX_PORT_V35 is defined (approach [a]) >=20 > In order to support the new mlx5dv_query_port routine, the > conditional compilation flag HAVE_MLX5DV_DR_DEVX_PORT_V35 > is introduced by the this patch. The flag HAVE_MLX5DV_DR_DEVX_PORT > is kept for compatibility with previous rdma-core versions. >=20 > Despite this patch is not a bugfix (it follows the introduced API > variation in underlying library), it resolves the compatibility > issue and is highly desired to be ported to DPDK LTS. >=20 > Cc: stable@dpdk.org >=20 > Signed-off-by: Viacheslav Ovsiienko > Acked-by: Matan Azrad Replaced older version and pushed to next-net-mlx, Kindest regards, Raslan Darawsheh