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 68EA2A00C3 for ; Wed, 23 Feb 2022 15:34:42 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 38D05411B2; Wed, 23 Feb 2022 15:34:42 +0100 (CET) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2078.outbound.protection.outlook.com [40.107.92.78]) by mails.dpdk.org (Postfix) with ESMTP id A419E411B2 for ; Wed, 23 Feb 2022 15:34:40 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZE7nbMY47id0X6HB+njZQ0oaU1YInVuF3CA7mQahRaW4jvvvUVsQcF+7OtI9iwSNWppdVriaJsOGQi+O1ptsK1gAxxa2JPupBi+zREnAdv29ZIg0fPyfEQi/ZaLazt8Or9vRc0sLGaMyP+x7AM7iaXHng4rMB7TPnTEXIPZz3cqoT/cVFvIPaGdxBDdfloArzk2IR2NDbg6E0uCQWhRK4SJ3hTfCwdy+SV7hOgck+wtChqM3GV8HAA6se0mJDbEoSwVc7dMU6j9grZ8A8xbvjHJ3rZW3kTE2qlPIU6aUFrRU+TNftpGfcV91DVshhVhy6c5VBJ+rZSoeHJaEY/Vsdw== 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=baBBgrdtfmtE3EMt2CoiDq8MhO16IBwbj7AnsiKfqkU=; b=WXASnaTXAONfbpclio1lln40M5a6rJL/Lq/NEOwp4Or3cFm/UQTO+OcVNu02XZq0AMaezWe8QC5t7zZ767pdxc/3hY29KQtClCIKD136fFS2KE79wnXMPUuE37IKA+hiyxipN0Z9gTKpSZorrOztDwVNN4jo89KndvgJza0KIU5glGv3wMzR378Ysi+2UuSIUnV7HVwh+wyN7cH/F1X2KAaKWt+B7ctfjbuOYnqBmqb0kuLD+gPo5jverllqsqFqwUITGst6VlvcvJHKl650XdNZoizFe22zeOjbyTuTmdJ9QFs/vDo0n8El4T3mBPUnvPvnUSNO3slIna69f/HupQ== 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=baBBgrdtfmtE3EMt2CoiDq8MhO16IBwbj7AnsiKfqkU=; b=Heco4YALP4dgnN42ZhD1XB3mWS612Fddtt7MDYIMCS3kNwamaBdIptLQxeVWGTriZ7WRzvexvR0yIch9QdS66g7brmZpqqdnLFoZwD2Yod6eqsB4n0WAVyY83wppTvPlnp5KwV/eqnrB/WO8n6148cPIgepjjWMbCvZ26Tgj3cr/jL2IqPcWD0z25F70qDEf4/70iBEjax862m5JWBUxyA9hA/4WRN5jkNIMMG6yeF6sJjnyrn2WkgOOktjjOk72QhcNAHclBc8NBjUXse0j0BNVk12zAaRZJHtuZUqPmXJ+j5EKpqjC054IKkKsXn22bIwfLcMP7x9/5shE9Mn9aA== Received: from BYAPR12MB3078.namprd12.prod.outlook.com (2603:10b6:a03:a8::31) by BY5PR12MB3857.namprd12.prod.outlook.com (2603:10b6:a03:196::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.21; Wed, 23 Feb 2022 14:34:38 +0000 Received: from BYAPR12MB3078.namprd12.prod.outlook.com ([fe80::c8a5:fe91:7c8d:5e84]) by BYAPR12MB3078.namprd12.prod.outlook.com ([fe80::c8a5:fe91:7c8d:5e84%5]) with mapi id 15.20.4995.027; Wed, 23 Feb 2022 14:34:38 +0000 From: Raslan Darawsheh To: Shun Hao , Matan Azrad , Slava Ovsiienko , Ori Kam , "NBU-Contact-Thomas Monjalon (EXTERNAL)" , "Xueming(Steven) Li" CC: =?iso-8859-1?Q?dev=40dpdk=2Eorg=A0=A0?= , "stable@dpdk.org" Subject: RE: [PATCH v1] drivers: fix incorrect E-Switch manager vport ID Thread-Topic: [PATCH v1] drivers: fix incorrect E-Switch manager vport ID Thread-Index: AQHYJ/4hJKF8hmRQkEORB7QRI3ug/ayhNOWQ Date: Wed, 23 Feb 2022 14:34:37 +0000 Message-ID: References: <20220222150717.12127-1-shunh@nvidia.com> In-Reply-To: <20220222150717.12127-1-shunh@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: 304efe41-afd4-47be-44cb-08d9f6d99ec0 x-ms-traffictypediagnostic: BY5PR12MB3857: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: l1W74yH7icT+pUoY6a1Y6kJDUt/U4hIgdwUWPB0o5YuqDhJYdb70x4s1e3lx0GbfMXzyqyiwxDMqQNM1IZ9FVZEoAsMfwq8tUWNKEekuK/cq7G9YozaxrbhAgRzcJ4fi3fI5cq+3lVtB8iXUYYVQgb8ajHZpKIFmhnjjOPH5aQzmbxatzokp0/E/cLHvkkjks4nyp8aEqR5DnONkH1sKh35Lj3AcEfU0jOlHiyW/lvBMrKI8QIXzdCAZhzSZHkTmZIkk+/Mm35eLnPoW8SxlwkSykDo4wMVgq1PVuwVB8HI2ltoX58j6HvqHHaEPRq4cpG5iQ7MBhXNvaoijUIKTSCBNYtRodUweVlDTuFgvrAW9dITDvogZmBuzqao8V/u/KY32HFYrjGLw3SlfBRGjjmAg9HmXZGQWeSvm2jV/SLF/BA+/TPNMeRYBAmos3YW6bW2jaPyiJ+Ck3bl6dMOsWIxBdc+/77IAs2L/5JMf/KCB8fEt/2wutNIkaaqDHbr5XDn3D82/eaQq/iWCrdpjEfXCwzAB2YBO4dJq/CJcVYKDWiZFtBZ4ofSQQcwcXA2kX2RTmGF/tF8lSe4i/M07x49e9V8f2zAKW8DawVooaHmB/XCp8zHwQsueaT989ltrcZNXEse5NOXX1jKYmbj1kQ8CI2ctX+8P0WVyfCktoEt3ghgodRGby1sYk+4t7EN3GJU/MwODbvngqlYFFeoSXg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR12MB3078.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(86362001)(66556008)(8936002)(4326008)(2906002)(76116006)(110136005)(55016003)(66946007)(8676002)(9686003)(66446008)(64756008)(122000001)(83380400001)(5660300002)(508600001)(66476007)(53546011)(52536014)(316002)(186003)(38100700002)(38070700005)(6636002)(71200400001)(7696005)(33656002)(6506007)(26005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?FR3c40sVHUcSVHsW9CerZ//JbgbZFN89rRRja//45hy2iIkYRogwg2JFRJ?= =?iso-8859-1?Q?et1/Szbo/tel7ilyhd5CCh+ZEsw3dQmHX/LJt7zan8hvIsdcRLC1pm3DLl?= =?iso-8859-1?Q?a6+DurekW4fX6CPoeo3EbVaDlQ062ft4j/eUrkYdUFD48Zv3dgaPsWyB7x?= =?iso-8859-1?Q?N+BBJIq2K0keG21oaawVIKgAiKZpvg0sYwFbN9CbLJ+xWAvGCronFbxOXx?= =?iso-8859-1?Q?s5Esw8L743r4Ggy+mmM5LQgNLP58HdvpG0OLIQ87X51y0ljp1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738KL2+QNK5dxpDLCIBLJ+JdsDUPbJI/sozjXoPK?= =?iso-8859-1?Q?RDviCa/PwVRfXtz/B9ui48WHxOVxcFyrhQJaHMGGr6gM8yhnEada89YHnn?= =?iso-8859-1?Q?/iPpeJ74Bw6YHU/83B4Ab7yenQzDGK2lOVDQ1qcyvSY04BPCAgDl+cFyTO?= =?iso-8859-1?Q?jpcyEPavnYprtcNrLLBNDa0xTR+gi1ymSrh24q60E+dfnkT/ghGjMeTZAo?= =?iso-8859-1?Q?a7R4w13dJRpgU/Vhka70bA7ZvyxmlHrHHd3h8I1xwntpkvm/QtUsnSR245?= =?iso-8859-1?Q?MmuqVs01+WRWxHDrTO4Sr+EwdPkha6FI9/4J2vud8EBY+6RQhF5Ce/W31P?= =?iso-8859-1?Q?39la8k1/SXYbj66GnIWKDnCVAyb2W26dxHb7Qxd0mR0JqroXqPbTddxlYx?= =?iso-8859-1?Q?hsUKbZGU33Ym8hapxoOZmm3FqgDH9wTaT1JRycDNCs0U1YbJ8pi1+MHn9A?= =?iso-8859-1?Q?9TlR9YNnOsfhmk4EkpSZJ7iAjkRTx+afVw9ZB+DpWUluyxCLeLSV26KVSP?= =?iso-8859-1?Q?Y5DgtH8v8IVHIShKBNE=3D?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR12MB3078.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 304efe41-afd4-47be-44cb-08d9f6d99ec0 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Feb 2022 14:34:37.9341 (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: 73hDbywedeVhMWRtAjqwPmCpA18wlpX1qtOrL5x/0IuMJNQD2slZQ0L/oOMacMLhr7xOCKV4ZAj1Bz/5t6OyLg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB3857 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org HI, > -----Original Message----- > From: Shun Hao > Sent: Tuesday, February 22, 2022 5:07 PM > To: Matan Azrad ; Slava Ovsiienko > ; orika@nvidia.com ; thomas@monjalon.net ; > Xueming(Steven) Li > Cc: dev@dpdk.org ; Raslan Darawsheh ; > stable@dpdk.org > Subject: [PATCH v1] drivers: fix incorrect E-Switch manager vport ID >=20 > One of the E-Switch vports plays the special role - it is assigned as "E-= Switch > manager" and has some special exclusive rights and duties - it maintains = all > the representors, manages FDB domain flows, etc. By default, the E-Switch > vport index was supposed to be zero on standalone NICs (regular ConnectX) > and 0xFFFE SmartNIC (BlueField), but that was not always correct - this i= ndex > can be assigned with any value by kernel/hypervisor. >=20 > Currently the E-Switch manager vport id is supposed to be default - 0 for > standalone NICs, and 0xFFFE for the SmartNICs, and is deduced from the > device PCI id. >=20 > To handle this and do not suggest any default values, can use DevX API to > query E-Switch manager vport ID directly from the firmware during > initialization, and use that value by default. If the new method is not > provided (legacy firmware), fallback to use the PCI id approach. >=20 > Fixes: a564038699f9 ("net/mlx5: support E-Switch manager egress traffic > match") > Cc: stable@dpdk.org >=20 > Signed-off-by: Shun Hao > Acked-by: Viacheslav Ovsiienko Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh