mlxsw: spectrum_acl: Refactor vregion association code
authorJiri Pirko <jiri@mellanox.com>
Sun, 24 Feb 2019 06:46:25 +0000 (06:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Feb 2019 04:25:28 +0000 (20:25 -0800)
commit79604b6e17426d64435bc947532a89fa8b0cf6b4
treeeaf4ebbe13756820925bcedce949689f5fcae8cd
parent5ec2ee28d27b9232d1cae08ec597b9f3464fd8be
mlxsw: spectrum_acl: Refactor vregion association code

Refactor existing _vchunk_assoc/_vchunk_deassoc() functions into
_vregion_get()/_vregion_put() to make the code simpler and prepared for
vregion locking.

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