Skip to content
Snippets Groups Projects
Commit e90c512e authored by Felix Fietkau's avatar Felix Fietkau Committed by Kenneth Johansson
Browse files

kernel: add a small xfrm related performance optimization


Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent d65eb54f
No related branches found
No related tags found
No related merge requests found
......@@ -93,6 +93,9 @@ int nf_xfrm_me_harder(struct net *net, struct sk_buff *skb, unsigned int family)
struct dst_entry *dst;
int err;
if (skb->dev && !dev_net(skb->dev)->xfrm.policy_count[XFRM_POLICY_OUT])
return 0;
err = xfrm_decode_session(skb, &fl, family);
if (err < 0)
return err;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment