mlxsw: spectrum_fid: Add an op for packing SFMR
authorPetr Machata <petrm@nvidia.com>
Tue, 28 Nov 2023 15:50:42 +0000 (16:50 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 30 Nov 2023 04:03:24 +0000 (20:03 -0800)
commitf6454316c8b9b247403b7dadc1c5b6e6f5163f0c
treecbf710a07b7f76a60b8594cc97c260157fc7e3a4
parente917a789594cab0621b19ab33cae298f2bce2ea3
mlxsw: spectrum_fid: Add an op for packing SFMR

The way SFMR is packed differs between the controlled and CFF flood modes.
Add an op to dispatch it dynamically.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://lore.kernel.org/r/f12fe7879a7086ee86343ee4db02c859f78f0534.1701183892.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c