Skip to content

Bonding simplifications and netns support

Eric W. Biederman netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6net: Allow devices to specify a device specific sysfs group.include/linux/netdevice.h net/core/net-sysfs.c+6 -30 replies
2/6bond: Simply bond sysfs group creationdrivers/net/bonding/bond_main.c drivers/net/bonding/bond_sysfs.c drivers/net/bonding/bonding.h+4 -300 replies
3/6bond: Simplify bond_create.drivers/net/bonding/bond_main.c+4 -180 replies
4/6bond: Simplify bond device destructiondrivers/net/bonding/bond_main.c+16 -290 replies
5/6bond: Implement a basic set of rtnl link opsdrivers/net/bonding/bond_main.c+30 -257 replies
6/6bond: Add support for multiple network namespacesdrivers/net/bonding/bond_3ad.c drivers/net/bonding/bond_alb.c drivers/net/bonding/bond_ipv6.c +3 more+99 -580 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/6] Bonding simplifications and netns support

I recently had it pointed out to me that the bonding driver does not work in a network namespace. So I have simplified the bonding driver a bit, added support for ip link add and ip link del, and finally made the bonding driver work in multiple network namespaces.

The most note worthy change in the patchset is the addition of support in the networking core for registering a sysfs group for a device.

Using this in the bonding driver simplifies the code and removes a userspace race between actions triggered by the netlink event and the bonding sysfs attributes appearing.

Eric