Re: [PATCH net-next] ip6_tunnel: use generic for_each_ip_tunnel_rcu macro
From: Simon Horman
Date: Mon Apr 06 2026 - 10:43:17 EST
On Fri, Apr 03, 2026 at 04:46:19PM +0800, Yue Haibing wrote:
> 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@xxxxxxxxxx>
> ---
> net/ipv6/ip6_tunnel.c | 9 +++------
> 1 file changed, 3 insertions(+), 6 deletions(-)
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>