Re: [PATCH net-next 2/3] ipv6: add ip6_dst_lookup_flow_cookie

From
Jakub Kicinski <kuba@kernel.org>
Date
2026-11-10 23:29:30
Reply to
Ralf Lici, 2026-11-04
On Wed,  4 Nov 2026 16:53:30 +0100 Ralf Lici wrote:
quoted hunk ↗ jump to hunk
+/**
+ *	ip6_dst_lookup_flow_cookie - perform route lookup on flow with ipsec
+ *				     and return the matching dst cookie
+ *	@net: Network namespace to perform lookup in
+ *	@sk: socket which provides route info
+ *	@fl6: flow to lookup
+ *	@final_dst: final destination address for ipsec lookup
+ *	@cookie: where to store the cookie for the returned dst
+ *
+ *	Same as ip6_dst_lookup_flow(), but also returns the cookie describing
+ *	the routing state the dst was obtained from. A caller caching the dst
+ *	should use this cookie when validating it with dst_check(). If the
+ *	IPv6 FIB changed during the lookup, a route dst no longer validates
+ *	with it. An xfrm bundle is validated by xfrm and ignores the cookie.
+ *
+ *	It returns a valid dst pointer on success, or a pointer encoded
+ *	error code.
Warning: net/ipv6/ip6_output.c:1325 No description found for return value of 'ip6_dst_lookup_flow_cookie'

You need to use the appropriate keyword (Return: or Returns:)
-- 
pw-bot: cr
Thread (7 messages) 7 messages, 2 authors, last reply 10d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help