OSDN Git Service

net/mlx5e: Protect tc flow table with mutex
authorVlad Buslov <vladbu@mellanox.com>
Mon, 17 Sep 2018 11:01:58 +0000 (14:01 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 29 Jul 2019 23:40:26 +0000 (16:40 -0700)
commitb6fac0b46a1a76024698d240f0f9aac552f897b7
tree9d3d08fcf8c7dc08fca15fabd7e1e098d500ecda
parentfa833bd52b7b58d8311bf6a0be29a32e62a1f289
net/mlx5e: Protect tc flow table with mutex

TC flow table is created when first flow is added, and destroyed when last
flow is removed. This assumes that all accesses to the table are externally
synchronized with rtnl lock. To remove dependency on rtnl lock, add new
mutex mlx5e_tc_table->t_lock and use it to protect the flow table.

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/fs.h
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c