Skip to content

Commit

Permalink
net/mlx5/linux: fix firmware version
Browse files Browse the repository at this point in the history
[ upstream commit 520e3f4 ]

This patch fixes a bug where firmware version was not
copied from ibv_device_attr structure into mlx5_dev_attr
structure, resulting in inability to read firmware
version.

Fixes: e85f623 ("net/mlx5: remove attributes dependency on Verbs")

Signed-off-by: Kamil Vojanec <xvojan00@stud.fit.vutbr.cz>
Acked-by: Matan Azrad <matan@nvidia.com>
  • Loading branch information
DrGumby authored and steevenlee committed Jun 8, 2021
1 parent 106f008 commit 48af30a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/mlx5/linux/mlx5_os.c
Expand Up @@ -147,6 +147,8 @@ mlx5_os_get_dev_attr(void *ctx, struct mlx5_dev_attr *device_attr)
#ifdef HAVE_IBV_DEVICE_TUNNEL_SUPPORT
device_attr->tunnel_offloads_caps = dv_attr.tunnel_offloads_caps;
#endif
strlcpy(device_attr->fw_ver, attr_ex.orig_attr.fw_ver,
sizeof(device_attr->fw_ver));

return err;
}
Expand Down

0 comments on commit 48af30a

Please sign in to comment.