]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit135f5559660926212ac3a0a40430080b757ae6bd
treea5d5665a8234c9123752f3a263597cbe2f10ccc5
parent132991305e257a60bbf0d864af89280ca95864e3
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