Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193913
b: refs/heads/master
c: 34996cb
h: refs/heads/master
i:
  193911: ea0ec72
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Apr 2, 2010
1 parent 23d524b commit 3fd4fd8
Show file tree
Hide file tree
Showing 2 changed files with 2 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: bd2c77a0a749589b45f2697ea446a4438d078f9b
refs/heads/master: 34996cb91dd72f0b0456d8fd3fef4aaee62232f2
5 changes: 1 addition & 4 deletions trunk/net/xfrm/xfrm_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
static DEFINE_SPINLOCK(xfrm_state_lock);

static unsigned int xfrm_state_hashmax __read_mostly = 1 * 1024 * 1024;
static unsigned int xfrm_state_genid;

static struct xfrm_state_afinfo *xfrm_state_get_afinfo(unsigned int family);
static void xfrm_state_put_afinfo(struct xfrm_state_afinfo *afinfo);
Expand Down Expand Up @@ -923,8 +922,6 @@ static void __xfrm_state_insert(struct xfrm_state *x)
struct net *net = xs_net(x);
unsigned int h;

x->genid = ++xfrm_state_genid;

list_add(&x->km.all, &net->xfrm.state_all);

h = xfrm_dst_hash(net, &x->id.daddr, &x->props.saddr,
Expand Down Expand Up @@ -970,7 +967,7 @@ static void __xfrm_state_bump_genids(struct xfrm_state *xnew)
(mark & x->mark.m) == x->mark.v &&
!xfrm_addr_cmp(&x->id.daddr, &xnew->id.daddr, family) &&
!xfrm_addr_cmp(&x->props.saddr, &xnew->props.saddr, family))
x->genid = xfrm_state_genid;
x->genid++;
}
}

Expand Down

0 comments on commit 3fd4fd8

Please sign in to comment.