Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327622
b: refs/heads/master
c: 2c33bb3
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Pirko authored and David S. Miller committed Aug 24, 2012
1 parent 5428091 commit c2e36f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9b361c13ceeae872161175d39f4798ee345ed10c
refs/heads/master: 2c33bb37cb69dc6d86d2ee8edd1d4814990a65fe
7 changes: 7 additions & 0 deletions trunk/drivers/net/team/team.c
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,13 @@ static int team_port_add(struct team *team, struct net_device *port_dev)
return -EBUSY;
}

if (port_dev->features & NETIF_F_VLAN_CHALLENGED &&
vlan_uses_dev(dev)) {
netdev_err(dev, "Device %s is VLAN challenged and team device has VLAN set up\n",
portname);
return -EPERM;
}

err = team_dev_type_check_change(dev, port_dev);
if (err)
return err;
Expand Down

0 comments on commit c2e36f1

Please sign in to comment.