Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103336
b: refs/heads/master
c: 26a2523
h: refs/heads/master
v: v3
  • Loading branch information
Joonwoo Park authored and David S. Miller committed Jul 8, 2008
1 parent 8810c41 commit 48d9d46
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: acc81e1465d29e0284008770cc4b8bc90bd93bd7
refs/heads/master: 26a25239d7a660cc7162e2463b48b40d544364d0
3 changes: 1 addition & 2 deletions trunk/net/8021q/vlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -570,8 +570,7 @@ static int vlan_ioctl_handler(struct net *net, void __user *arg)
goto out;

err = -EINVAL;
if (args.cmd != ADD_VLAN_CMD &&
!(dev->priv_flags & IFF_802_1Q_VLAN))
if (args.cmd != ADD_VLAN_CMD && !is_vlan_dev(dev))
goto out;
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/net/8021q/vlan_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ static int vlan_dev_init(struct net_device *dev)
dev->hard_start_xmit = vlan_dev_hard_start_xmit;
}

if (real_dev->priv_flags & IFF_802_1Q_VLAN)
if (is_vlan_dev(real_dev))
subclass = 1;

lockdep_set_class_and_subclass(&dev->_xmit_lock,
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/8021q/vlanproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ static int vlandev_seq_show(struct seq_file *seq, void *offset)
static const char fmt[] = "%30s %12lu\n";
int i;

if (!(vlandev->priv_flags & IFF_802_1Q_VLAN))
if (!is_vlan_dev(vlandev))
return 0;

seq_printf(seq,
Expand Down

0 comments on commit 48d9d46

Please sign in to comment.