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 0D89143C26; Wed, 28 Feb 2024 18:47:21 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F1B76402E3; Wed, 28 Feb 2024 18:47:20 +0100 (CET) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2076.outbound.protection.outlook.com [40.107.102.76]) by mails.dpdk.org (Postfix) with ESMTP id 145954003C for ; Wed, 28 Feb 2024 18:47:19 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MMS5rxjsEdNj58Bf3wWnMgEZaVVUym2gXXCP7wF4WJ1hzdGTmMpbTfA7+V/ouhf2ZfQQGjrLP4svt04n4KghYx5D9UP1tfBjoPwOdVcFR1gaY2BqOHP5z25WsLfQaOKC9+tRISZPDUXtNoQhOWYfFxSeFvZ9iVj4pzQvzPi6U+LAtc9G+OuWVUiFTF8iUOtyFvfCPVtJcUim9oVJLv0Llvm/PtltF3xp4GfUPxPXMzv3d82jka19zPQ1+d0pGMAg+kllO/nXNnUTvAfdAJw3dXpZteYYLB3mJAdLQh5xPf/ir7at37rrHK5+9D++whDugOHP/uqfnFGsCmTW9bCGzw== 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=ERwZpho+70YKhg0WJbNSfFFjVXOar2H+OyWw3Jwybsc=; b=NPrVc3fHojXbPx+K/D6Q1+g0BO0kcDSoZl/UUyHOQmgQUYsA0tQcWea8H1wOMcTZPqqEAJAdUV+KvkRCw4DVCrUNA8cW3ZrE+XHJcI1g2W7E/s0keSb3xxTpdvREEMhG7Cbk2IUVDO2lwobY/yndfAmc17/41Co6h0nkHnY4GHGz/LgqdxDGAmVPJN/w6zzote03JIAtqftXnpfygUCmAH6LX2v/v7gMM/dKAZU8Bptz3bXuLrQyXNhRDmhoYMq+8zdDtj9IIbN5dp5bzVOi8Cj1HwexHpFsLcaLrt1DNge4ieF4A9IT8TNCEz7o9kuNmhGLr4NjIeEx6ePNGSZogw== 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=ERwZpho+70YKhg0WJbNSfFFjVXOar2H+OyWw3Jwybsc=; b=bYyOD6PzFF17reGRGM2uXjr8JmvF/9uqxKmgNaHtRoTH3orEM10JQ7MlHxaa+rw4aFIKDQa70+pb9OqKrXrQZlz/KydSxL3BeAyBrKrQjRv6oB6likzzwYhe9iTFJK5MfeDlRfo3xoxcCk0Rs38ielUtd6xO5hqsVCKMuVILgYVXW+L7yED5Mb5M6KmEpoDBLXGh6hcQltBJUy5KIXyzcJ/z9cVvsxU6WXnF8A8ua9Un7vJiryiEalReRNJ0WqFOyIzJBrAh0VWE6yWVr3BZlWptRBvg6IN0i1aiYN+3kZn0qEjz8FjxmCeymIwuEurri8Yz2BPI+TpuCb9BRvVDhw== Received: from IA1PR12MB8078.namprd12.prod.outlook.com (2603:10b6:208:3f1::14) by LV2PR12MB5798.namprd12.prod.outlook.com (2603:10b6:408:17a::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.41; Wed, 28 Feb 2024 17:47:14 +0000 Received: from IA1PR12MB8078.namprd12.prod.outlook.com ([fe80::2c0:b7e:4acc:af90]) by IA1PR12MB8078.namprd12.prod.outlook.com ([fe80::2c0:b7e:4acc:af90%7]) with mapi id 15.20.7316.035; Wed, 28 Feb 2024 17:47:13 +0000 From: Slava Ovsiienko To: Haifei Luo , Ori Kam , Matan Azrad , Shahaf Shuler , Dariusz Sosnowski , Suanming Mou CC: "dev@dpdk.org" , "NBU-Contact-Thomas Monjalon (EXTERNAL)" , Wisam Jaddo , Raslan Darawsheh , Roni Bar Yanai Subject: RE: [PATCH] net/mlx5: link status change for bonding cases Thread-Topic: [PATCH] net/mlx5: link status change for bonding cases Thread-Index: AQHaaKvr0cj1z/6a+Eah5lxr3s4VY7EgCuNA Date: Wed, 28 Feb 2024 17:47:13 +0000 Message-ID: References: <20240226120341.175710-1-haifeil@nvidia.com> In-Reply-To: <20240226120341.175710-1-haifeil@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-traffictypediagnostic: IA1PR12MB8078:EE_|LV2PR12MB5798:EE_ x-ms-office365-filtering-correlation-id: f82f4bdb-5f06-4008-40b9-08dc38854c07 x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: IeQTOSSi3cFSmR/f9tvUt8g5FI4eqLqvuLwJA6Wjpd2ml3Zs0mV9xs7LLPONH9vM6TA0gR/2na9uai1YQE4auSKiffMQxHy8NAquseUzP3AYf5ncik4iwKzLDljGz9/FVJ6SJCuUrh633hnYo6dGDr+hoTJX/0p17szEwX15zw3LurmaBbThsmnGtpkFVgGQRVrkvfpS+vBIH2rchdDz+FZT/Lyz6+WZmOEIyRI7sLB9OPVxGSw4TAj2XvqgQ5Ise3oNphACkFtnAGd4StFD15L0nAKYB1EKH6Mjjw7W2NURvNf90K0gR3r0PC4vNi/9gTd1RuoCQePzt1Mt80QColfKLVLlVYnda9moUgabU3vGtcaudrslpce+v9w7oAWlpFnm4B+epy0UEtg768B7aE6g9aBxlWxbGz9B650v1apwVPqmqv/BICnj/GMET6Uf+hsI1qWSXAYFj7qVF6DMxuoSUQr25VAQMmaaQ1QAG4wpgtk/Gr+7qB/t3IKehqdSNgslV7N03VvIvxslXHoEBpulWg0Ls+FHPYQqt3PsDMcAO3dwg3E2aZpwJ+gmBici18S8UepNTD7M/2gsKg913edwXKOHgmKSZxqpUoYcnj/NL4ZepEoxh+4foRn/kUBggdM7YcePCbQmw5EDyMa+OLpR2YcJXIgSkp0WYlPkYu8rIooMZpJxrAwXG4CLhVgKIjxjETMsjsRIwIMya7y6AdmGsB0d84SQt/IafTiIYck= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:IA1PR12MB8078.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(230273577357003)(38070700009); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?HbT+3zUQdc9TOdvx9FGPOuuoeJA7vzw4k+mQFdZWTx2l9lD6kn9+ZjhU2WMy?= =?us-ascii?Q?t6KM8YwQRZNddrM3VfkcmMVIojJF5tFkPLrcJLseJIgz9T6bMVmikqCgFkiv?= =?us-ascii?Q?vA9/2P7Lf+m3AXTQwTjJ5iZnP8ymTOsewPrwMuNSmXlayf9vkqmL6XrnJ6vX?= =?us-ascii?Q?YgPqW/VRZfdpIrnzdg0Kc83XAkWD9giixkM2HVzPuUyvmRUXsgAEcCWunylt?= =?us-ascii?Q?SICZDJn4mvKbeueU24tbvn7vw2k6vNPG6ZbuWu2xVqlLBsxXfbKhBlSwhdmH?= =?us-ascii?Q?j3gzKTDdsSFyHM+ng9NTE0oFSLv4nrjVEgDbn9/bEKl3irIDzKDinXmFpzEx?= =?us-ascii?Q?wd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Zgzh/MBJ?= =?us-ascii?Q?VASpEseZdHj58LajYpT3dowkDynd2TD/4MXdjShcXxSBh5blm640FdBxSn6g?= =?us-ascii?Q?9Eej8RARZvyK/I1JMPIX/xIlhVqEvnYlVMj/rYioCkNeYiNtUysb3YhsQAsB?= =?us-ascii?Q?oRf00+aObVQIKk31NRZeF5C1lJHlp04oYTuS9jGcGO6bvmTt51riXu4fPKkK?= =?us-ascii?Q?rnCvZbPIcItFE6HmiTjRAdvQlGvBTRqxdvsAsSD0kK20Ed9TsvAKN8w67pC+?= =?us-ascii?Q?dn2NzGXDzbFUqm860dZ7ntlg1/rIhF4cOeURxhqvtqDJGDewyBq9mvG2Ym4s?= =?us-ascii?Q?L1DBCsMgB1f4NN512HXftLnO3xaE+VxGHY1Yh+jA?= 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: IA1PR12MB8078.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f82f4bdb-5f06-4008-40b9-08dc38854c07 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Feb 2024 17:47:13.6596 (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: rTxilZGn66zz4Tc0HWUQ7iVnQAOnV4QzNX5dDKjegoO7WrM2/9otA2zTg1Mwro8+h8wJuDBlzcuzFxE6924gJQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR12MB5798 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 > -----Original Message----- > From: Haifei Luo > Sent: Monday, February 26, 2024 2:04 PM > To: Ori Kam ; Slava Ovsiienko ; > Matan Azrad ; Shahaf Shuler ; > Dariusz Sosnowski ; Suanming Mou > > Cc: dev@dpdk.org; NBU-Contact-Thomas Monjalon (EXTERNAL) > ; Wisam Jaddo ; Raslan > Darawsheh ; Roni Bar Yanai > Subject: [PATCH] net/mlx5: link status change for bonding cases >=20 > The current implementation of mlx5_dev_interrupt_nl_cb routine first > compares if event netlink if_index belongs to the same device. > This is not fully correct for the bonding device since the bonding master= and > slave interface netlink events indicate the bonding link status change as= well. > Add check for if_index is related to the bonding's master/slave. >=20 > The following step is that it compares the device link status before and = after the > netlink event handling. There are also the bonding specifics and it shoul= d > compare the link status of the bonding master to detect the actual status > change. >=20 > Signed-off-by: Haifei Luo Acked-by: Viacheslav Ovsiienko