netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] net/mlx5: Fill out devlink dev info only for PFs
@ 2025-03-03 13:32 Jiri Pirko
  2025-03-03 16:19 ` Kalesh Anakkur Purayil
  2025-03-05 18:55 ` Tariq Toukan
  0 siblings, 2 replies; 23+ messages in thread
From: Jiri Pirko @ 2025-03-03 13:32 UTC (permalink / raw)
  To: netdev; +Cc: davem, edumazet, kuba, pabeni, saeedm, leon, tariqt,
	andrew+netdev

From: Jiri Pirko <jiri@nvidia.com>

Firmware version query is supported on the PFs. Due to this
following kernel warning log is observed:

[  188.590344] mlx5_core 0000:08:00.2: mlx5_fw_version_query:816:(pid 1453): fw query isn't supported by the FW

Fix it by restricting the query and devlink info to the PF.

Fixes: 8338d9378895 ("net/mlx5: Added devlink info callback")
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
---
 drivers/net/ethernet/mellanox/mlx5/core/devlink.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/ethernet/mellanox/mlx5/core/devlink.c b/drivers/net/ethernet/mellanox/mlx5/core/devlink.c
index 98d4306929f3..a2cf3e79693d 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/devlink.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/devlink.c
@@ -46,6 +46,9 @@ mlx5_devlink_info_get(struct devlink *devlink, struct devlink_info_req *req,
 	u32 running_fw, stored_fw;
 	int err;
 
+	if (!mlx5_core_is_pf(dev))
+		return 0;
+
 	err = devlink_info_version_fixed_put(req, "fw.psid", dev->board_id);
 	if (err)
 		return err;
-- 
2.48.1


^ permalink raw reply related	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2025-03-10 12:17 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-03 13:32 [PATCH net] net/mlx5: Fill out devlink dev info only for PFs Jiri Pirko
2025-03-03 16:19 ` Kalesh Anakkur Purayil
2025-03-05 18:55 ` Tariq Toukan
2025-03-06  2:30   ` Jakub Kicinski
2025-03-06 12:47     ` Jiri Pirko
2025-03-06 18:32       ` Jakub Kicinski
2025-03-06 19:20     ` Tariq Toukan
2025-03-06 19:39       ` Jakub Kicinski
2025-03-06 20:12         ` Tariq Toukan
2025-03-06 20:34           ` Jakub Kicinski
2025-03-06 21:13             ` Tariq Toukan
2025-03-06 21:46               ` Jakub Kicinski
2025-03-06 22:26                 ` Saeed Mahameed
2025-03-06 22:32                 ` Gal Pressman
2025-03-06 19:43       ` Jakub Kicinski
2025-03-06 21:16         ` Tariq Toukan
2025-03-07 12:35         ` Jiri Pirko
2025-03-07 16:20           ` Jakub Kicinski
2025-03-10 12:16             ` Jiri Pirko
2025-03-09  7:50           ` Leon Romanovsky
2025-03-06 19:32     ` Saeed Mahameed
2025-03-06 19:45       ` Jakub Kicinski
2025-03-06 22:11         ` Saeed Mahameed

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).