]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
xfrm: update outdated comment
authorkexinsun <kexinsun@smail.nju.edu.cn>
Tue, 24 Feb 2026 02:18:21 +0000 (10:18 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 26 Feb 2026 07:33:25 +0000 (08:33 +0100)
The function __xfrm4_bundle_create() was refactored into
xfrm_bundle_create() (among others) by commit 25ee3286dcbc
("xfrm: Merge common code into xfrm_bundle_create"). The
responsibility for setting dst->obsolete to DST_OBSOLETE_FORCE_CHK
now lives in xfrm_bundle_create(). Update the comment accordingly.

Signed-off-by: kexinsun <kexinsun@smail.nju.edu.cn>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_policy.c

index 62486f866975213621c60ea72f66d1dd5c7e3c83..7bcb6583e84c0f0f6f8c37bb2a4a7192cf05dc86 100644 (file)
@@ -3910,7 +3910,7 @@ EXPORT_SYMBOL(__xfrm_route_forward);
 
 static struct dst_entry *xfrm_dst_check(struct dst_entry *dst, u32 cookie)
 {
-       /* Code (such as __xfrm4_bundle_create()) sets dst->obsolete
+       /* Code (such as xfrm_bundle_create()) sets dst->obsolete
         * to DST_OBSOLETE_FORCE_CHK to force all XFRM destinations to
         * get validated by dst_ops->check on every use.  We do this
         * because when a normal route referenced by an XFRM dst is