OSDN Git Service

net/mlx5: DR, Add support for update FTE
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Thu, 8 Jul 2021 13:58:39 +0000 (16:58 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 26 Aug 2021 22:38:04 +0000 (15:38 -0700)
commita2ebfbb7b181774570224faee570f717ae11b6d8
treed7d8adf4e20771396b56ad9b773f986df7da1a25
parent8a015baef50a7b60c866a58ae2dc0406958061d9
net/mlx5: DR, Add support for update FTE

Add the support for update FTE, which is needed for cases where there are
multiple rules with the same match. In such case fs_core will merge the
actions and call update FTE to update current FTE. Since we don't want to
disrupt the traffic, we will add the new duplicate rule, and only then
remove the old duplicate rule.

Signed-off-by: Alex Vesker <valex@nvidia.com>
Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/fs_dr.c