Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361100
b: refs/heads/master
c: 9cb6cb7
h: refs/heads/master
v: v3
  • Loading branch information
Zang MingJie authored and David S. Miller committed Mar 7, 2013
1 parent 660f909 commit 32a5a6c
Show file tree
Hide file tree
Showing 2 changed files with 9 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: e4fabf2b6e6d75752d5eede57f23ff8e9c6aa09b
refs/heads/master: 9cb6cb7ed11cd3b69c47bb414983603a6ff20b1d
8 changes: 8 additions & 0 deletions trunk/drivers/net/vxlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1506,6 +1506,14 @@ static __net_init int vxlan_init_net(struct net *net)
static __net_exit void vxlan_exit_net(struct net *net)
{
struct vxlan_net *vn = net_generic(net, vxlan_net_id);
struct vxlan_dev *vxlan;
unsigned h;

rtnl_lock();
for (h = 0; h < VNI_HASH_SIZE; ++h)
hlist_for_each_entry(vxlan, &vn->vni_list[h], hlist)
dev_close(vxlan->dev);
rtnl_unlock();

if (vn->sock) {
sk_release_kernel(vn->sock->sk);
Expand Down

0 comments on commit 32a5a6c

Please sign in to comment.