diff options
author | Ido Schimmel <idosch@mellanox.com> | 2018-07-18 11:14:41 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-19 02:13:14 +0900 |
commit | a6d70a878ed862470e8c0f96f3f3cf41a47077af (patch) | |
tree | 8874f37120ba0958db2af1dd7e019cd9c468ae09 /drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.h | |
parent | 7050f439ef6a04daf16f20f8fe5d2d5a4d141992 (diff) | |
download | linux-stable-a6d70a878ed862470e8c0f96f3f3cf41a47077af.tar.gz linux-stable-a6d70a878ed862470e8c0f96f3f3cf41a47077af.tar.bz2 linux-stable-a6d70a878ed862470e8c0f96f3f3cf41a47077af.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.h b/drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.h index 441636cd13d8..2ffde915349b 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.h +++ b/drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.h @@ -219,8 +219,7 @@ struct mlxsw_afk; struct mlxsw_afk_ops { const struct mlxsw_afk_block *blocks; unsigned int blocks_count; - void (*encode_one)(const struct mlxsw_afk_element_inst *elinst, - int block_index, char *storage, char *output); + void (*encode_block)(char *block, int block_index, char *output); }; struct mlxsw_afk *mlxsw_afk_create(unsigned int max_blocks, |