]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitc752af2c555617017dbb3a66f81e974b66ad5e2d
tree3f7ff263c2b69d1393016fe1c61f627a51949cf7
parent8b5be8561b804edf6b58fc27edbccf1d45863e08
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