]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: Set flood bridge type for FIDs
authorAmit Cohen <amcohen@nvidia.com>
Mon, 27 Jun 2022 07:06:13 +0000 (10:06 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 28 Jun 2022 12:31:36 +0000 (14:31 +0200)
commit10350611a206611ed3e5db7b1526b4a15fca5326
tree09509894af337192c6643178e5e1162db5ee34c7
parent6d4b250b3a6bbde33c2c7052e4cefb47f1306e0b
mlxsw: Set flood bridge type for FIDs

In the unified bridge model, the bridge type FID attribute is no longer
configured by the firmware, but instead by software when creating and
editing a FID via SFMR register.

Set this field as part of FID creation and edition flow. Default to 0
(reserved) as long as the driver operates in the legacy bridge model.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlxsw/reg.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c