Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75495
b: refs/heads/master
c: 0fe1e56
h: refs/heads/master
i:
  75493: f21f760
  75491: aca9450
  75487: 3159dbe
v: v3
  • Loading branch information
Jarek Poplawski authored and David S. Miller committed Jan 11, 2008
1 parent 13a743a commit c0896dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 0d89d7944fead211422e21fb7ea70ed3b903a79e
refs/heads/master: 0fe1e567d0b4f6a98e94d3b9a40f41c801bd157f
7 changes: 6 additions & 1 deletion trunk/net/8021q/vlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ static const struct header_ops vlan_header_ops = {
static int vlan_dev_init(struct net_device *dev)
{
struct net_device *real_dev = VLAN_DEV_INFO(dev)->real_dev;
int subclass = 0;

/* IFF_BROADCAST|IFF_MULTICAST; ??? */
dev->flags = real_dev->flags & ~IFF_UP;
Expand All @@ -349,7 +350,11 @@ static int vlan_dev_init(struct net_device *dev)
dev->hard_start_xmit = vlan_dev_hard_start_xmit;
}

lockdep_set_class(&dev->_xmit_lock, &vlan_netdev_xmit_lock_key);
if (real_dev->priv_flags & IFF_802_1Q_VLAN)
subclass = 1;

lockdep_set_class_and_subclass(&dev->_xmit_lock,
&vlan_netdev_xmit_lock_key, subclass);
return 0;
}

Expand Down

0 comments on commit c0896dc

Please sign in to comment.