net/mlx5: E-Switch, Consider SF ports of host PF
authorParav Pandit <parav@nvidia.com>
Tue, 2 Mar 2021 12:20:21 +0000 (14:20 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Sat, 24 Apr 2021 07:58:48 +0000 (00:58 -0700)
commit87bd418ea7515d904a3dc69de2479396f5cbd7a4
tree53b8691100ebf8b77511dd2210357345c7bb323f
parent47dd7e609f6957437b721af4d027737b63b217b8
net/mlx5: E-Switch, Consider SF ports of host PF

Query SF vports count and base id of host PF from the firmware.

Account these ports in the total port calculation whenever it is non
zero.

Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Vu Pham <vuhuong@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h