diff options
author | Florian Westphal <fw@strlen.de> | 2021-06-18 15:51:58 +0200 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2021-06-21 09:55:06 +0200 |
commit | 25cfb8bc97c2b8447f86b1ad376ee672b6b173d4 (patch) | |
tree | 47329338e002c20db197d4334d68627a100a086f /net/xfrm/xfrm_input.c | |
parent | xfrm: replay: remove advance indirection (diff) | |
download | linux-25cfb8bc97c2b8447f86b1ad376ee672b6b173d4.tar.xz linux-25cfb8bc97c2b8447f86b1ad376ee672b6b173d4.zip |
xfrm: replay: remove recheck indirection
Adds new xfrm_replay_recheck() helper and calls it from
xfrm input path instead of the indirection.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm/xfrm_input.c')
-rw-r--r-- | net/xfrm/xfrm_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_input.c b/net/xfrm/xfrm_input.c index c8971e4b33ab..8046ef1a6680 100644 --- a/net/xfrm/xfrm_input.c +++ b/net/xfrm/xfrm_input.c @@ -660,7 +660,7 @@ resume: /* only the first xfrm gets the encap type */ encap_type = 0; - if (x->repl->recheck(x, skb, seq)) { + if (xfrm_replay_recheck(x, skb, seq)) { XFRM_INC_STATS(net, LINUX_MIB_XFRMINSTATESEQERROR); goto drop_unlock; } |