]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_acl: Prepare for Spectrum-2 block encoding
authorIdo Schimmel <idosch@mellanox.com>
Wed, 18 Jul 2018 08:14:41 +0000 (11:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jul 2018 17:13:14 +0000 (02:13 +0900)
commitb33ce9d9f7ce21ec5099dbd515306ea877d2d6b8
tree8874f37120ba0958db2af1dd7e019cd9c468ae09
parentbe1ed70c10be4a628240e97a188585905ea6f3cd
mlxsw: spectrum_acl: Prepare for Spectrum-2 block encoding

In Spectrum the key (and mask) block layout is very straight forward and
every block is 16 bytes aligned.

However, in Spectrum-2 the blocks are not even byte aligned, which makes
it difficult to encode them using current method.

Instead, first encode each block and then encode the block in the
general blocks layout.

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/core_acl_flex_keys.c
drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_keys.c