net/mlx5e: Protect mod_hdr hash table with mutex
authorVlad Buslov <vladbu@mellanox.com>
Fri, 9 Aug 2019 10:20:48 +0000 (13:20 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 9 Aug 2019 21:54:09 +0000 (14:54 -0700)
commitd2faae25c3050a87c8ff965a7939e999e3154b62
tree19107d665c0b5e93e2f230694f755468422d1107
parent83a52f0d525587de65b2bc979a12b4dfad9ea82a
net/mlx5e: Protect mod_hdr hash table with mutex

To remove dependency on rtnl lock, protect mod_hdr hash table from
concurrent modifications with new mutex.

Implement helper function to get flow namespace to prevent code
duplication.

Signed-off-by: Vlad Buslov <vladbu@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
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
include/linux/mlx5/fs.h