Skip to content

bonding: struct bonding cleanup and MAC set fixes

Nikolay Aleksandrov netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3bonding: remove unnecessary setup_by_slave memberdrivers/net/bonding/bond_main.c drivers/net/bonding/bonding.h+1 -50 replies
2/3bonding: remove unnecessary dev_addr_from_first memberdrivers/net/bonding/bond_main.c drivers/net/bonding/bonding.h+2 -60 replies
3/3bonding: when cloning a MAC use NET_ADDR_STOLENdrivers/net/bonding/bond_main.c+19 -140 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/3] bonding: struct bonding cleanup and MAC set fixes

Hello,
This patchset removes some unnecessary struct bonding members. It also fixes MAC setting inconsistencies (i.e. if a bond's MAC is set after creation but prior to enslaving, it is lost and the first slave's MAC is cloned again). Before these patches the only way to keep a user-defined MAC is either to set it after enslaving or to create the bond with that MAC. Patch 01 - removes setup_by_slave member
Patch 02 - removes dev_addr_from_first member and does the MAC fixing Patch 03 - introduces the use of NET_ADDR_STOLEN when a MAC is cloned

Best regards,
Nikolay Aleksandrov

Nikolay Aleksandrov (3):
bonding: remove unnecessary setup_by_slave member
bonding: remove unnecessary dev_addr_from_first member
bonding: when cloning a MAC use NET_ADDR_STOLEN

 drivers/net/bonding/bond_main.c | 45 ++++++++++++++++++++---------------------
 drivers/net/bonding/bonding.h   |  2 --
 2 files changed, 22 insertions(+), 25 deletions(-)
Signature · 1 line
1.8.1.4