mlxsw: spectrum_acl: Split chunk struct into chunk and vchunk
authorJiri Pirko <jiri@mellanox.com>
Thu, 7 Feb 2019 11:22:49 +0000 (11:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Feb 2019 23:02:49 +0000 (15:02 -0800)
commitb2d6b4d2beee81e1c30501954dc4ba198bb996c4
treea5d5665a8234c9123752f3a263597cbe2f10ccc5
parent0f54236da0c2b6664c4d08407fe8c2b7ad17d955
mlxsw: spectrum_acl: Split chunk struct into chunk and vchunk

Do the split of chunk struct so the new chunk struct is related to the
actual HW chunk (differs between Spectrum and Spectrum-2),
whereas vchunk struct is a SW abstraction of that. This split
prepares possibility for vchunk to hold 2 HW chunks 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