]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: DR, Fix wrong allocation of modify hdr pattern
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Wed, 26 Jul 2023 11:38:03 +0000 (14:38 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 7 Aug 2023 18:48:39 +0000 (11:48 -0700)
commit8bfe1e19fb96d89fce14302e35cba0cd9f39d0a1
tree5fd086d2c9ddfa1a070b07914fce641a0a4fdade
parentac5da544a3c2047cbfd715acd9cec8380d7fe5c6
net/mlx5: DR, Fix wrong allocation of modify hdr pattern

Fixing wrong calculation of the modify hdr pattern size,
where the previously calculated number would not be enough
to accommodate the required number of actions.

Fixes: da5d0027d666 ("net/mlx5: DR, Add cache for modify header pattern")
Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: Erez Shitrit <erezsh@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ptrn.c