mbox series

[net-next,0/3] net: sparx5: add mrouter support

Message ID 20220822140800.2651029-1-casper.casan@gmail.com (mailing list archive)
Headers show
Series net: sparx5: add mrouter support | expand

Message

Casper Andersson Aug. 22, 2022, 2:07 p.m. UTC
This series adds support for multicast router ports to SparX5. To manage
mrouter ports the driver must keep track of mdb entries. When adding an
mrouter port the driver has to iterate over all mdb entries and modify
them accordingly.

Here I keep track of if it is an mrouter port or not in the `struct
sparx5_port`. But I also considered keeping it as a bitmap in `struct
sparx5`. I'm not sure if either is better than the other.

Casper Andersson (3):
  ethernet: Add helpers to recognize addresses mapped to IP multicast
  net: sparx5: add list for mdb entries in driver
  net: sparx5: add support for mrouter ports

 .../ethernet/microchip/sparx5/sparx5_main.c   |   4 +
 .../ethernet/microchip/sparx5/sparx5_main.h   |  15 +
 .../microchip/sparx5/sparx5_switchdev.c       | 269 ++++++++++++------
 .../ethernet/microchip/sparx5/sparx5_vlan.c   |   7 +
 include/linux/etherdevice.h                   |  22 ++
 5 files changed, 230 insertions(+), 87 deletions(-)