Subject: Re: [PATCH 04/10 net-next v3] ipv6: prepare headers for ipv6_stub removal

From: Ido Schimmel <[email-masked]>
Date: Tue, 17 Mar 2026 22:12:36 +0200

On Tue, Mar 17, 2026 at 03:01:00PM +0100, Fernando Fernandez Mancera wrote:
> diff --git a/include/net/ndisc.h b/include/net/ndisc.h
> index d38783a2ce57..6152401f29f1 100644
> --- a/include/net/ndisc.h
> +++ b/include/net/ndisc.h
> @@ -69,6 +69,12 @@ struct prefix_info;
>  
>  extern struct neigh_table nd_tbl;
>  
> +#if IS_ENABLED(CONFIG_IPV6)
> +#define ipv6_get_nd_tbl() (&nd_tbl)
> +#else
> +#define ipv6_get_nd_tbl() NULL
> +#endif

What is the reason for converting code that is dependent on CONFIG_IPV6
to use ipv6_get_nd_tbl()?