]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-switch, Consider maximum vf vports for steering init
authorParav Pandit <parav@mellanox.com>
Mon, 20 Jul 2020 11:02:15 +0000 (14:02 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 28 Jul 2020 09:37:31 +0000 (02:37 -0700)
commit89c9f02c5a5ffacb6c5de95d086a220b54e32266
tree7741a2faf05e70310f9652375ad4d8e31905e0db
parent9b11ae5f3ff8ed73bf3f4a2781485c0e73eecafa
net/mlx5: E-switch, Consider maximum vf vports for steering init

When eswitch is enabled, VFs might not be enabled. Hence, consider
maximum number of VFs.
This further closes the gap between handling VF vports between ECPF and
PF.

Fixes: 3f8f15604d16 ("net/mlx5: E-switch, Reduce dependency on num_vfs during mode set")
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Bodong Wang <bodong@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c