Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340710
b: refs/heads/master
c: e949b09
h: refs/heads/master
v: v3
  • Loading branch information
Doug Goldstein authored and David S. Miller committed Nov 9, 2012
1 parent 14d9d1b commit ec5a39c
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 23612632435892fe66268f9598d5550ccdfdeea8
refs/heads/master: e949b09b71d975a82f13ac88ce4ad338fed213da
6 changes: 6 additions & 0 deletions trunk/net/8021q/vlan_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,10 @@ static const struct header_ops vlan_header_ops = {
.parse = eth_header_parse,
};

static struct device_type vlan_type = {
.name = "vlan",
};

static const struct net_device_ops vlan_netdev_ops;

static int vlan_dev_init(struct net_device *dev)
Expand Down Expand Up @@ -579,6 +583,8 @@ static int vlan_dev_init(struct net_device *dev)

dev->netdev_ops = &vlan_netdev_ops;

SET_NETDEV_DEVTYPE(dev, &vlan_type);

if (is_vlan_dev(real_dev))
subclass = 1;

Expand Down

0 comments on commit ec5a39c

Please sign in to comment.