summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAmit Cohen <amcohen@nvidia.com>2022-06-21 11:33:41 +0300
committerDavid S. Miller <davem@davemloft.net>2022-06-22 12:56:58 +0100
commit89df3c6261f271c550f120b5ccf4d9c5132e870c (patch)
tree9164fa6897fdcdafc70c72f74d722e3fd385ad7c /drivers
parent70b34c77f1273f4940f1bc5c3b7d15ee8297073f (diff)
downloadlinux-stable-89df3c6261f271c550f120b5ccf4d9c5132e870c.tar.gz
linux-stable-89df3c6261f271c550f120b5ccf4d9c5132e870c.tar.bz2
linux-stable-89df3c6261f271c550f120b5ccf4d9c5132e870c.zip
mlxsw: cmd: Increase 'config_profile.flood_mode' length
Currently, the length of 'config_profile.flood_mode' is defined as 2 bits, while the correct length is 3 bits. As preparation for unified bridge model, which will use the whole field length, fix it and increase the field to the correct size. Signed-off-by: Amit Cohen <amcohen@nvidia.com> Signed-off-by: Ido Schimmel <idosch@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/cmd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/cmd.h b/drivers/net/ethernet/mellanox/mlxsw/cmd.h
index 150dda58d988..8a89c2773294 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/cmd.h
+++ b/drivers/net/ethernet/mellanox/mlxsw/cmd.h
@@ -731,7 +731,7 @@ enum mlxsw_cmd_mbox_config_profile_flood_mode {
/* cmd_mbox_config_profile_flood_mode
* Flooding mode to use.
*/
-MLXSW_ITEM32(cmd_mbox, config_profile, flood_mode, 0x30, 0, 2);
+MLXSW_ITEM32(cmd_mbox, config_profile, flood_mode, 0x30, 0, 3);
/* cmd_mbox_config_profile_max_fid_offset_flood_tables
* Maximum number of FID-offset flooding tables.