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 2E7BF46A65; Fri, 27 Jun 2025 01:16:50 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DA0334026D; Fri, 27 Jun 2025 01:16:49 +0200 (CEST) Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11020124.outbound.protection.outlook.com [52.101.69.124]) by mails.dpdk.org (Postfix) with ESMTP id 94464400D5 for ; Fri, 27 Jun 2025 01:16:48 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=re3TDYEmR3/pH36TSmhISHm/MgXMa6t/blMGVDFwUP0Fhlb3HIZQdY9Nm3EhwXoAzttaSVacTIlbSGmH9fhmtfgRg9IlFIi2pzXdHSAsk98fjpjNZzMhUblBbCCVUU3JADyYcF5oKROKIdnwZUp6dB5LIgBKu69wrvZKwax9B6rjd4v+noSGJ9Qumstfb/SZqdSbyxQzxHeEzf55HfvtVwpX06RZ3/LVip22m7rHBFtXjWX6kX0yfEEZvSq6s7PGwRbytiNqxN0+CQIgrPzo024WZ/a9nsq4xbtIpclox2j0DT1/MMXfySFFUHdAo+WSn4DusNnlk02Og0ptU2hzRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=0lnLwShQJf9EY6ttAa6Qub75jkMHRwVC6T3oEXKGzIc=; b=fx91voWVaR2APrKuhyf/HrTlH9DLIcYJuuXHn6kXy9H0AeclFyQDrCZhtpZOARNl5emlauH9T1D6OsYTaNufHfi7ftSmmOAGSQS38i/sgFNhVHS0NX5csillWacf/rLPlgtv823neR+G5UQvJvWzr64T7ibF037YdKIW8Nnv25g5GEgyBuyjhoSWqnMdU98zBb1JVVeEvwfIQ0pSUwBOgfS48zr1RZStSvzh7mdbF+lXWc2h1r2kw2Sx9SHCXS8KWjim7y05hj5Qg3nmIq5Fvcm7dtwCnbaiKun6SJofkOIkGcLPf3GRYl3IJoS3u5fS5uYtNQ7WAHU3kKR5hFedwg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cgstowernetworks.com; dmarc=pass action=none header.from=cgstowernetworks.com; dkim=pass header.d=cgstowernetworks.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cgstowernetworks.onmicrosoft.com; s=selector2-cgstowernetworks-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0lnLwShQJf9EY6ttAa6Qub75jkMHRwVC6T3oEXKGzIc=; b=PkkYTpm44MehCg2meYp3QxGmU9BmWrZZGPYc9bv3R0qZfqnaVjAwbjk4ETfIZHQyP/T40+CRouPqIC9Ex1En6NKD+2TPt57yHUkti1jVwAPESUrFVSh+kEF+2CeIz5h+/dNzJpIrLV67TnHUnTDDvVtg9IQY6Z8t4iB8h4I9auE= Received: from DU2PR09MB5486.eurprd09.prod.outlook.com (2603:10a6:10:27b::22) by DB3PR09MB6177.eurprd09.prod.outlook.com (2603:10a6:10:433::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8880.16; Thu, 26 Jun 2025 23:16:43 +0000 Received: from DU2PR09MB5486.eurprd09.prod.outlook.com ([fe80::a8b7:d0b7:ce2a:24fc]) by DU2PR09MB5486.eurprd09.prod.outlook.com ([fe80::a8b7:d0b7:ce2a:24fc%7]) with mapi id 15.20.8857.025; Thu, 26 Jun 2025 23:16:42 +0000 From: Yogev Chaimovich To: Dariusz Sosnowski CC: Maayan Kashani , Stephen Hemminger , Slava Ovsiienko , Bing Zhao , Ori Kam , Suanming Mou , Matan Azrad , "dev@dpdk.org" Subject: Re: [PATCH] net/mlx5: fix transceiver warning when not exist Thread-Topic: [PATCH] net/mlx5: fix transceiver warning when not exist Thread-Index: AQHbvbYIS6Ux7qfBtUOA8dJvuvvxhbPb9EsAgBbNOlCACEK3N4AanWaAgADCsz4= Date: Thu, 26 Jun 2025 23:16:42 +0000 Message-ID: References: <20250520114904.6570827f@hermes.local> <20250626113617.fekttwech4w75jqt@ds-vm-debian.local> In-Reply-To: <20250626113617.fekttwech4w75jqt@ds-vm-debian.local> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cgstowernetworks.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DU2PR09MB5486:EE_|DB3PR09MB6177:EE_ x-ms-office365-filtering-correlation-id: c14c7a70-5fdc-4018-9ae8-08ddb5078314 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|366016|1800799024|8096899003|38070700018|7053199007; x-microsoft-antispam-message-info: =?us-ascii?Q?gTsMJkAelbWBnDOMXwRmEy74VC7Y0NksOVRKQHS5kAoH0FV6Xq0AG9dteOQT?= =?us-ascii?Q?oJhCFWM8t+o/XKqO/1Ip/1BtiSY62PAd3SmNCb9/mtaNAhW8GhRGhZdUwqZo?= =?us-ascii?Q?cApClpxay9YJ34/huUQqz1EZtwzvCNsPyNyXAfRXCNWDX3D2Zg1wv/tAt+2I?= =?us-ascii?Q?JuuAc6qPWud4gy8Z0asX11vDUSvXnS8L9TkMcli8e4oPpFxbjEBlpot8O/Nq?= =?us-ascii?Q?dQOfqUEqbjFYn10nT2r+SykQLLggFeRbxcjFcs31y0C4CDxdEAJOn3hDk7qK?= =?us-ascii?Q?zAIBwH9ZnsFqTl86+E2Wh6FtNkd7G3CI9Hzu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?Q?0h3nHwKmr+nEPB1cIfMT0b23npa1PUkpRnWLfQVRAPC1FxRCo4EN8CfvLlFo?= =?us-ascii?Q?cHJsmOJb3w29LYd60XNgZHzgnzO0ZwZJgTUrUTXMhkVGJ0WhXY4FzZU+nea9?= =?us-ascii?Q?BEAJBCRGna0y7T+Prpl7zF9NXVfXr8HHAMLzotl5/XNorWfMYGXK5vK5J8Nh?= =?us-ascii?Q?wCVcmRg+6OOYs6rYcHomJM0BYtX4D5CAzTleQNGa+4tDOk/uSRAlhkeZsYyP?= =?us-ascii?Q?9LDR9w7C8Jo5OQc6vl8tDK3EEzscVv1jkxEFRC2tdbefM7/4y4v+Ng=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU2PR09MB5486.eurprd09.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(366016)(1800799024)(8096899003)(38070700018)(7053199007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?qZl0xNC8GpKDZwXDyZhSFfdhZHp8+DBtgNuWtz5K0ZsLFO41LmBeq6huOdXn?= =?us-ascii?Q?kXeyRhktUYQE3v/cuSyK9KH1fz45o/T/IFlkKOE5s6NGXQQAqEx8h72SYLEg?= =?us-ascii?Q?iVRjr0h1x3j5Pp9WVWuRKQZsmJwDMCmzU7bWkHGJ6W4apoJIS7e24UhtcKh+?= =?us-ascii?Q?NuG2B3Hqd9D1TH1nGRHY7g5ZRdM3VJGOwGQTFQQeJXRV06QWpmXHi6O3zP+d?= =?us-ascii?Q?XLxcn9/0tOOO/zXLz3atKIXvfHoRO70f0L4U7MSqFq96hKKiuq2ayNjPTraE?= =?us-ascii?Q?8S9DPgNa8kJj25Pc6wXfD42jZu/VwqH/nKWlVTgoZDt8slx6KZbE+T54LkqQ?= =?us-ascii?Q?1rH9X2iWxGvbWcLelp9Q8ZC6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1HIWDUiWVcpq2yS1h?= =?us-ascii?Q?bGr+tHfbnU4i9hSOhczaCQPwrFN21zQ6+glYmvbCmW3SusVvOW3sesgV9HnH?= =?us-ascii?Q?FZR7k4vE4d3GjEdi7sAMlROLe0+2VbobK6cghxF0tTB7vymJIxUfYR0bcfIn?= =?us-ascii?Q?aGdvL57soF/q3ois/nf3uRi7ILUSIS4ha/e0FlZ8/ZW4S9ghxOzWE7xV8Nxa?= =?us-ascii?Q?5nH1ybqSeWK8Ytq4ipd73N6kctw5f5saeQrCVdtbRE1fjk8hCkkVtWo+Lt5f?= =?us-ascii?Q?PpIn1lPqevCTLixTNgB5IHPZ1WJIcWaJGt8Yn5atH4KXd0/+0jlk3mBj/WCu?= =?us-ascii?Q?p84HXv5vRzR8cr2ArvA++SNfRVNjxu2kDMeI+7og?= Content-Type: multipart/alternative; boundary="_000_DU2PR09MB5486CBB7ADC2068692C28DA9D67AADU2PR09MB5486eurp_" MIME-Version: 1.0 X-OriginatorOrg: cgstowernetworks.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DU2PR09MB5486.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c14c7a70-5fdc-4018-9ae8-08ddb5078314 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jun 2025 23:16:42.4456 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: fc9e9498-07e8-4b82-b4cf-365bba23cbbf X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Czw4PNvY45AQ80OBQzfqbwFlDNP3VdeybEFpdqreX5i7t5Qo9KcOoArcb1daBMaF27+hTEFd+EY9UTB4UF9ZIh0eDFd6yarJhIYu1uk1T9I= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR09MB6177 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 --_000_DU2PR09MB5486CBB7ADC2068692C28DA9D67AADU2PR09MB5486eurp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable OK. I wished there was a DPDK function to verify if transceiver is plugged in = or not, without log errors. Such as rte_eth_dev_is_module_exist() So, 1'st I would have checked if it's plugged in. Then I would have used rt= e_eth_dev_get_module_info(). The workaround is setting the module's log level so the error won't be seen= before calling rte_eth_dev_get_module_info(), and set it back to default a= fterwards. Thanks, Yogev ________________________________ From: Dariusz Sosnowski Sent: Thursday, June 26, 2025 14:36 To: Yogev Chaimovich Cc: Maayan Kashani ; Stephen Hemminger ; Slava Ovsiienko ; Bing Zhao ; Ori Kam ; Suanming Mou = ; Matan Azrad ; dev@dpdk.org Subject: Re: [PATCH] net/mlx5: fix transceiver warning when not exist Hi Yogev, On Mon, Jun 09, 2025 at 01:11:27PM +0000, Yogev Chaimovich wrote: > Hi, > Actually looks like we're going with another workaround, so I might not b= e needing my original patch. Could you tell us what kind of workaround you applied? Also, I'm not sure if this warning should be suppressed on EIO. mlx5 PMD relies on the kernel driver to get the module info, and from what I've seen for ETHTOOL_GMODULEINFO kernel can return EIO also for cases other than transceiver not existing (for example error on NIC register access). So mlx5 PMD cannot discern between "no transceiver" and "other I/O error". For this reason I would keep the log and keep it at warn level. > Also, I do not understand how my patch (not printing a log) makes a test = fail - I couldn't find that test in DPDK to verify. I'm not that familiar t= hough.. > > Yogev *snip* Best regards, Dariusz Sosnowski --_000_DU2PR09MB5486CBB7ADC2068692C28DA9D67AADU2PR09MB5486eurp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
OK.
I wished  there was a DPDK function to verify if transceiver is plugge= d in or not, without log errors. Such as rte_eth_dev_is_module_exist()
So, 1'st I would have checked if it's plugged in. Then I would have us= ed rte_eth_dev_get_module_info().

The workaround is setting the module's log level so the error won't be seen= before calling rte_eth_dev_get_module_info(), and set it back to default a= fterwards.

Thanks,
Yogev

From: Dariusz Sosnowski <= ;dsosnowski@nvidia.com>
Sent: Thursday, June 26, 2025 14:36
To: Yogev Chaimovich <yogev@cgstowernetworks.com>
Cc: Maayan Kashani <mkashani@nvidia.com>; Stephen Hemminger &l= t;stephen@networkplumber.org>; Slava Ovsiienko <viacheslavo@nvidia.co= m>; Bing Zhao <bingz@nvidia.com>; Ori Kam <orika@nvidia.com>= ; Suanming Mou <suanmingm@nvidia.com>; Matan Azrad <matan@nvidia.c= om>; dev@dpdk.org <dev@dpdk.org>
Subject: Re: [PATCH] net/mlx5: fix transceiver warning when not exis= t
 
Hi Yogev,

On Mon, Jun 09, 2025 at 01:11:27PM +0000, Yogev Chaimovich wrote:
> Hi,
> Actually looks like we're going with another workaround, so I might no= t be needing my original patch.

Could you tell us what kind of workaround you applied?

Also, I'm not sure if this warning should be suppressed on EIO.
mlx5 PMD relies on the kernel driver to get the module info,
and from what I've seen for ETHTOOL_GMODULEINFO kernel can return EIO
also for cases other than transceiver not existing
(for example error on NIC register access).
So mlx5 PMD cannot discern between "no transceiver" and
"other I/O error".
For this reason I would keep the log and keep it at warn level.

> Also, I do not understand how my patch (not printing a log) makes a te= st fail - I couldn't find that test in DPDK to verify. I'm not that familia= r though..
>
> Yogev

*snip*

Best regards,
Dariusz Sosnowski
--_000_DU2PR09MB5486CBB7ADC2068692C28DA9D67AADU2PR09MB5486eurp_--