net/mlx5: E-switch, Set per vport table default group number
authorChris Mi <cmi@nvidia.com>
Fri, 9 Oct 2020 03:06:33 +0000 (11:06 +0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 7 Apr 2021 04:36:02 +0000 (21:36 -0700)
commitc1904360dde8fb4f79bec4751c7540df10d57ec2
treea82d6d61e9857c9a353316acf5b7cdc5115ab9bb
parentc796bb7cd2307d5fb815e919b964bf2d65c95ec3
net/mlx5: E-switch, Set per vport table default group number

Different per voprt table is created using a different per vport table
namespace. Because we can't use variable to set the namespace member
value.  If max group number is 0 in the namespace, use the eswitch
default max group number.

Signed-off-by: Chris Mi <cmi@nvidia.com>
Reviewed-by: Oz Shlomo <ozsh@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/esw/vporttbl.c