Skip to content

Commit 8405d66

Browse files
pmachatakuba-moo
authored andcommitted
mlxsw: cmd: Add cmd_mbox.query_fw.cff_support
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. cff_support determines whether CONFIG_PROFILE.flood_mode can be set to CFF. 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/af727d0e1095e30fa45c7e60404637cdc491aeec.1700503643.git.petrm@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent dd891b5 commit 8405d66

File tree

1 file changed

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

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,12 @@ MLXSW_ITEM32(cmd_mbox, query_fw, fw_day, 0x14, 0, 8);
282282
*/
283283
MLXSW_ITEM32(cmd_mbox, query_fw, lag_mode_support, 0x18, 1, 1);
284284

285+
/* cmd_mbox_query_fw_cff_support
286+
* 0: CONFIG_PROFILE.flood_mode = 5 (CFF) is not supported by FW
287+
* 1: CONFIG_PROFILE.flood_mode = 5 (CFF) is supported by FW
288+
*/
289+
MLXSW_ITEM32(cmd_mbox, query_fw, cff_support, 0x18, 2, 1);
290+
285291
/* cmd_mbox_query_fw_clr_int_base_offset
286292
* Clear Interrupt register's offset from clr_int_bar register
287293
* in PCI address space.

0 commit comments

Comments
 (0)