bonding: make it possible to have unlimited nested upper vlans
authorVeaceslav Falico <vfalico@gmail.com>
Thu, 17 Jul 2014 15:02:23 +0000 (17:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jul 2014 03:35:00 +0000 (20:35 -0700)
commit3e403a77779faf046862d91c36ef79fb4b12be9a
tree25f1b3b47eff4aa4e437d991b33f3438eed85eec
parent224e923cd9b001c612b7b68933264156271722f9
bonding: make it possible to have unlimited nested upper vlans

Currently we're limited by a constant level of vlan nestings, and fail to
find anything beyound that level (currently 2).

To fix this - remove the limit of nestings when going through device tree,
and when the end device is found - allocate the needed amount of vlan tags
and return them, instead of found/not found.

CC: Jay Vosburgh <j.vosburgh@gmail.com>
CC: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Veaceslav Falico <vfalico@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_alb.c
drivers/net/bonding/bond_main.c
drivers/net/bonding/bonding.h