]> 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)
commit0aa61be32a32849a7d0e8017fe4cec5930762273
treebbcb16973f641a226441304a65cd33fedbd0a7a1
parent120297924447cfec4b4d3a5f692c0cf969d8fe85
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