diff options
author | Vlad Buslov <vladbu@mellanox.com> | 2019-03-13 19:50:24 +0200 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2019-07-29 16:40:25 -0700 |
commit | ad86755b18d5edf1956f6d25c844f27289216877 (patch) | |
tree | 4d241e7ac4920899881468fe17443e303285f408 /drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c | |
parent | net/mlx5e: Protect tc flows hashtable with rcu (diff) | |
download | linux-dev-ad86755b18d5edf1956f6d25c844f27289216877.tar.xz linux-dev-ad86755b18d5edf1956f6d25c844f27289216877.zip |
net/mlx5e: Protect unready flows with dedicated lock
In order to remove dependency on rtnl lock for protecting unready_flows
list when reoffloading unready flows on workqueue, extend representor
uplink private structure with dedicated 'unready_flows_lock' mutex. Take
the lock in all users of unready_flows list before accessing it. Implement
helper functions to add and delete unready flow.
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c')
0 files changed, 0 insertions, 0 deletions