mlxsw: spectrum_acl: Split region struct into region and vregion
authorJiri Pirko <jiri@mellanox.com>
Thu, 7 Feb 2019 11:22:48 +0000 (11:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Feb 2019 23:02:49 +0000 (15:02 -0800)
commit0f54236da0c2b6664c4d08407fe8c2b7ad17d955
tree842c925ae20979669f072388aaa88c6a821d11b3
parent204f6a8c413ec41a7ec5e3f0f0590d4318f7a1f2
mlxsw: spectrum_acl: Split region struct into region and vregion

Do the split of region struct so the new region struct is related to the
actual HW region, whereas vregion struct is a SW abstration of that.
This split prepares possibility for vregion to hold 2 HW regions which
is needed for region ERP rehash flow.

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