net/mlx5: Implement sriov_get_vf_total_msix/count() callbacks
authorLeon Romanovsky <leonro@nvidia.com>
Sun, 14 Mar 2021 12:42:56 +0000 (14:42 +0200)
committerLeon Romanovsky <leonro@nvidia.com>
Sun, 4 Apr 2021 07:30:38 +0000 (10:30 +0300)
commite71b75f73763d88665b3a19c5a4d52d559aa7732
tree4a59e52d0bc92ce4c90e334c16b94ef3836f7439
parent604774add516c6847745cb381d46907e229ab0bf
net/mlx5: Implement sriov_get_vf_total_msix/count() callbacks

The mlx5 implementation executes a firmware command on the PF to change
the configuration of the selected VF.

Link: https://lore.kernel.org/linux-pci/20210314124256.70253-5-leon@kernel.org
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/main.c
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
drivers/net/ethernet/mellanox/mlx5/core/sriov.c