aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_keys.c
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2018-11-14 08:22:30 +0000
committerDavid S. Miller <davem@davemloft.net>2018-11-15 14:43:43 -0800
commitd07cd660603349df100e56ef98ee31ae7a5e1423 (patch)
tree0b9190244b8d4fa7e2cdb08f46ad8fd303516a14 /drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_keys.c
parentmlxsw: spectrum: acl_erp: Convert to use objagg for tracking ERPs (diff)
downloadlinux-dev-d07cd660603349df100e56ef98ee31ae7a5e1423.tar.xz
linux-dev-d07cd660603349df100e56ef98ee31ae7a5e1423.zip
mlxsw: spectrum: acl: Pass key pointer to master_mask_set/clear
The device requires that the master mask of each region will be composed from a logical OR between all the unmasked bits in the region. Currently, this is just a logical OR between all the eRPs used in the region, but the next patch is going to introduce delta bits support which need to be taken into account as well. Since the eRP does not include the delta bits, pass the key pointer to mlxsw_sp_acl_erp_master_mask_set/clear instead. Convert key->mask to the bitmap on fly. 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 '')
0 files changed, 0 insertions, 0 deletions