mbox series

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

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

Message

Casper Andersson Aug. 25, 2022, 9:28 a.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.

v2:
- add bailout in free_mdb
- re-arrange mdb struct to avoid holes
- change devm_kzalloc -> kzalloc
- change GFP_ATOMIC -> GFP_KERNEL
- fix spelling

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       | 271 ++++++++++++------
 .../ethernet/microchip/sparx5/sparx5_vlan.c   |   7 +
 include/linux/etherdevice.h                   |  22 ++
 5 files changed, 232 insertions(+), 87 deletions(-)

Comments

Steen Hegelund Aug. 29, 2022, 9:20 a.m. UTC | #1
Hi Casper,

On Thu, 2022-08-25 at 11:28 +0200, Casper Andersson wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> 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.
> 
> v2:
> - add bailout in free_mdb
> - re-arrange mdb struct to avoid holes
> - change devm_kzalloc -> kzalloc
> - change GFP_ATOMIC -> GFP_KERNEL
> - fix spelling
> 
> 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       | 271 ++++++++++++------
>  .../ethernet/microchip/sparx5/sparx5_vlan.c   |   7 +
>  include/linux/etherdevice.h                   |  22 ++
>  5 files changed, 232 insertions(+), 87 deletions(-)
> 
> --
> 2.34.1
> 

For this series:

Reviewed-by: Steen Hegelund <Steen.Hegelund@microchip.com>

BR
Steen
patchwork-bot+netdevbpf@kernel.org Aug. 29, 2022, 12:10 p.m. UTC | #2
Hello:

This series was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Thu, 25 Aug 2022 11:28:34 +0200 you wrote:
> 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.
> 
> v2:
> - add bailout in free_mdb
> - re-arrange mdb struct to avoid holes
> - change devm_kzalloc -> kzalloc
> - change GFP_ATOMIC -> GFP_KERNEL
> - fix spelling
> 
> [...]

Here is the summary with links:
  - [v2,net-next,1/3] ethernet: Add helpers to recognize addresses mapped to IP multicast
    https://git.kernel.org/netdev/net-next/c/e8013f8edaa3
  - [v2,net-next,2/3] net: sparx5: add list for mdb entries in driver
    https://git.kernel.org/netdev/net-next/c/c8a3ea43b5cb
  - [v2,net-next,3/3] net: sparx5: add support for mrouter ports
    https://git.kernel.org/netdev/net-next/c/04e551d66dd8

You are awesome, thank you!