diff options
author | David S. Miller <davem@davemloft.net> | 2012-11-22 15:25:55 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-22 15:25:55 -0500 |
commit | 242a18d1374cebacd301f6b0ce1fd70d6c5afee6 (patch) | |
tree | b5b6079bd153f3461c92895dd7a4435cf3a80bd5 /net/xfrm/xfrm_replay.c | |
parent | f2fb4ab2a647d6576812cbb3ae1979538112f6c8 (diff) | |
parent | 0afe21fdf6cfe0fe8a184d82a399773cc331bf40 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next
Steffen Klassert says:
====================
This pull request is intended for net-next and contains the following changes:
1) Remove a redundant check when initializing the xfrm replay functions,
from Ulrich Weber.
2) Use a faster per-cpu helper when allocating ipcomt transforms,
from Shan Wei.
3) Use a static gc threshold value for ipv6, simmilar to what we do
for ipv4 now.
4) Remove a commented out function call.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm/xfrm_replay.c')
-rw-r--r-- | net/xfrm/xfrm_replay.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/net/xfrm/xfrm_replay.c b/net/xfrm/xfrm_replay.c index 3efb07d3eb27..765f6fe951eb 100644 --- a/net/xfrm/xfrm_replay.c +++ b/net/xfrm/xfrm_replay.c | |||
@@ -521,13 +521,12 @@ int xfrm_init_replay(struct xfrm_state *x) | |||
521 | replay_esn->bmp_len * sizeof(__u32) * 8) | 521 | replay_esn->bmp_len * sizeof(__u32) * 8) |
522 | return -EINVAL; | 522 | return -EINVAL; |
523 | 523 | ||
524 | if ((x->props.flags & XFRM_STATE_ESN) && replay_esn->replay_window == 0) | 524 | if (x->props.flags & XFRM_STATE_ESN) { |
525 | return -EINVAL; | 525 | if (replay_esn->replay_window == 0) |
526 | 526 | return -EINVAL; | |
527 | if ((x->props.flags & XFRM_STATE_ESN) && x->replay_esn) | 527 | x->repl = &xfrm_replay_esn; |
528 | x->repl = &xfrm_replay_esn; | 528 | } else |
529 | else | 529 | x->repl = &xfrm_replay_bmp; |
530 | x->repl = &xfrm_replay_bmp; | ||
531 | } else | 530 | } else |
532 | x->repl = &xfrm_replay_legacy; | 531 | x->repl = &xfrm_replay_legacy; |
533 | 532 | ||