]> www.infradead.org Git - users/dwmw2/linux.git/commit
net/mlx5e: Fix traffic duplication in ethtool steering
authorSaeed Mahameed <saeedm@mellanox.com>
Wed, 11 Sep 2019 14:50:13 +0000 (07:50 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2019 11:13:20 +0000 (13:13 +0200)
commit5f39dd75e0786da8f07f9d160d996a5a3a567e19
treead978a735276cb1f700cc11d84cd231b0915968c
parent6386577b29277cf40a8589ca8182916513eb7459
net/mlx5e: Fix traffic duplication in ethtool steering

[ Upstream commit d22fcc806b84b9818de08b32e494f3c05dd236c7 ]

Before this patch, when adding multiple ethtool steering rules with
identical classification, the driver used to append the new destination
to the already existing hw rule, which caused the hw to forward the
traffic to all destinations (rx queues).

Here we avoid this by setting the "no append" mlx5 fs core flag when
adding a new ethtool rule.

Fixes: 6dc6071cfcde ("net/mlx5e: Add ethtool flow steering support")
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c