Skip to content

bonding: vlan handling changes

Nikolay Aleksandrov netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. v13 patches 13 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bonding: change the bond's vlan syncing functions with the standard onesdrivers/net/bonding/bond_main.c+7 -301 reply
2/2bonding: unwind on bond_add_vlan failuredrivers/net/bonding/bond_main.c+2 -21 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchVeaceslav Falico
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH net-next v2 0/2] bonding: vlan handling changes

From: Nikolay Aleksandrov <Nikolay Aleksandrov [email protected]>

Hi,
In v2 of these patchset I've dropped the previous patch 01 (vlan 0 fix) because it'll be taken care of later and these two patches are not dependent on it.

Patch 01 - switches the bonding to the now standard vlan syncing functions vlan_vids_add/del_by_dev() and removes the bonding specific ones. In v2 upon vlan addition failure we fail the enslavement with an error message because otherwise we might delete vlans that weren't added by the bonding. The only way this may happen is with ENOMEM currently, so we're in trouble anyway.

Patch 02 - reverts vlan addition in case of bond_add_vlan failure because otherwise we may get bad vlan refcounts in the slaves.
This patch is queued for net-next because a fix for -net without the list conversion would mean taking care of special cases and would be really ugly. Since this bug is not critical, I'd rather have the fix for net-next. It can happen only with ENOMEM, so again we're already in trouble.

Patches 01 and 02 are not connected and if you decide to drop patch 02 please leave 01 (if accepted).

v2: See the notes, I've explained the changes together and by patch.

Nikolay Aleksandrov (2):
bonding: change the bond's vlan syncing functions with the standard
ones
bonding: unwind on bond_add_vlan failure

 drivers/net/bonding/bond_main.c | 41 +++++++++--------------------------------
 1 file changed, 9 insertions(+), 32 deletions(-)
Signature · 1 line
1.8.1.4