]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitad534ddd621290edd21d65f7e65a592876f4eec3
treebbcb16973f641a226441304a65cd33fedbd0a7a1
parentfea20a67a015e3085b7f9730b5083ad28da8a9c0
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