]> git.baikalelectronics.ru Git - kernel.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)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 24 Sep 2019 09:38:08 +0000 (12:38 +0300)
commit1efc5d4f85a8fe91c65b401ac985ee839baa292d
treed62931feba61c5b89197d43db01b90cd2432fa21
parent063f8dc263ca08f7c07570b35694c2150a409aae
net/mlx5e: Fix traffic duplication in ethtool steering

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: 17ff660d90a2 ("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>
drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c