]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ip6_tunnel: use generic for_each_ip_tunnel_rcu macro
authorYue Haibing <yuehaibing@huawei.com>
Fri, 3 Apr 2026 08:46:19 +0000 (16:46 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 7 Apr 2026 01:41:03 +0000 (18:41 -0700)
commit2f60df9e61aa48bf40c36254bf2e839f09cffd98
tree1823a78b5108cdb1107b4bd9fe5e53f7928eb6bb
parent8a4e3ab61d496c37595219e5122d91f204cb05de
ip6_tunnel: use generic for_each_ip_tunnel_rcu macro

Remove the locally defined for_each_ip6_tunnel_rcu macro and use
the generic for_each_ip_tunnel_rcu from linux/if_tunnel.h instead.

This eliminates code duplication and ensures consistency across
the kernel tunnel implementations.

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260403084619.4107978-1-yuehaibing@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/ip6_tunnel.c