Skip to content

Commit 3303f7e

Browse files
committed
net/mlx5: Fill out devlink dev info only for PFs
jira LE-3497 Rebuild_History Non-Buildable kernel-5.14.0-570.24.1.el9_6 commit-author Jiri Pirko <[email protected]> commit d749d90 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: 8338d93 ("net/mlx5: Added devlink info callback") Signed-off-by: Jiri Pirko <[email protected]> Reviewed-by: Kalesh AP <[email protected]> Signed-off-by: Tariq Toukan <[email protected]> Reviewed-by: Parav Pandit <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]> (cherry picked from commit d749d90) Signed-off-by: Jonathan Maple <[email protected]>
1 parent 28b7ba0 commit 3303f7e

File tree

1 file changed

+3
-0
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+3
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/devlink.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ mlx5_devlink_info_get(struct devlink *devlink, struct devlink_info_req *req,
4646
u32 running_fw, stored_fw;
4747
int err;
4848

49+
if (!mlx5_core_is_pf(dev))
50+
return 0;
51+
4952
err = devlink_info_version_fixed_put(req, "fw.psid", dev->board_id);
5053
if (err)
5154
return err;

0 commit comments

Comments
 (0)