]> 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)
commit8337e8be2394b29a8ed6a233efd6c3af38f572c5
treeb46eb3e65290f1d7801d3e48da04aa22562f0fe9
parentb5ebc36666fa536812273d4ac0f5e03a51772d37
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: e49297b3a5b0 ("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