]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix tc acts array not to be dependent on enum order
authorRoi Dayan <roid@nvidia.com>
Thu, 3 Nov 2022 06:55:44 +0000 (23:55 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 9 Nov 2022 18:30:43 +0000 (10:30 -0800)
commit08912ea799cd2a43b8999457e316967fe4e2f327
treee8c59a054f303a6a6e4ca2f15e90c715dfc151b8
parent8d4b475e9d0f100c3920d8bf7d392a6dac88583e
net/mlx5e: Fix tc acts array not to be dependent on enum order

The tc acts array should not be dependent on kernel internal
flow action id enum. Fix the array initialization.

Fixes: fad547906980 ("net/mlx5e: Add tc action infrastructure")
Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/act.c