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 017CBA034F; Tue, 1 Mar 2022 21:48:17 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D965740696; Tue, 1 Mar 2022 21:48:17 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2064.outbound.protection.outlook.com [40.107.244.64]) by mails.dpdk.org (Postfix) with ESMTP id 3120440040 for ; Tue, 1 Mar 2022 21:48:16 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JjzBTvSPZ9cDwUL4zxu+5ywrCRFG3oKcDXqvXtTffOIhazilHuBm+ya3thV36VBeXWPvHe26JxueKW60gqQUMXa6gJZNTMSlXlYe3p57U61/RAOw+F7+XRHzfnSWvaQAQ4wqToSnRtP4RpecdasFkIktg2fZpiVn29LLm4nzoSOVpr456kvlAEjrRJivbGBZkV1PZ3zNynU34b5X28d7EA6CpgzC++ITqbK7g8DQJHgyv6z6zquVfLKh8ZtA9yzDN/W4wV4RcOFZ/+vOo6NDuP3lUUaTs+bIouqp9pn/xgKQ/9094fqMjUndkpN8g+DK8+8J+COiYi0sufbdL99ZmQ== 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=r/EkpFzCwMcMbvmsw7w0Hlqu34Q4HakME3lOMY4CqLY=; b=PVX8FrjHDVXWIWhcLm9SxSgPkaXoeBKrYtLGyu5iRZpTVhg9YTZ1RMbCEGPxLxHO6+ZKWpmMvGxs/FZsmYd37e2nzqNfmIBxu0u9nrNQ+RMXO9xrGoiJBvPOh3SEX7lRDCVf80gOmAMniJnrkdJihDjw6NSPjZF+wNJXLN9NFgEpWBjze8qclVfxUCKvzJbzoiVGbWtfRGrc1Xumvab873vSbrFh6qxWb/gKwCAUmhF9bhIohfhcWJWvx1f4g46Zz+UXrfsV2cmu2tSG5chs8/vLGuDT9ZYJ0lExKfdz8LrT18DbLjBxCuYxUE/6qf6CPOg0ItldDN9R/+0J48UvlA== 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=r/EkpFzCwMcMbvmsw7w0Hlqu34Q4HakME3lOMY4CqLY=; b=HRZytht3PFzSdZ02UlnJJB/dpFjUbYR8asoZS0N8RL5/ySBWQUDPeUsC3c/l4tlY4OBY7BGAEwSqiyi1xekTzvpiwlgbcBKVbApg6lM7uner7MAZW0ZKZyf7ThpJ0f0K1yrTo48Rp74w8xwZI3xSquuaiLuLWcfoTEdA8hlVw20WUR4BwZFEByCG1D9s9pSiJlwWa1DwxNjp8HpzWtNsroaevX8l5Ww8OubjflNUSPHGxXMWUWMTWv3kFzeYmvj8EJTOa48DPhRRTE5uUoEVlTvUyXjx3RbEMWmeprTg/SFuqi3ULT4dldz7HF1fGwFcaVJx+33JC++2iWfLsTK0og== Received: from BYAPR12MB3078.namprd12.prod.outlook.com (2603:10b6:a03:a8::31) by BN6PR1201MB0257.namprd12.prod.outlook.com (2603:10b6:405:4e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.22; Tue, 1 Mar 2022 20:48:14 +0000 Received: from BYAPR12MB3078.namprd12.prod.outlook.com ([fe80::e045:deb6:35a2:49fd]) by BYAPR12MB3078.namprd12.prod.outlook.com ([fe80::e045:deb6:35a2:49fd%6]) with mapi id 15.20.5017.027; Tue, 1 Mar 2022 20:48:14 +0000 From: Raslan Darawsheh To: Dmitry Kozlyuk , "dev@dpdk.org" Subject: RE: [PATCH v2 0/3] net/mlx5: fix link state detection Thread-Topic: [PATCH v2 0/3] net/mlx5: fix link state detection Thread-Index: AQHYLWYfMAcM85p9sUu3QfT9M/TmuqyrAHUw Date: Tue, 1 Mar 2022 20:48:12 +0000 Message-ID: References: <20220223164333.3834590-1-dkozlyuk@nvidia.com> <20220301121514.41497-1-dkozlyuk@nvidia.com> In-Reply-To: <20220301121514.41497-1-dkozlyuk@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: 43e0420d-71be-4678-1261-08d9fbc4ce2d x-ms-traffictypediagnostic: BN6PR1201MB0257: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: RdSQtDZzDQWBOlx6by3c4DnDyQvmeNUmZHlkisWgVQTGsOQdxdjBXzg0YW6dPwJqnHtqy3r9BbL7gxy0+lIDNdLtTDvMJ4MA3rjd7QStsHCiOkvgEZTBeT7iyIMvx+LUoWk/7l9hqX0/cqP5Y43N1DGECrk5bWZ9yYzh0Q78EfxsNZDHfnDqA2L1jpFcTs6kuDrXq8BmHPsuCTiRIK+IYnRrUy8GoHcPVA4Q5ykKfkQOFS8sQVcndyL7J8UGbOi7lmasUVtfkKB2VkW3K3/WV0cTRyAy6a3/7isvGcNKsADSaGPTPb/8bgO5kqo46fIFXGd2bZwkf/VbrYwXkkQdbn3Paw9oW3GzeEfEMHLkFz28Ep3va7vOHET7aUo4eQZW+q8wSW+wBQ9ZMhNSaRIhO2w88vV5uCupwdA4eCRUCokpZ03gcJMTUIcu11Z/zplzJXz8u4PrfCokzEAW43o0LYJtunWnhOu628+CDJvye5FfQsQeKnPhbRkPQcCv0vf2AqQEudSdn0qoH1WzQkntJC389GUeD51VAC85SpPkQNCSmauz4u/vFsjqJiWlg5/XCDu7m6VX2qg244QIDiFNQMl4O4duNjUNeL8bOmojT0T4wJxsBoAeA8nJ0NaYtTzyge4bU/xR1R7ovsOSZ5AnCRUkkAiHUT1I/N8JWyJIcYuv5RInNC8ZV3gnk/I3qaZr5WwzxBRq8JiAIdj0KV021g== 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)(110136005)(508600001)(33656002)(83380400001)(38070700005)(53546011)(66476007)(66446008)(64756008)(66556008)(26005)(76116006)(8676002)(86362001)(7696005)(6506007)(186003)(9686003)(71200400001)(55016003)(316002)(2906002)(122000001)(52536014)(5660300002)(8936002)(38100700002)(66946007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?7w70VxeSXWlVWVJsCX0h3GUMyAaLYWg8oOOA7R1GGXURCq5AksS6L4VuaONj?= =?us-ascii?Q?7QkmPfAz3uWHF/4TpSt8PCUxp2T3ld5iHomTDL2NbPR9lRQCvRRxerrOXjYN?= =?us-ascii?Q?J7YcYpvKGJcYbFiMynX6NwVx8FsoSO9cG2JWY4atKCpPHgLf5lDYrM/U2d9m?= =?us-ascii?Q?XTi40rRi73wYl6QyOW48Z/SJEMRVEA9DvtWyfyrZ2RQA5HsIvN2kuMmUVSdS?= =?us-ascii?Q?n7VRH/rLGpF8pzqLXELxS196xDI0YnY9qOp2icHJEVDDPgGp1+ueWwc8vUcN?= =?us-ascii?Q?iZsi/whzk+sZ0t2Ii8XfiSJ25tyOVsHmngcaL21jXhVGdTnYSE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oMt6Iud6cnMFQyi3Wg0tuD0ZqQhIc83/CUk5SCRMkBEF?= =?us-ascii?Q?64Vq5nkCU5R52SjJMF6Q3yvWevw9fh7wKOij4GuCcy5caWB36w65MchBku5A?= =?us-ascii?Q?mMFnCUJmvd9zfXiy0DCUV7Onk04dmIAR15/uacAtVQLdPsx6IJLppOyrQXSp?= =?us-ascii?Q?DN5exPr4ysaAMI1cpVUZOZpSHIDULhzDELBh73wAhL3aerP5h+2tYJFNzLGQ?= =?us-ascii?Q?UcJ3F/j676LdVjqUDWA5i36SYyKqrtoZtFA7VFOTTtG2+xBgMh8SoxGlzhU6?= =?us-ascii?Q?kttjQdwWz1xjnzNG9qNdBqhqJyrD2JzM0wuVkJ6gqIGxUYH4JlfeXer7zsbL?= =?us-ascii?Q?S7nGSp+csKxsX2hJKYz9u7G1D7VfQ1B03daQrQEOLhc859GVl4g5JWXjPz67?= =?us-ascii?Q?kcpBmEBCvO3D2PehTOraa10=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: 43e0420d-71be-4678-1261-08d9fbc4ce2d X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Mar 2022 20:48:13.0077 (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: 9wicL8ypPFQnatqT0S0IBBIHYYsUhNDnVz8HXU5mng9ROdmCr2fNa1pOVL0ENY2bGXki1l1JDtjU+tpsl5Fveg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1201MB0257 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: Dmitry Kozlyuk > Sent: Tuesday, March 1, 2022 2:15 PM > To: dev@dpdk.org > Subject: [PATCH v2 0/3] net/mlx5: fix link state detection >=20 > This patchset fixes two related issues: > * In rare occasions with any HW link state change to UP was missed. > * If a port was DOWN before startup, its netdev would come UP, > but appear DOWN in DPDK (especially probable with ConnectX-4). >=20 > v2: fix not detecting the link up when it was up before the app start. >=20 > Dmitry Kozlyuk (3): > common/mlx5: add Netlink event helpers > net/mlx5: fix link status change detection > net/mlx5: fix initial link status detection >=20 > drivers/common/mlx5/linux/mlx5_common_os.c | 2 +- > drivers/common/mlx5/linux/mlx5_nl.c | 102 ++++++++++++++++++++- > drivers/common/mlx5/linux/mlx5_nl.h | 8 +- > drivers/common/mlx5/version.map | 2 + > drivers/net/mlx5/linux/mlx5_ethdev_os.c | 63 ++++++++++--- > drivers/net/mlx5/linux/mlx5_os.c | 74 +++++++++++++-- > drivers/net/mlx5/linux/mlx5_vlan_os.c | 2 +- > drivers/net/mlx5/mlx5.c | 1 + > drivers/net/mlx5/mlx5.h | 3 + > drivers/net/mlx5/mlx5_trigger.c | 12 ++- > 10 files changed, 241 insertions(+), 28 deletions(-) >=20 > -- > 2.25.1 Series applied to next-net-mlx, Kindest regards, Raslan Darawsheh