]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mlxsw: Adding layer 2 multicast support
authorElad Raz <eladr@mellanox.com>
Sun, 10 Jan 2016 20:06:28 +0000 (21:06 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 10 Jan 2016 21:50:21 +0000 (16:50 -0500)
commit3a49b4fde2a1384101bc80d66e41271bb37a66e7
tree9c569b6b1a870bf53a963ab8f029a883bc4e31d8
parente4b6f6931c0840b6a9505415bd02bd0c8520e4c9
mlxsw: Adding layer 2 multicast support

Add SWITCHDEV_OBJ_ID_PORT_MDB switchdev ops support. On first MDB insertion
creates a new multicast group (MID) and add members port to the MID. Also
add new MDB entry for the flooding-domain (fid-vid) and link the MDB entry
to the newly constructed MC group.

Signed-off-by: Elad Raz <eladr@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c