Skip to content

bonding: remove vlan special handling

Veaceslav Falico netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8net: move netdev_upper to netdevice.hinclude/linux/netdevice.h net/core/dev.c+8 -84 replies
2/8bonding: use netdev_upper list in bond_vlan_useddrivers/net/bonding/bonding.h+13 -10 replies
3/8bonding: make bond_arp_send_all use upper device listdrivers/net/bonding/bond_main.c+31 -530 replies
4/8bonding: convert bond_has_this_ip() to use upper devicesdrivers/net/bonding/bond_main.c+12 -120 replies
5/8bonding: use vlan_uses_dev() in __bond_release_one()drivers/net/bonding/bond_main.c+1 -10 replies
6/8bonding: split alb_send_learning_packets()drivers/net/bonding/bond_alb.c+35 -240 replies
7/8bonding: make alb_send_learning_packets() use upper dev listdrivers/net/bonding/bond_alb.c drivers/net/bonding/bond_alb.h+10 -190 replies
8/8bonding: remove vlan_list/current_alb_vlandrivers/net/bonding/bond_alb.c drivers/net/bonding/bond_alb.h drivers/net/bonding/bond_main.c +1 more+2 -1430 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/8] bonding: remove vlan special handling

The aim of this patchset is to remove bondings' own vlan handling as much as possible and replace it with the netdev upper device functionality.

This is achieved by exporting the netdev_upper structure and thus permiting bonding to work directly with its upper devices. The only non-bonding change is the exporting of netdev_upper, and the only special treatment of vlans left is in the rlb mode.

This patchset solves several issues with bonding, simplifies it overall, RCUify further and exports netdev_upper for any other users which might also want to get rid of its own vlan_lists.

I'm testing it continuously currently, no issues found, will update on anything.

CC Jay Vosburgh <[email protected]>
CC Andy Gospodarek <[email protected]>
CC "David S. Miller" <[email protected]>
CC Eric Dumazet <[email protected]>
CC Jiri Pirko <[email protected]>
CC Alexander Duyck <[email protected]>
CC Cong Wang <[email protected]>
---
 drivers/net/bonding/bond_alb.c  |   74 ++++++------
 drivers/net/bonding/bond_alb.h  |    2 -
 drivers/net/bonding/bond_main.c |  243 ++++++++-------------------------------
 drivers/net/bonding/bonding.h   |   20 ++-
 include/linux/netdevice.h       |    8 ++
 net/core/dev.c                  |    8 --
 6 files changed, 103 insertions(+), 252 deletions(-)