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>
This commit is contained in:
committed by
Steffen Klassert
parent
25cfb8bc97
commit
adfc2fdbae
+1
-3
@@ -306,9 +306,6 @@ struct km_event {
|
||||
};
|
||||
|
||||
struct xfrm_replay {
|
||||
int (*check)(struct xfrm_state *x,
|
||||
struct sk_buff *skb,
|
||||
__be32 net_seq);
|
||||
int (*overflow)(struct xfrm_state *x, struct sk_buff *skb);
|
||||
};
|
||||
|
||||
@@ -1719,6 +1716,7 @@ static inline int xfrm_policy_id2dir(u32 index)
|
||||
|
||||
#ifdef CONFIG_XFRM
|
||||
void xfrm_replay_advance(struct xfrm_state *x, __be32 net_seq);
|
||||
int xfrm_replay_check(struct xfrm_state *x, struct sk_buff *skb, __be32 net_seq);
|
||||
void xfrm_replay_notify(struct xfrm_state *x, int event);
|
||||
int xfrm_replay_recheck(struct xfrm_state *x, struct sk_buff *skb, __be32 net_seq);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user