Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [91.216.245.30]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0DAAB770FE for ; Thu, 12 Feb 2026 12:25:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.216.245.30 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770899160; cv=none; b=axLbYvd7zx/GcYXRcI8tJYp7+HlfWHPhSZM8ydb+cDkvAN4A4rn5KHoR2IK/tJuE/Q9bLAiTA1971iCko4b2coK3HYwvlEh40IPRjZ2zV5/P8VDEVT+jDBvfvCp8LTtnZyYNFYoOC6DGk4hcwvjPpz4XpEBkB9O/Hsr16mktn/Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770899160; c=relaxed/simple; bh=b1/kmZXqfvxCOxzyBd8JGL4l2YmQRfIbLtDvDM053Ls=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RA7Ko1tEzoPItxiT7h/gEx1JGNwYEMmP6exSAzPFIifB0GgcfFKXQFK5yblysmj0ifLPkrp1ow/jezlo8QL5U5hWVMpuf4VeMXml6db0+Wh6mzTn9PuVrHVMGjwvXh55g1B2PoEwmKHx8glncLns4bxQ7wnHuLA85I5UhbQgIh4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=strlen.de; spf=pass smtp.mailfrom=Chamillionaire.breakpoint.cc; arc=none smtp.client-ip=91.216.245.30 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=strlen.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=Chamillionaire.breakpoint.cc Received: by Chamillionaire.breakpoint.cc (Postfix, from userid 1003) id 269A76063D; Thu, 12 Feb 2026 13:25:57 +0100 (CET) From: Florian Westphal To: Cc: Florian Westphal Subject: [PATCH nf-next 1/2] ipv6: export fib6_lookup for nft_fib_ipv6 Date: Thu, 12 Feb 2026 13:25:08 +0100 Message-ID: <20260212122547.10437-2-fw@strlen.de> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260212122547.10437-1-fw@strlen.de> References: <20260212122547.10437-1-fw@strlen.de> Precedence: bulk X-Mailing-List: netfilter-devel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Next patch will call fib6_lookup from nft_fib_ipv6. Alternative is to use an indirect call via ipv6_stub->fib6_lookup(), but thats more expensive than a direct call. Also, nft_fib_ipv6 cannot be builtin if ipv6 is a module. Signed-off-by: Florian Westphal --- net/ipv6/fib6_rules.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/ipv6/fib6_rules.c b/net/ipv6/fib6_rules.c index fd5f7112a51f..e1b2b4fa6e18 100644 --- a/net/ipv6/fib6_rules.c +++ b/net/ipv6/fib6_rules.c @@ -92,6 +92,9 @@ int fib6_lookup(struct net *net, int oif, struct flowi6 *fl6, return err; } +#if IS_MODULE(CONFIG_NFT_FIB_IPV6) +EXPORT_SYMBOL_GPL(fib6_lookup); +#endif struct dst_entry *fib6_rule_lookup(struct net *net, struct flowi6 *fl6, const struct sk_buff *skb, -- 2.52.0