]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: use netdev_upper list in bond_vlan_used
authorVeaceslav Falico <vfalico@redhat.com>
Wed, 28 Aug 2013 21:25:09 +0000 (23:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Aug 2013 20:19:42 +0000 (16:19 -0400)
commitdfe85f18791605302db5a9eebbcecd259ccce3e7
tree3f7ff263c2b69d1393016fe1c61f627a51949cf7
parent9d26fe2e9ef0c0b8db28a07d628e9c8f09e052f2
bonding: use netdev_upper list in bond_vlan_used

Convert bond_vlan_used() to traverse the upper device list to see if we
have any vlans above us. It's protected by rcu, and in case we are holding
rtnl_lock we should call vlan_uses_dev() instead - it's faster.

CC: Jay Vosburgh <fubar@us.ibm.com>
CC: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bonding.h