net/mlx5: Bridge, refactor groups sizes and indices
authorVlad Buslov <vladbu@nvidia.com>
Thu, 26 May 2022 16:42:04 +0000 (19:42 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 13 Jul 2022 22:56:46 +0000 (15:56 -0700)
commit55d3654c165869926567f2acb15aa6813a88c6dc
treebbcb16973f641a226441304a65cd33fedbd0a7a1
parente723f8662de7dd1750c876ee94da4900ab0d0277
net/mlx5: Bridge, refactor groups sizes and indices

Following patches in the series introduce additional flow groups for QinQ
support. With increased number of groups it becomes cumbersome to calculate
groups sizes as fractions of the table size. Instead, manually define sizes
of specific group types and ensure that totals are still correct by static
assertions. Having specific table size is important for firmware resource
management.

This commit doesn't change functionality.

Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/esw/bridge.c