kernel_samsung_a53x/drivers/net/ethernet/mellanox/mlxsw
Amit Cohen d7a7a9dfe9 mlxsw: spectrum_acl_bloom_filter: Make mlxsw_sp_acl_bf_key_encode() more flexible
[ Upstream commit 5d5c3ba9e4121b7738d10be3825f4d9a5a1d80ef ]

Spectrum-4 will calculate hash function for bloom filter differently from
the existing ASICs.

One of the changes is related to the way that the chunks will be build -
without padding.

As preparation for support of Spectrum-4 bloom filter, make
mlxsw_sp_acl_bf_key_encode() more flexible, so it will be able to use it
for Spectrum-4 as well.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 75d8d7a63065 ("mlxsw: spectrum_acl: Fix ACL scale regression and firmware errors")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:20:07 +01:00
..
cmd.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core.c mlxsw: core: Unregister EMAD trap using FORWARD action 2024-11-19 11:32:36 +01:00
core.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core_acl_flex_actions.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core_acl_flex_actions.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core_acl_flex_keys.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core_acl_flex_keys.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core_env.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core_env.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core_hwmon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
emad.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i2c.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
i2c.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ib.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
item.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
minimal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci_hw.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
port.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
reg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
resources.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum1_acl_tcam.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum1_kvdl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum1_mr_tcam.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum2_acl_tcam.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum2_kvdl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum2_mr_tcam.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_acl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_acl_atcam.c mlxsw: spectrum: Use 'bitmap_zalloc()' when applicable 2024-11-18 12:12:52 +01:00
spectrum_acl_bloom_filter.c mlxsw: spectrum_acl_bloom_filter: Make mlxsw_sp_acl_bf_key_encode() more flexible 2024-11-23 23:20:07 +01:00
spectrum_acl_ctcam.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_acl_erp.c mlxsw: spectrum_acl_erp: Fix object nesting warning 2024-11-23 23:20:07 +01:00
spectrum_acl_flex_actions.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_acl_flex_actions.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_acl_flex_keys.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_acl_tcam.c mlxsw: spectrum_acl_tcam: Fix memory leak when canceling rehash work 2024-11-19 11:32:37 +01:00
spectrum_acl_tcam.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_buffers.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_cnt.c mlxsw: spectrum: Use 'bitmap_zalloc()' when applicable 2024-11-18 12:12:52 +01:00
spectrum_cnt.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_dcb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_dpipe.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_dpipe.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_ethtool.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_fid.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_flow.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_flower.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_ipip.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_ipip.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_kvdl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_matchall.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_mr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_mr.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_mr_tcam.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_mr_tcam.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_nve.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_nve.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_nve_vxlan.c mlxsw: fix mlxsw_sp2_nve_vxlan_learning_set() return type 2024-11-08 11:25:45 +01:00
spectrum_policer.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_ptp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_ptp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_qdisc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_router.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_router.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_span.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_span.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_switchdev.c mlxsw: spectrum: Use 'bitmap_zalloc()' when applicable 2024-11-18 12:12:52 +01:00
spectrum_switchdev.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_trap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spectrum_trap.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
switchib.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
switchx2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trap.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
txheader.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00