]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit05a8246dbe2053554a26ce1846890779518675dd
tree53b8691100ebf8b77511dd2210357345c7bb323f
parent492df91cf1424eb81dccca8d79f7504b5b2068eb
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