]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: DR, Allow insertion of duplicate rules
authorAlex Vesker <valex@mellanox.com>
Mon, 7 Oct 2019 13:13:25 +0000 (16:13 +0300)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 8 Oct 2019 23:14:50 +0000 (16:14 -0700)
commit5d136e5bf45fabede6c6683d30c99365b51375fb
treeb46eb3e65290f1d7801d3e48da04aa22562f0fe9
parentd34d738b7b0dfc0f6d4499932c934a97938c4f26
net/mlx5: DR, Allow insertion of duplicate rules

Duplicate rules were not allowed to be configured with SW steering.
This restriction caused failures with the replace rule logic done by
upper layers.

This fix allows for multiple rules with the same match values, in
such case the first inserted rules will match.

Fixes: 2b2e4f0606ad ("net/mlx5: DR, Expose steering rule functionality")
Signed-off-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_rule.c