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 493CDA0C47; Tue, 15 Jun 2021 13:01:31 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C8F944067A; Tue, 15 Jun 2021 13:01:30 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2072.outbound.protection.outlook.com [40.107.243.72]) by mails.dpdk.org (Postfix) with ESMTP id EB85840140; Tue, 15 Jun 2021 13:01:29 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hiv7RBE9a2xpsKzstU233eyKnOaPwRP1vlrlebcVSYM965+ZvN3cdSqXYaxluiXfphG3UUlTiY5f5EAkPyVqcj15hOkCnBLgadnY+WEONacBuCV7j+dv2H1TdDC2D96jh4fPxv3aAAsvmqsp9nik0ss8n1t1bilew04aUs/wFgabqkOdDPWkPJD2NtweGzRo/Z4CD91wkQ76op5yJ/BAq0tpuCG7GQ3/8ELNGN7EnufhfnJcWwM9WV9oagq6Do+KHliHW/xGTl50f9EEiwcfYkylaXOIZ4jEnpzqVRetiJs0wbZVqgGz8tPu/xc39Uzhq/bPuyCscOdSgoVzczIWGw== 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=8fEN5W8rNsrHtXziJOGzNkeVUoXQnPvcvz7Psz1vJ5A=; b=kcyeZvP8hyg+KjGlZZ6Qs7OTsHGEUZjqSWID5P9UDNlgJLrQ8+IWtz4SgDxaI629A9X2mqKQ/F1qudTi0cCb6ygNS4I/mj2GaUrfpeu3SjauGpgrUplBoaqN9mpb0fEt7IwYe/Rx3SLyZjGURFGwAn4W8sJtdMv7iZBKBkjOXXO2yJC4PETDWpfb64O5XPUq+cJZy4HBEEqRD0RyVoO6yUF4+eCha77QkMx5HU3DKBaRD7tuo87pqK8n6iMcn7fwSVRfynM8Dc5WvNAls4jAUxBBxeYE28ILJMGFTbPNtTrLUncSSgm7PYE3mIxwcubooI1/ltIHtEAoGJwC1C9/Mw== 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=8fEN5W8rNsrHtXziJOGzNkeVUoXQnPvcvz7Psz1vJ5A=; b=HGBhtGU4yGnEePIx6MJeKXstCpQDlfiQ3dTKdbHwyoOjeeGXslv9YxnkJc/NoCwpVaBlYmWmyV1xFMqPEWgs5qCDbdWerJ157W5Q3f9BwLPHRu/8H2j1/l8OfQaP2KwmWEJRZ/vnQE9dq5I9k8Et96L/Yvdo2+RRkt1aTkN9IsqRu+g9OdSZQ+us31PNXGH3vep5A0PhWxHfaxZL0SETfJPr/6MW2OYfJwl+ONF94Fh5Cg141usLNpWDhIK/bkGE//11Z1/VP1WOXF+ewv2lTY0Tbzh05s3Wx9yJdzv3/8W7p01/216RzwAjBAJFYFStHXLDwAIVx0Y1SlBow1gklA== Received: from DM4PR12MB5054.namprd12.prod.outlook.com (2603:10b6:5:389::24) by DM8PR12MB5414.namprd12.prod.outlook.com (2603:10b6:8:3e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.24; Tue, 15 Jun 2021 11:01:28 +0000 Received: from DM4PR12MB5054.namprd12.prod.outlook.com ([fe80::ec20:feb5:66f:ad50]) by DM4PR12MB5054.namprd12.prod.outlook.com ([fe80::ec20:feb5:66f:ad50%7]) with mapi id 15.20.4219.025; Tue, 15 Jun 2021 11:01:28 +0000 From: Raslan Darawsheh To: Slava Ovsiienko , "dev@dpdk.org" CC: Matan Azrad , "stable@dpdk.org" Thread-Topic: [PATCH] net/mlx5: fix switchdev mode recognition Thread-Index: AQHXXte8r4IEpBcHN0W+13V7I6HCOKsU7cNg Date: Tue, 15 Jun 2021 11:01:28 +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: [188.161.228.24] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f7d923c8-8d41-4392-bfb9-08d92feced2a x-ms-traffictypediagnostic: DM8PR12MB5414: 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: /DlECqnXTOZK9WHgqVQZTnUnFUjVwS4i0vXDxc75wrOGf5X8KqFeMhZlsf4p31ZScm0V6ywgc2b/PnNRqrEZq1lk3WOwK7GbIMir6X9GFgfJnJ6jxrEOx8imnvRXCvtVOCBGQm79TIJaznJfNHABv/GEeS6y5JN0+YCYwiishscVuoQlttBXUfiWHwyKGRM4uDVB/fLsWHJNzsOZxQpsx/cx6tgJiJ5tifbZJ1fPmuDVHPZaXT/vA78yG3xUFUkWHfKBYkEgut7/Ir3t4sM+ZHVDITSoR6gjADWz1uSSEZaje/ogUYcUsLVpR8tkUY9/RSUnAT41fs/KNCOF0kEk58YeJKo5aXrbaFRTb3i4Utsy3H+61MFswiNhck0IMaFKjxcjsDzV4VIw1/3JPwsr6zx41ohlF5Zwp2NQxiDmVmLGXFFPA9bmErtD3FLPQrYNvM+RmaflYBzSDzwh6n+C+IpYer4d+ZPvKOP69mx4PmSJAcV8/bavLjZarMj0VrXnC4pXGnbQtBsz1WoHpEYn62tjUu0GnmpvlZ+YzdDoPVBfBvAPVaDWKG/0KE2M/rKrFDNjWmH24HzE183OIXKgqFg1hq3GrKnJ1huFDMTNl9s= 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)(39860400002)(346002)(396003)(376002)(366004)(136003)(186003)(76116006)(316002)(55016002)(66446008)(6506007)(110136005)(8676002)(5660300002)(83380400001)(66476007)(64756008)(66556008)(53546011)(478600001)(9686003)(33656002)(4326008)(66946007)(52536014)(8936002)(2906002)(38100700002)(86362001)(71200400001)(450100002)(7696005)(26005)(54906003)(122000001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?UhRtcjrkz+02vyo2Drc+ZSU/JPZYqCMSrh+jFCYqafHmjQDsp2D9EtkXRP/Y?= =?us-ascii?Q?/kZ9xd29XfiA2P6wSUDyh3lgCAPZxKNAhVuPS0bapln5MaVwQIM3MD5HoNzl?= =?us-ascii?Q?CCxbi1e+BJt/UQS6wj5pXtfnLZxOsC8WrpLovPskvQpZP2Xmsuh8fJdV2K2b?= =?us-ascii?Q?Ago2N9MjYuB2C76Ck9YvcX7hsENOGvcZWxMRrlLrYZVPcka2KVgAIIlx5pYL?= =?us-ascii?Q?eN1Brm75SdmrEFXTaDNHi03mZI4BKi9PyUF8erSSY5Y2ZTe/aZx5XwV85jCM?= =?us-ascii?Q?awbxzjxyOIe0H0qA0vPB5oJXrw57FXF4+K3JQhuSziZe1V/jaS5nIqXAri1f?= =?us-ascii?Q?g+df7fzoOHOApG4UmEXrK06gsgpGtiNwoxQQOL5WDT7DjxcEtdQe9X9goUmT?= =?us-ascii?Q?D/0yrehEGqiVcWvk4yFrJZeMypRv3LUOVnK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yg7SVZu36lkeQo8hZ?= 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: f7d923c8-8d41-4392-bfb9-08d92feced2a X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jun 2021 11:01:28.6319 (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: ztvT3t0pgLB2wH9r51UnBhGG+077nQR6k8jg/B7M+/Ldtr3hmd+w7ZDyex5SavEntAy81+Z2YwOWn40TkfHPqQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR12MB5414 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" Hi, > -----Original Message----- > From: Slava Ovsiienko > Sent: Friday, June 11, 2021 6:37 PM > To: dev@dpdk.org > Cc: Raslan Darawsheh ; Matan Azrad > ; stable@dpdk.org > Subject: [PATCH] net/mlx5: fix switchdev mode recognition >=20 > 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 Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh