diff options
author | Bodong Wang | 2019-06-11 01:38:19 +0200 |
---|---|---|
committer | Saeed Mahameed | 2019-06-13 19:59:48 +0200 |
commit | 86eec50beaf3a45f6432d491072fa5c54284dbca (patch) | |
tree | a4d9df04a29b68c20056306b1b404eb670382ce4 /include/linux/mlx5/mlx5_ifc.h | |
parent | net/mlx5: E-Switch, Return raw output for query esw functions (diff) | |
download | kernel-qcow2-linux-86eec50beaf3a45f6432d491072fa5c54284dbca.tar.gz kernel-qcow2-linux-86eec50beaf3a45f6432d491072fa5c54284dbca.tar.xz kernel-qcow2-linux-86eec50beaf3a45f6432d491072fa5c54284dbca.zip |
net/mlx5: Support querying max VFs from device
For ECPF with eswitch manager privilege, query the host max VF count
by querying the device using query_functions command.
With this enhancement:
1. flow steering entries are created only for valid vports based on
the max VF count of the PF.
2. Driver only queries cap of valid vport.
Eswitch requires the max VFs when doing initialization, so do sr-iov
init before eswitch init.
Signed-off-by: Bodong Wang <bodong@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include/linux/mlx5/mlx5_ifc.h')
-rw-r--r-- | include/linux/mlx5/mlx5_ifc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mlx5/mlx5_ifc.h b/include/linux/mlx5/mlx5_ifc.h index 6513b985c5e9..e3c154b573a2 100644 --- a/include/linux/mlx5/mlx5_ifc.h +++ b/include/linux/mlx5/mlx5_ifc.h @@ -9711,7 +9711,7 @@ struct mlx5_ifc_host_params_context_bits { u8 reserved_at_8[0x8]; u8 host_num_of_vfs[0x10]; - u8 reserved_at_20[0x10]; + u8 host_total_vfs[0x10]; u8 host_pci_bus[0x10]; u8 reserved_at_40[0x10]; |