|
@@ -1519,7 +1519,7 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev)
|
|
|
/* no need to lock since we're protected by rtnl_lock */
|
|
|
if (slave_dev->features & NETIF_F_VLAN_CHALLENGED) {
|
|
|
pr_debug("%s: NETIF_F_VLAN_CHALLENGED\n", slave_dev->name);
|
|
|
- if (bond_vlan_used(bond)) {
|
|
|
+ if (vlan_uses_dev(bond_dev)) {
|
|
|
pr_err("%s: Error: cannot enslave VLAN challenged slave %s on VLAN enabled bond %s\n",
|
|
|
bond_dev->name, slave_dev->name, bond_dev->name);
|
|
|
return -EPERM;
|