OSDN Git Service

mlxsw: Use Switch Multicast ID Register Version 2
authorAmit Cohen <amcohen@nvidia.com>
Wed, 1 Dec 2021 08:12:40 +0000 (10:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Dec 2021 14:52:34 +0000 (14:52 +0000)
commit51ef6b00798ccf022efc83b91fc9038afe4c953f
treeb27f603784571b50b465cc8f2cfcece8dccbe6a9
parente86ad8ce5beda5dbd351957b22948fdb077f9f53
mlxsw: Use Switch Multicast ID Register Version 2

The SMID-V2 register maps Multicast ID (MID) into a list of local ports.
It is a new version of SMID in order to support 1024 bits of local_port.

Add SMID-V2 register and use it instead of SMID.

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: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/reg.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c