diff options
author | Florian Westphal <fw@strlen.de> | 2021-06-18 15:51:59 +0200 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2021-06-21 09:55:06 +0200 |
commit | adfc2fdbae30d42edebad01d0ea1eed43036f1fe (patch) | |
tree | 09ef5f7f6e72bda23f70daaa8834af05384612b5 /net/xfrm/xfrm_input.c | |
parent | xfrm: replay: remove recheck indirection (diff) | |
download | linux-adfc2fdbae30d42edebad01d0ea1eed43036f1fe.tar.xz linux-adfc2fdbae30d42edebad01d0ea1eed43036f1fe.zip |
xfrm: replay: avoid replay indirection
Add and use xfrm_replay_check helper instead of 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 8046ef1a6680..3df0861d4390 100644 --- a/net/xfrm/xfrm_input.c +++ b/net/xfrm/xfrm_input.c @@ -612,7 +612,7 @@ lock: goto drop_unlock; } - if (x->repl->check(x, skb, seq)) { + if (xfrm_replay_check(x, skb, seq)) { XFRM_INC_STATS(net, LINUX_MIB_XFRMINSTATESEQERROR); goto drop_unlock; } |