mlxsw: spectrum_acl: Split TCAM group structure into two
authorJiri Pirko <jiri@mellanox.com>
Sun, 24 Feb 2019 06:46:23 +0000 (06:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Feb 2019 04:25:28 +0000 (20:25 -0800)
commit2802aadfcff32a61d4afe78c07137dac63cd8d3c
treec220c1661733d29828ac220c2c5881f51e1ba455
parent7c3cb68f488ebee1ea5695cd26434df192ce2239
mlxsw: spectrum_acl: Split TCAM group structure into two

Make the existing group structure to contain fields needed for HW region
list manipulations. Move the rest of the fields into new vgroup struct.
This makes layering cleaner as the vgroup struct is on higher level than
low-level group struct. Also, this makes it possible to introduce
fine-grained 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
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.h