]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb9f839d14d176c4a959ef51169baeae9348e4b6a
tree19107d665c0b5e93e2f230694f755468422d1107
parent494c83d1f3807d9d9ffc2d4e91de1e00ff2a6331
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