OSDN Git Service

mlxsw: spectrum_acl: Introduce a mutex to guard region list updates
authorJiri Pirko <jiri@mellanox.com>
Sun, 24 Feb 2019 06:46:24 +0000 (06:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Feb 2019 04:25:28 +0000 (20:25 -0800)
commit5ec2ee28d27b9232d1cae08ec597b9f3464fd8be
treedb3772b2a6db036e746d1adbdde9caacad9696b2
parent2802aadfcff32a61d4afe78c07137dac63cd8d3c
mlxsw: spectrum_acl: Introduce a mutex to guard region list updates

In order to remove RTNL lock dependency, it is needed to protect
the regions list in a group. Introduce a mutex to do the job.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c