Commit eb26a592 authored by Petr Machata's avatar Petr Machata Committed by David S. Miller

mlxsw: cmd: Add CONFIG_PROFILE.{set_, }lag_mode

Add CONFIG_PROFILE.lag_mode, which serves for moving responsibility for
placement of the LAG table from FW to SW. Whether lag_mode should be
configured is determined by CONFIG_PROFILE.set_lag_mode, which also add.
Signed-off-by: default avatarPetr Machata <petrm@nvidia.com>
Reviewed-by: default avatarIdo Schimmel <idosch@nvidia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent be9ed47d
...@@ -695,6 +695,12 @@ MLXSW_ITEM32(cmd_mbox, config_profile, set_cqe_version, 0x08, 0, 1); ...@@ -695,6 +695,12 @@ MLXSW_ITEM32(cmd_mbox, config_profile, set_cqe_version, 0x08, 0, 1);
*/ */
MLXSW_ITEM32(cmd_mbox, config_profile, set_cqe_time_stamp_type, 0x08, 2, 1); MLXSW_ITEM32(cmd_mbox, config_profile, set_cqe_time_stamp_type, 0x08, 2, 1);
/* cmd_mbox_config_profile_set_lag_mode
* Capability bit. Setting a bit to 1 configures the lag_mode
* according to the mailbox contents.
*/
MLXSW_ITEM32(cmd_mbox, config_profile, set_lag_mode, 0x08, 7, 1);
/* cmd_mbox_config_profile_max_vepa_channels /* cmd_mbox_config_profile_max_vepa_channels
* Maximum number of VEPA channels per port (0 through 16) * Maximum number of VEPA channels per port (0 through 16)
* 0 - multi-channel VEPA is disabled * 0 - multi-channel VEPA is disabled
...@@ -840,6 +846,21 @@ MLXSW_ITEM32(cmd_mbox, config_profile, arn, 0x50, 31, 1); ...@@ -840,6 +846,21 @@ MLXSW_ITEM32(cmd_mbox, config_profile, arn, 0x50, 31, 1);
*/ */
MLXSW_ITEM32(cmd_mbox, config_profile, ubridge, 0x50, 4, 1); MLXSW_ITEM32(cmd_mbox, config_profile, ubridge, 0x50, 4, 1);
enum mlxsw_cmd_mbox_config_profile_lag_mode {
/* FW manages PGT LAG table */
MLXSW_CMD_MBOX_CONFIG_PROFILE_LAG_MODE_FW,
/* SW manages PGT LAG table */
MLXSW_CMD_MBOX_CONFIG_PROFILE_LAG_MODE_SW,
};
/* cmd_mbox_config_profile_lag_mode
* LAG mode
* Configured if set_lag_mode is set
* Supported from Spectrum-2 and above.
* Supported only when ubridge = 1
*/
MLXSW_ITEM32(cmd_mbox, config_profile, lag_mode, 0x50, 3, 1);
/* cmd_mbox_config_kvd_linear_size /* cmd_mbox_config_kvd_linear_size
* KVD Linear Size * KVD Linear Size
* Valid for Spectrum only * Valid for Spectrum only
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment