diff options
author | Danit Goldberg <danitg@mellanox.com> | 2019-11-06 15:18:12 +0200 |
---|---|---|
committer | Leon Romanovsky <leonro@mellanox.com> | 2019-11-22 18:17:24 +0200 |
commit | 9c0015ef092879f61129cdffbbe22fd30201d39b (patch) | |
tree | b17ae95ad5e4e097c45a37c3a087d2a081fc5045 /drivers/infiniband/hw/mlx5/mlx5_ib.h | |
parent | 2446887ed226786fcf9b3ece8d89e6b22551411b (diff) | |
download | linux-9c0015ef092879f61129cdffbbe22fd30201d39b.tar.bz2 |
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/mlx5_ib.h')
-rw-r--r-- | drivers/infiniband/hw/mlx5/mlx5_ib.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx5/mlx5_ib.h b/drivers/infiniband/hw/mlx5/mlx5_ib.h index 2ceaef3ea3fb..96811f6ca15a 100644 --- a/drivers/infiniband/hw/mlx5/mlx5_ib.h +++ b/drivers/infiniband/hw/mlx5/mlx5_ib.h @@ -1301,6 +1301,9 @@ int mlx5_ib_set_vf_link_state(struct ib_device *device, int vf, u8 port, int state); int mlx5_ib_get_vf_stats(struct ib_device *device, int vf, u8 port, struct ifla_vf_stats *stats); +int mlx5_ib_get_vf_guid(struct ib_device *device, int vf, u8 port, + struct ifla_vf_guid *node_guid, + struct ifla_vf_guid *port_guid); int mlx5_ib_set_vf_guid(struct ib_device *device, int vf, u8 port, u64 guid, int type); |