Article View: linux.kernel.netdev
Article #1705Re: [PATCH net-next v2 2/3] ipv4: Pass netns to fib_table_lookup()
From: David Ahern
Date: Sat, 10 Oct 2026 13:34
Date: Sat, 10 Oct 2026 13:34
31 lines
6693 bytes
6693 bytes
On 10/8/26 7:31 AM, Ido Schimmel wrote: > The next patch will report the network namespace cookie in the > fib_table_lookup tracepoint. As a preparation, pass the namespace to > fib_table_lookup() and from there to the tracepoint, like the > fib6_table_lookup tracepoint. All the callers already have the namespace > at hand. > > Add the namespace as the last tracepoint argument so that the positions > of the existing arguments do not change and BPF programs that attach to > the raw tracepoint are not affected. > > No functional changes intended. > > Assisted-by: LLM > Reviewed-by: Petr Machata <petrm@nvidia.com> > Reviewed-by: Ferenc Fejes <ferenc@fejes.dev> > Signed-off-by: Ido Schimmel <idosch@nvidia.com> > --- > include/net/ip_fib.h | 12 +++++++----- > include/trace/events/fib.h | 5 +++-- > net/core/filter.c | 2 +- > net/ipv4/devinet.c | 3 ++- > net/ipv4/fib_frontend.c | 6 ++++-- > net/ipv4/fib_rules.c | 2 +- > net/ipv4/fib_semantics.c | 2 +- > net/ipv4/fib_trie.c | 14 ++++++++------ > 8 files changed, 27 insertions(+), 19 deletions(-) > Reviewed-by: David Ahern <dsahern@kernel.org>
Technical Details
Message-ID:
<0caf7eb8-e4de-40cd-bd5a-c1a1d96a82a1@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-344210-linux-kernel-netdev=dewy.ruReferences:
<20261008133158.1438907-1-idosch@nvidia.com> <20261008133158.1438907-3-idosch@nvidia.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-344210-linux-kernel-netdev=dewy.ru From: dsahern@kernel.org (David Ahern) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v2 2/3] ipv4: Pass netns to fib_table_lookup() Date: Sat, 10 Oct 2026 07:34:04 -0600 Organization: Usenet Network Message-ID: <0caf7eb8-e4de-40cd-bd5a-c1a1d96a82a1@kernel.org> References: <20261008133158.1438907-1-idosch@nvidia.com> <20261008133158.1438907-3-idosch@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="1340600"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:QmL3ZwRQL+w/Cqe7dYunid0ncPM= sha256:3EBeHTuy0pgXU5ltsw0vtZheVIYzu48DV8oxA+WjrzM= sha1:OtYB9E+gS++MH2dwq7iPf552akU= sha256:zwpOXRJjgFOsC6hiJgRFWB3sd5SDAHHLxZIk0SV/eWc= Content-Language: en-US List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id AF7C210F8EE; Sat, 10 Oct 2026 16:34:14 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.641 X-Spam-Status: No, score=-3.641 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.241, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZGbrDYeA_rGw; Sat, 10 Oct 2026 16:34:11 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-344210-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 9A7FC10F8E9; Sat, 10 Oct 2026 16:34:08 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id 813A72CC7B; Sat, 10 Oct 2026 13:34:07 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 19B25368D47; Sat, 10 Oct 2026 13:34:07 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UMwEYkCA" X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 1268A298CAB for <netdev@vger.kernel.org>; Sat, 10 Oct 2026 13:34:05 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791639247; cv=none; b=FbRXkjMFgthGwgnL7NRctEiseRmcCdJYul2t6JI5Z60BqGlAY+PGDwmo9h8oaM6yBrdPrQQlRmAt0tC/lZKCMgK6O0UESK80IELP+WHGZy7YBZrxyStncx4cPBPl4Pt8uDYuM3fT5MrRp41k7gJ79GLgzAdFV+X1px15NTZwUmk= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791639247; c=relaxed/simple; bh=0FW8t9ZBkQy3zNJDOFSQlfapGF7siBhBw9CMgFYWLpg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=o/HwygcBtQ7vkBFqDIBr3dPWwQX31Fo/uvqxydPLwXG+TwCoWeXYoQVcIIpJFlzT0ULUd2kFxI2ck+ea/+z5lfjEvEJ+tI67WaoQWySQzEibcu9XUJuuABk51yOjmbdcgUf5Ce4dIsc9Ac3733hNkeZprXvQADEm7qvKqPxGEYQ= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UMwEYkCA; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id F209E1F000FF; Sat, 10 Oct 2026 13:34:04 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1791639245; bh=EkUlwaVc4wdGZN8BMKhaD2tkYCp4SyIbCRE5qKkmCSI=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=UMwEYkCAMw2JrYA4jW4ZlpP7ErkWoCYKgnDeZ6uMhZMwpdtaGM4oCkrQvu8L5Xhtr aYBLdyl2kDsIsbPdSXnB3fwgCYntDIM8xf+q0SqVFg8sRqaGqNG4P0B8tmptkIhzXv cB95Cip2qL8MWb1eOgYYzPrBphZB0+LzBFd/qoLYE6h+yedzPzTXMk8XUbKgm/bYDR YJS3Cc8edTKjln+tD+kt3e6hjPtjjGB7t9B3Np/h5guftQFJ4vsbS8b0xZ08TLaNhZ XRoTX2CB6nw1GZ9Y51eTcQitAqjolOAn9oPUWNbEftZJlm8j+w3ELVyXt5Nyj5VYPr aN2aH823nBpuw== X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-User-Agent: Mozilla Thunderbird X-Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, edumazet@kernel.org, horms@kernel.org, rostedt@goodmis.org, mhiramat@kernel.org, mathieu.desnoyers@efficios.com, daniel@iogearbox.net, petrm@nvidia.com, ferenc@fejes.dev X-In-Reply-To: <20261008133158.1438907-3-idosch@nvidia.com>