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 E9FC9A00C3; Wed, 23 Feb 2022 15:40:00 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9C22E41226; Wed, 23 Feb 2022 15:40:00 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2080.outbound.protection.outlook.com [40.107.93.80]) by mails.dpdk.org (Postfix) with ESMTP id 3ADAC411B2; Wed, 23 Feb 2022 15:39:59 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RQYBCqKbke/igpTXUKgfzER21GEPTNcRQ38hYihDkJIPFRKaEbCx0azkCBW2J7XAr8hWxtLLUJp9ly1u0dqtqoNH83nnDALyEBOEkL5+1Vfj9HpmHtrNmm2RdqWrvn4z4cLpPZTruuD4WNMl8o5nzRi2F4tG+x4yU2NjfTfQEUgWQUDR0zvVJ+Kz8Qyp2XlKWVi2gqjjDQV4SdWRMC6kLP7pHkj9jZm5azb5LiuynJhVNjlmW5W69wfe3AkJ8ZLYdLnOYZvjtroxm2XbYFNo0w3/EfLP0SXQOLJGWcZgcznPM+pyq8LDBq4KHZWuhEcjumopIIP7MNvofK451sLU5A== 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=hqGo+ieLLRVUkLMKQ7eUHkkADgMOAzuxgWg+ac99XQo=; b=HStZZtAL0gTW7GLaA0z4gemrukJ3HA0A2rrHt5NAtbqql9qCk8+Q6woCzquEO9HuvkkHxTw4JtK3sN3TFsN8kmVfeoPsPD+5tVN5HGfA0u83SxJFc3zTQUfvB3VceXGVvevJF5dGXHmhwOzXYzp98BwHTvL+s/G7l+/Qipx2xItm2VXxBQiXbW7+T7SiWtmZKYiFu3kpzCOpopIxBOMR2OPb5ICB0Npxde8mxmx4GMLszSTl7/XSKZ6SSTmIvOGWj7Xsswy68NPELMeFVK7p8ckDKoA01uidTNdI8i+ufUiqpfbLKOUua3klSGLIDlkaVO7fqF/B+vWGMHDrySHZXA== 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=hqGo+ieLLRVUkLMKQ7eUHkkADgMOAzuxgWg+ac99XQo=; b=FL1919klMAaeJuHM1zoaV643SWlUybjtwftGqY2++Akwhj9wyqGB1BOh66pSdK6WH/mHDmwzB92aSF2IkHWv1/4Ssj6dnQnjuV5/CxXpfxXaISsIEVfKThN4p0Nf/b7TN5v4be4qB7JDVktO2uRfg+pE6j6++sQ3Eaii9j8E3frLgU6veOnrf+fQWGxtXLz/53aM/Y5LKwHzwkMYM3hNo8t3g36Ax2B5MsEJcslVxT3YKFDBc5IuuBaqD2wMHiCYvhfDBnK/LApBPGASrlRQWMKqbuBqTD1/+0420rK7XKdBF03rdruR1/8ognlqOH5EZjJ+V18/ImdIRPXaS75pOQ== Received: from BYAPR12MB3078.namprd12.prod.outlook.com (2603:10b6:a03:a8::31) by SN6PR12MB4736.namprd12.prod.outlook.com (2603:10b6:805:e0::22) 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:39:57 +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:39:57 +0000 From: Raslan Darawsheh To: Shun Hao , Matan Azrad , Slava Ovsiienko , Ori Kam , "NBU-Contact-Thomas Monjalon (EXTERNAL)" , "Xueming(Steven) Li" CC: dpdk-dev , "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/ayhNkTg Date: Wed, 23 Feb 2022 14:39:56 +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: f3e22b3c-de4c-4383-846f-08d9f6da5cec x-ms-traffictypediagnostic: SN6PR12MB4736:EE_ x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr 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: g/RGqFlzW2Qt+Rlf9uR+CgMtETzvwfjFWV+mMc/ilDH2Oc2jv+2uC1wHw0B02Nm6laI4VE+XU2A5A/sFl7JnWhUE/w7jYNPsEYDqXQChIKtbSsf6s9lhcCMcDmSU1YmcuGxDKkY/pXvGyWMmuDXFl9rSS8fcUSL2vfJ+vnQYKA39i+2CcoHE9EQpj3oGp71EfUZHofpsgz51gt20Kih9ipUVOzMhdJclq4E/AY2RV9fEQXWYq293k5tZ8yusIRh0khnVALesA8FVKc7PJDiuJ922d7Sw7XC28it/z/p8uzg1CTElmHUXVm81j9tHALnZibqBcxrc2IEOofjo4BEZ3Gg7S8IxSXpXkoTk4K/O0DEbzL/KGvkVAvh+rLduWIliIFLo66YIZYf2ImxaJlRR0RFsxmUt2RSPPK0v5ak/2wnUkqQhmSMmZCqEOT6MU62VER/wjLwTqkAaWkRFE0xuHjR0PY5CzPcZhObiKbsueY1jwr+z6/P3wUF/ObMPr9Q5fgGnMRUy6ErEPwKwaqoSw3ZhqzCoDnJ2bbkEzW1nRouSTEI/TEhK6X/YSILpCwBiVlKihjU3Jws/GwFC9MOsxJaaaXTNPnw2fS/9r4sdgBcYAvqNfg256X8T4geANRUJDPGl6RqRkKhFba602MqHrg9Iv8e4yu2sPbAjB07kHbyaAZqS+j3LZQp2VWbKOp/Dx2IFkL5fSD/rVaaqEZ3zwg== 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)(9686003)(38070700005)(55016003)(7696005)(86362001)(6506007)(508600001)(110136005)(71200400001)(53546011)(54906003)(122000001)(38100700002)(66946007)(5660300002)(4326008)(186003)(8676002)(66446008)(2906002)(33656002)(64756008)(52536014)(316002)(8936002)(66476007)(66556008)(76116006)(26005)(83380400001)(6636002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?4cQCJOvnY1MW1qXv1qeIC4boA1vVNxlCokjmJwfCCE7Yc6VJ1eubTLq44XJd?= =?us-ascii?Q?dbQpkPybNtvBFOcYiIZQUPLSCy7RPbjwnEviRhdNeICg+bSr7uUrPmHLiIcg?= =?us-ascii?Q?FXQXerYdZkb8RQ2I+kHbOPrK6FTg6p8gjmRxUV2cr6jYxmPBSEqGxdutmJs/?= =?us-ascii?Q?NucFg0jiIZ642MvrjCZepKcuIbh9UnFBONwM2HI35wztj2c1+LzOolXLo7f5?= =?us-ascii?Q?gYEU9rqSAkrg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ZkUE?= =?us-ascii?Q?wEwdjcVo5kSZ76wixBucqC00KEKM1AD5wlrQsvYQ1W7/YG+Q3irwjexYgvQM?= =?us-ascii?Q?R5t8kkcg5ykkKuV+Yo001+TRQvK0zIy0LQ7BYduc03/OdPKOu+0sLNxHeX8g?= =?us-ascii?Q?6x/Sy/jVF9Wu4RERBCboHypKQNZFvXabrrdG21ASW7UB0iA3+RbTN8TrF41C?= =?us-ascii?Q?udM6JktUd/HtbOkU3OECqt3Kl7BA/vyoesNsL3vGgkjLaAc8mFmXdFdOBM/P?= =?us-ascii?Q?kAe45kaceroyGwQKCxE4VmPJMTqCKooOW8av+Jqmv9wv9wXOVGkJ72IS9JH8?= =?us-ascii?Q?BgwwZmwBThnhFl0M/lQPhfw1JU76u33nILFmhqv+dQFxMMISlVvX1R/2QKpo?= =?us-ascii?Q?kIXxX/YjMgWc29U7myk7kc/7+hI741SCZc9GMCkpDy/W73wFb99OTQ0XLSLu?= =?us-ascii?Q?Akw4gDtUzwhtHNhmiY+t1I8gcV9aY4BY8ZQZRIpw0VewTXNH90chnLtM2ZAL?= =?us-ascii?Q?QjVFk1xHVgYUHc8da+EylWI=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: BYAPR12MB3078.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f3e22b3c-de4c-4383-846f-08d9f6da5cec X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Feb 2022 14:39:56.9756 (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: wvGPeDV529d2wDImsON8yMXTfCRzsNvv/+iku6KvjwK6lnJJvjuVO0ndvz3xOLCq5XFZXzUJDcKVQUNyCAJqog== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR12MB4736 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, > -----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