Skip to content

Commit 50ee677

Browse files
pmachatakuba-moo
authored andcommitted
mlxsw: cmd: Add MLXSW_CMD_MBOX_CONFIG_PROFILE_FLOOD_MODE_CFF
PGT, a port-group table is an in-HW block of specialized memory that holds sets of ports. Allocated within the PGT are series of flood tables that describe to which ports traffic of various types (unknown UC, BC, MC) should be flooded from which FID. The hitherto-used layout of these flood tables is being replaced with a more flexible scheme, called compressed FID flooding (CFF). CFF can be configured through CONFIG_PROFILE.flood_mode. In this patch, add MLXSW_CMD_MBOX_CONFIG_PROFILE_FLOOD_MODE_CFF, the value to use to enable the CFF mode. 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/fc2e063742856492f8f22b0b87abf431ea6d53d0.1700503643.git.petrm@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 8405d66 commit 50ee677

File tree

1 file changed

+5
-0
lines changed
  • drivers/net/ethernet/mellanox/mlxsw

1 file changed

+5
-0
lines changed

drivers/net/ethernet/mellanox/mlxsw/cmd.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,11 @@ enum mlxsw_cmd_mbox_config_profile_flood_mode {
785785
* used.
786786
*/
787787
MLXSW_CMD_MBOX_CONFIG_PROFILE_FLOOD_MODE_CONTROLLED = 4,
788+
/* CFF - Compressed FID Flood (CFF) mode.
789+
* Reserved when legacy bridge model is used.
790+
* Supported only by Spectrum-2+.
791+
*/
792+
MLXSW_CMD_MBOX_CONFIG_PROFILE_FLOOD_MODE_CFF = 5,
788793
};
789794

790795
/* cmd_mbox_config_profile_flood_mode

0 commit comments

Comments
 (0)