diff options
author | Danit Goldberg <danitg@mellanox.com> | 2019-11-06 14:18:12 +0100 |
---|---|---|
committer | Leon Romanovsky <leonro@mellanox.com> | 2019-11-22 17:17:24 +0100 |
commit | 9c0015ef092879f61129cdffbbe22fd30201d39b (patch) | |
tree | b17ae95ad5e4e097c45a37c3a087d2a081fc5045 /drivers/infiniband/hw/mlx5/main.c | |
parent | IB/ipoib: Add ndo operation for getting VFs GUID attributes (diff) | |
download | linux-9c0015ef092879f61129cdffbbe22fd30201d39b.tar.xz linux-9c0015ef092879f61129cdffbbe22fd30201d39b.zip |
IB/mlx5: Implement callbacks for getting VFs GUID attributes
Implement the IB defined callback mlx5_ib_get_vf_guid used to query FW
for VFs attributes and return node and port GUIDs.
Signed-off-by: Danit Goldberg <danitg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/main.c')
-rw-r--r-- | drivers/infiniband/hw/mlx5/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index 46ea4f0b9b51..b0d7e2d2991e 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@ -6310,6 +6310,7 @@ static const struct ib_device_ops mlx5_ib_dev_ipoib_enhanced_ops = { static const struct ib_device_ops mlx5_ib_dev_sriov_ops = { .get_vf_config = mlx5_ib_get_vf_config, + .get_vf_guid = mlx5_ib_get_vf_guid, .get_vf_stats = mlx5_ib_get_vf_stats, .set_vf_guid = mlx5_ib_set_vf_guid, .set_vf_link_state = mlx5_ib_set_vf_link_state, |