From: Edward Cree <ecree.xilinx@gmail.com>
To: Fernando Fernandez Mancera <fmancera@suse.de>, netdev@vger.kernel.org
Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>,
open list <linux-kernel@vger.kernel.org>,
"open list:SFC NETWORK DRIVER" <linux-net-drivers@amd.com>
Subject: Re: [PATCH 05/10 net-next v2] drivers: net: drop ipv6_stub usage and use direct function calls
Date: Fri, 13 Mar 2026 12:07:13 +0000 [thread overview]
Message-ID: <9748039f-3bba-4420-8da9-7644022d1ffc@gmail.com> (raw)
In-Reply-To: <20260310153506.5181-6-fmancera@suse.de>
On 10/03/2026 15:34, Fernando Fernandez Mancera wrote:
> As IPv6 is built-in only, the ipv6_stub infrastructure is no longer
> necessary.
>
> Convert all drivers currently utilizing ipv6_stub to make direct
> function calls. The fallback functions introduced previously will
> prevent linkage errors when CONFIG_IPV6 is disabled.
>
> Signed-off-by: Fernando Fernandez Mancera <fmancera@suse.de>
...
> diff --git a/drivers/net/ethernet/sfc/tc_counters.c b/drivers/net/ethernet/sfc/tc_counters.c
> index d168282f30bf..d8a5f9fd1007 100644
> --- a/drivers/net/ethernet/sfc/tc_counters.c
> +++ b/drivers/net/ethernet/sfc/tc_counters.c
> @@ -112,7 +112,7 @@ static void efx_tc_counter_work(struct work_struct *work)
> encap->neigh->egdev);
> else
> #if IS_ENABLED(CONFIG_IPV6)
> - n = neigh_lookup(ipv6_stub->nd_tbl,
> + n = neigh_lookup(ipv6_get_nd_tbl(),
> &encap->neigh->dst_ip6,
> encap->neigh->egdev);
> #else
> diff --git a/drivers/net/ethernet/sfc/tc_encap_actions.c b/drivers/net/ethernet/sfc/tc_encap_actions.c
> index da35705cc5e1..63d8f794b869 100644
> --- a/drivers/net/ethernet/sfc/tc_encap_actions.c
> +++ b/drivers/net/ethernet/sfc/tc_encap_actions.c
> @@ -149,8 +149,7 @@ static int efx_bind_neigh(struct efx_nic *efx,
> #if IS_ENABLED(CONFIG_IPV6)
> struct dst_entry *dst;
>
> - dst = ipv6_stub->ipv6_dst_lookup_flow(net, NULL, &flow6,
> - NULL);
> + dst = ip6_dst_lookup_flow(net, NULL, &flow6, NULL);
> rc = PTR_ERR_OR_ZERO(dst);
> if (rc) {
> NL_SET_ERR_MSG_MOD(extack, "Failed to lookup route for IPv6 encap");
> @@ -531,7 +530,7 @@ static int efx_neigh_event(struct efx_nic *efx, struct neighbour *n)
> if (n->tbl == &arp_tbl) {
> keysize = sizeof(keys.dst_ip);
> #if IS_ENABLED(CONFIG_IPV6)
> - } else if (n->tbl == ipv6_stub->nd_tbl) {
> + } else if (n->tbl == ipv6_get_nd_tbl()) {
> ipv6 = true;
> keysize = sizeof(keys.dst_ip6);
> #endif
# for sfc:
Reviewed-by: Edward Cree <ecree.xilinx@gmail.com>
next prev parent reply other threads:[~2026-03-13 12:07 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-10 15:34 [PATCH 00/10 net-next v2] Convert CONFIG_IPV6 to built-in and remove stubs Fernando Fernandez Mancera
2026-03-10 15:34 ` [PATCH 01/10 net-next v2] ipv6: convert CONFIG_IPV6 to built-in only and clean up Kconfigs Fernando Fernandez Mancera
2026-03-12 3:02 ` Jakub Kicinski
2026-03-12 15:12 ` Fernando Fernandez Mancera
2026-03-12 16:05 ` Geert Uytterhoeven
2026-03-12 7:43 ` Geert Uytterhoeven
2026-03-16 15:44 ` Krzysztof Kozlowski
2026-03-10 15:34 ` [PATCH 02/10 net-next v2] ipv6: replace IS_BUILTIN(CONFIG_IPV6) with IS_ENABLED(CONFIG_IPV6) Fernando Fernandez Mancera
2026-03-10 15:34 ` [PATCH 03/10 net-next v2] ipv6: remove dynamic ICMPv6 sender registration infrastructure Fernando Fernandez Mancera
2026-03-10 15:34 ` [PATCH 04/10 net-next v2] ipv6: prepare headers for ipv6_stub removal Fernando Fernandez Mancera
2026-03-10 16:50 ` David Ahern
2026-03-10 15:34 ` [PATCH 05/10 net-next v2] drivers: net: drop ipv6_stub usage and use direct function calls Fernando Fernandez Mancera
2026-03-12 13:48 ` Jason A. Donenfeld
2026-03-13 10:54 ` Antonio Quartulli
2026-03-13 12:07 ` Edward Cree [this message]
2026-03-10 15:34 ` [PATCH 06/10 net-next v2] ipv4: " Fernando Fernandez Mancera
2026-03-10 15:34 ` [PATCH 07/10 net-next v2] net: convert remaining ipv6_stub users to " Fernando Fernandez Mancera
2026-03-10 15:34 ` [PATCH 08/10 net-next v2] bpf: remove ipv6_bpf_stub completely and use " Fernando Fernandez Mancera
2026-03-12 10:12 ` Daniel Borkmann
2026-03-10 15:34 ` [PATCH 09/10 net-next v2] ipv6: remove ipv6_stub infrastructure completely Fernando Fernandez Mancera
2026-03-10 15:34 ` [PATCH 10/10 net-next v2] netfilter: remove nf_ipv6_ops and use direct function calls Fernando Fernandez Mancera
2026-03-10 18:08 ` [PATCH 00/10 net-next v2] Convert CONFIG_IPV6 to built-in and remove stubs Ricardo B. Marlière
2026-03-12 3:01 ` Jakub Kicinski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9748039f-3bba-4420-8da9-7644022d1ffc@gmail.com \
--to=ecree.xilinx@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=fmancera@suse.de \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net-drivers@amd.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox