]> www.infradead.org Git - users/dwmw2/linux.git/commit
mlxsw: spectrum_acl_flex_keys: Use correct key block on Spectrum-4
authorIdo Schimmel <idosch@nvidia.com>
Tue, 3 Dec 2024 15:16:05 +0000 (16:16 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 Dec 2024 03:18:35 +0000 (19:18 -0800)
commit217bbf156f93ada86b91617489e7ba8a0904233c
treea4d70d923e5a6e004afab8bce15c0dd7543c5885
parent910c4788d6155b2202ec88273376cd7ecdc24f0a
mlxsw: spectrum_acl_flex_keys: Use correct key block on Spectrum-4

The driver is currently using an ACL key block that is not supported by
Spectrum-4. This works because the driver is only using a single field
from this key block which is located in the same offset in the
equivalent Spectrum-4 key block.

The issue was discovered when the firmware started rejecting the use of
the unsupported key block. The change has been reverted to avoid
breaking users that only update their firmware.

Nonetheless, fix the issue by using the correct key block.

Fixes: 07ff135958dd ("mlxsw: Introduce flex key elements for Spectrum-4")
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Link: https://patch.msgid.link/35e72c97bdd3bc414fb8e4d747e5fb5d26c29658.1733237440.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_flex_keys.c