net/mlx5e: Protect mod header entry flows list with spinlock
authorVlad Buslov <vladbu@mellanox.com>
Fri, 8 Jun 2018 19:10:09 +0000 (22:10 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 9 Aug 2019 21:54:09 +0000 (14:54 -0700)
commit83a52f0d525587de65b2bc979a12b4dfad9ea82a
tree8d0ce693728c44379a16f42a152dd219dea25742
parentdd58edc328cec1a0d837f3f2f41e9955ec623e3e
net/mlx5e: Protect mod header entry flows list with spinlock

To remove dependency on rtnl lock, extend mod header entry with spinlock
and use it to protect list of flows attached to mod header entry from
concurrent modifications.

Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Reviewed-by: Jianbo Liu <jianbol@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c