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 17E3AA0A0C; Sun, 13 Jun 2021 11:12:46 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 875954003F; Sun, 13 Jun 2021 11:12:45 +0200 (CEST) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam08on2073.outbound.protection.outlook.com [40.107.101.73]) by mails.dpdk.org (Postfix) with ESMTP id 3E1564003E; Sun, 13 Jun 2021 11:12:44 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CCNWIsYOFizGOJKkfyZo2dYMy/jsKpQszNWgeGDBunnQB/iCfLxIczxYQZdAj4i0ycFxIQTV2gRixgxgtZeSIDFLEtogLJisFQPJdGPkG81AI/aowmuvJrtUNDUscmvehiAE5Ai2b9Mv6NIajX0Umm+/lBogW1RT8tJD6WpMwOarDuhZaguCnBb0YDGaLYnmAnebNCGnE30wC6DPhdpIelEhPIoI23/0mCXqmtbjvtpz/cSMbJUBvSvgvT4pdMy4xXIBy5gSWBjUXpAjVqP87PJwqJGQrfinM9TvbMiA2Tts0WVPs5/ofl2FCIF3px3oBOq7+PtLgdAfF0varHuDaQ== 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=7kvwNgDaqqv+rcEX+u0OJOn7q/5DsY9qSCGO17DE568=; b=fMVdpuMrd4kIrBDpemQp45Tc38U4LQnCeXwDOsRLGVCVJlu7Iuczc4igLRYrHC3mCrksxQl8mWKK0c2Vp2xAuwbr42siOe2jSm6L0eReF5uJ/+Czu8BFTW3K0veE2WP/pDsloFtw/7mIsBAFUNhlNU0RBmIdgIwW7sxXXbIrpOyEcc5xScLl93kGuDZBMSAN2yr5ThZpBRf1vbJRbzf0rk1nHcVwuUsKBVgzR/RPSuYHZZo7VavDLxa4c99kKKodXFVSrUpTE+DSVN6vxGXeaRgDE4CtyifIaD8XZFqn3mQP+ZOjCc1G+N3kaqBc08jIRvD/wWXkzgCWa8SEVHJqIA== 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=7kvwNgDaqqv+rcEX+u0OJOn7q/5DsY9qSCGO17DE568=; b=kLagj6yVhJzgl1IDTLEEEc/p7EHg3scVh/OPsYV62ph5OKZAvMzNb5OGrBnKekbLSgjKLiWgD05qMT0E6xQKT6a6ijEEcr9UbkzCtSFWzztHXjG2TnlZtPo1mHQEtt2FOAL6uXw38sXJgIjmoaLQM3XJ8xf57iSXxwGAGA1QisD7R3Xk3OC5trHqPcTbAcYo5QxhFgOfk1h1bWMAnG+9cnaYfPuzOPKUp76yNBa9JYXrqIwpmGa4L5j7y4bEjIgmgmupGf1tXjltdexlp9VCaNfqU9UXSVu/IG+YNLH5ZjXEFCf+tc1KHYNCaygQeZn0TmOkxqKmjHRQIeSAV4+0yw== Received: from DM4PR12MB5389.namprd12.prod.outlook.com (2603:10b6:5:39a::7) by DM4PR12MB5296.namprd12.prod.outlook.com (2603:10b6:5:39d::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.22; Sun, 13 Jun 2021 09:12:42 +0000 Received: from DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::9984:54f3:177:68f4]) by DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::9984:54f3:177:68f4%4]) with mapi id 15.20.4219.025; Sun, 13 Jun 2021 09:12:42 +0000 From: Matan Azrad To: Slava Ovsiienko , "dev@dpdk.org" CC: Raslan Darawsheh , "stable@dpdk.org" Thread-Topic: [PATCH] net/mlx5: fix switchdev mode recognition Thread-Index: AQHXXte8QTUr9NzWoUukhobSJRXMp6sRqrQA Date: Sun, 13 Jun 2021 09:12:42 +0000 Message-ID: References: <20210611153719.30210-1-viacheslavo@nvidia.com> In-Reply-To: <20210611153719.30210-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-originating-ip: [79.179.70.7] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: bef29e44-adcd-44f1-417b-08d92e4b66a7 x-ms-traffictypediagnostic: DM4PR12MB5296: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: xxEJehlsTDv89O1eCmE0O0Qm8XC2671M1X3p96lIa+L5DyiAewxgVIVd/4iyRkhi2cm2FHzVsiYAJjzUrFa2KqzmmCtnUCy48d3kqJiiZRKfKI9kGKDpzRGK1KfPtxfISbleLtMjNYIgkZ39NYEzmJq9Fppi91Z/bbkymEoyLb4M4/glFGIuZ7Qe/XZ1mg8l+eNcDG63MDJ5bmrlRRK8nxy4QPgp3yyXM6PSccAQvOUU4UBCa7DiSXejrugpCdhC7G1PWPGqxpKHZmQ8ZiDr1oYQV43E9z/YnRwCJfP4spkUyxTSrcBS9oyIYP+OD5aF5G563REA440zpS5kjNHjyivma920E41jmGvn9Kky1H3knwBLlahfKa6AsAGIfuQqMAVFluEVDfTAn78MmlLxXKlKI8yiTs2MdLnIJE6zR0a2+sf/ywZLvWYgzItyPGnw5wmrC0Y+8QSRZiHuxkkUMY8VxIhwRbdTZxEUEL0hwE1MUaTbe37bQEpgHw51/KIlK1HuxrKcd8EM372zmIkE5YRr3R3V2dafk/1fXHDCWpB72hyxJzohp/UJsKSEGRdAOcyhqJO/eAr6zQn8aS/ZAXx27EjU+AbQR2hlpsT5LB8= 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:(4636009)(346002)(136003)(366004)(39860400002)(376002)(396003)(52536014)(8936002)(86362001)(38100700002)(316002)(6506007)(8676002)(450100002)(4326008)(54906003)(110136005)(122000001)(4744005)(55016002)(71200400001)(9686003)(186003)(478600001)(66946007)(66556008)(76116006)(66476007)(83380400001)(33656002)(66446008)(2906002)(26005)(5660300002)(7696005)(64756008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?kzwrxl20VNXLStS4aDjU1ntU0TbgvZpF//ykI/ckBSpf9LX/zTeeocTmx7x+?= =?us-ascii?Q?Kge8T7SNa1f+sy6E7aJ0w/jzYmZ5u5gk47qnaIobWXrN0F+6OOQsXvPT7JDk?= =?us-ascii?Q?iatZY+JS1103Q/rxO3a1VVbJSd9WVuHL3lVg9sOfyVXtD8H8/QulMIgQoCyy?= =?us-ascii?Q?Pr0FUMGoJ/OMiyRQgjJcLWZSVcozPL93xxjVssnJPzyehAziyqH2qgDBhoai?= =?us-ascii?Q?MqgaT+opc4N/MelgRdt8+Lc/R4DjxqbEyJPRgPK2pD8iZveUmyMLM63obOt3?= =?us-ascii?Q?RcSB9aWaB0sPlL9hfzjroewTVstMrgnLO5Lv/5XFaKK6Fr8Npgqrc4DzQYtm?= =?us-ascii?Q?DjFTuIxD5bWwFyHd9352mXJf9rVBA56I0G70ITmj/bJ1L6te1QTcHieVHzoG?= =?us-ascii?Q?91plDHQCLEr090976WUfagRDPpzHEpLBsqGH869xbk0Fy3s9LllPd6nHY3h9?= =?us-ascii?Q?16jcpm9EmhOgb2QGAko2AF626miqndXPDhBqZr+0epJ1P1yVZimbKsGV5Tt9?= =?us-ascii?Q?n40vD+Cb4W3iXyU2NlwDb2nqIzlGbcna2x1hlNPqptP1fk1CoXJW+NTvnxEE?= =?us-ascii?Q?1ke1WcC7brDfldol0RB61wghdn53DhA8mAGZs1MTzSBEFvSoJwKNWNz8bpMD?= =?us-ascii?Q?E1Dhx7/6Zo1sKeCa6eMtBaACDrkmPNZt48921K1sDkqrUpOSTKAaQn3F0LqU?= =?us-ascii?Q?+Umd61pUZkJ5NgJumqptMaw1z+qbiJInH5yMxO0r+ieoeYjTRkZ2XYUQHL47?= =?us-ascii?Q?icAOcRH2qs86N4dzEZB1CUbtFFgilBVaeRb1vP9XwGYzWqO4394Mnn/dT+ly?= =?us-ascii?Q?a9YNG545ShOAi/TWfdYMYPyK18pjtfXzzwkD2NKqLy60z5lsb0PgBBjCt3c5?= =?us-ascii?Q?h8UYP5WM178DJUoy4/XUEWx2hNEAZ2wFzFFi6iMInXOIBQB58tjqmNay4VYF?= =?us-ascii?Q?iH7r59bgR+iIqG8alEHRPHyRTqrMN/OuAOo5/nwFdkXhbf+6MGOaVMj+RRR7?= =?us-ascii?Q?NLJMGd2tKqbn5xDkWBZ1boE2GAgwFagleta4Ica9Nezg17D+YH6edRdukp9B?= =?us-ascii?Q?KqXQXE42FD1aReEkFox+eAHhemRZCMTRGF5PNXc/PBVnFw9MsDxB7lCjOK8Z?= =?us-ascii?Q?WR6N7GFzel9uFBTlC6WXnGq0DIWieJxJ2cXZERuNDJFGTvpCHrUOFgDsNlo1?= =?us-ascii?Q?sxSsQtlsTLnwMkxLfXMRpyVPoA++lx4RTz8MF7pVbOK53tmzyXbY0iwRBdXv?= =?us-ascii?Q?DHXubNaC4FpzLzEQEMiXLEXPGIdv7QsIpvP+jUwFRMR6HG97TSrbb+vjURTS?= =?us-ascii?Q?cZE=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: bef29e44-adcd-44f1-417b-08d92e4b66a7 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jun 2021 09:12:42.8262 (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: Zs1JtpfYSCTMLeWkNGd0V+x1cTDMmExMGeYF4bU+T62b5uhg6h0T5vEpJkj+yzEi4lmuvuEoSOdclC4Ubg0d9g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5296 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix switchdev mode recognition 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" From: Slava Ovsiienko > The new kernels might add the switch_id attribute to the Netlink replies = and > this caused the wrong recognition of the E-Switch presence. The single up= link > device was erroneously recognized as master and it caused the extending > match for source vport index on all installed flows, including the defaul= t ones, > and adding extra hops in the steering engine, that affected the maximal > throughput packet rate. >=20 > The extra check for the new device name format (it supposes the new > kernel) and the device is only one is added. If this check succeeds the E= - > Switch presence is considered as wrongly detected and overridden. >=20 > Fixes: 30a86157f6d5 ("net/mlx5: support PF representor") > Cc: stable@dpdk.org >=20 > Signed-off-by: Viacheslav Ovsiienko Acked-by: Matan Azrad