Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88184
b: refs/heads/master
c: bfe87db
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Apr 4, 2008
1 parent b357cbf commit 22e2a08
Show file tree
Hide file tree
Showing 2 changed files with 16 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: 30ecce908b944079181938e61ddbc00c8b23798c
refs/heads/master: bfe87dbc7b4da5b05a1a78480e996787a500cc6f
15 changes: 15 additions & 0 deletions trunk/net/8021q/vlan_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,20 @@ static int vlan_dev_init(struct net_device *dev)
return 0;
}

static void vlan_dev_uninit(struct net_device *dev)
{
struct vlan_priority_tci_mapping *pm;
struct vlan_dev_info *vlan = vlan_dev_info(dev);
int i;

for (i = 0; i < ARRAY_SIZE(vlan->egress_priority_map); i++) {
while ((pm = vlan->egress_priority_map[i]) != NULL) {
vlan->egress_priority_map[i] = pm->next;
kfree(pm);
}
}
}

void vlan_setup(struct net_device *dev)
{
ether_setup(dev);
Expand All @@ -701,6 +715,7 @@ void vlan_setup(struct net_device *dev)

dev->change_mtu = vlan_dev_change_mtu;
dev->init = vlan_dev_init;
dev->uninit = vlan_dev_uninit;
dev->open = vlan_dev_open;
dev->stop = vlan_dev_stop;
dev->set_mac_address = vlan_dev_set_mac_address;
Expand Down

0 comments on commit 22e2a08

Please sign in to comment.