Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a57ebc90 authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller
Browse files

[IPV6]: Don't redo xfrm_lookup for cached dst entries



The xfrm lookup is already done when the dst entry is looked up first and
stored in the cache.

Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent baed16a7
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -673,11 +673,12 @@ ip6ip6_tnl_xmit(struct sk_buff *skb, struct net_device *dev)

	if ((dst = ip6_tnl_dst_check(t)) != NULL)
		dst_hold(dst);
	else
	else {
		dst = ip6_route_output(NULL, &fl);

		if (dst->error || xfrm_lookup(&dst, &fl, NULL, 0) < 0)
			goto tx_err_link_failure;
	}

	tdev = dst->dev;