net/mlx5e: Protect hairpin entry flows list with spinlock
authorVlad Buslov <vladbu@mellanox.com>
Thu, 7 Jun 2018 20:01:40 +0000 (23:01 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 9 Aug 2019 21:54:08 +0000 (14:54 -0700)
commit73edca736e581a685c98d3928b4cc029932d2d5a
treee904f7aeff866d3ec7056489947d03c6e2b6997e
parente4f9abbd38e468c73710ad3678005ad05f79c818
net/mlx5e: Protect hairpin entry flows list with spinlock

To remove dependency on rtnl lock, extend hairpin entry with spinlock and
use it to protect list of flows attached to hairpin 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