]> git.proxmox.com Git - mirror_ubuntu-focal-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)
commit0041412694eca70387aee4076254fbed8222700a
treeb46eb3e65290f1d7801d3e48da04aa22562f0fe9
parent38dc3b5f56cfa560d21ccd7f44b86bc4ada6aef7
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: 41d07074154c ("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