[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c1266298-8833-4bef-9ac5-6c61ba4dd0c6@gmail.com>
Date: Fri, 25 Apr 2025 11:21:34 -0700
From: David Ahern <dsahern@...il.com>
To: Ido Schimmel <idosch@...dia.com>, Ferenc Fejes <ferenc@...es.dev>
Cc: netdev <netdev@...r.kernel.org>, kuniyu@...zon.com
Subject: Re: [question] robust netns association with fib4 lookup
On 4/25/25 11:17 AM, Ido Schimmel wrote:
>> Is there any other way to get the netns info for fib4 lookups? If not, would it
>> be worth an RFC to pass the struct net argument to fib_table_lookup as well, as
>> is currently done in fib6_table_lookup?
>
> I think it makes sense to make both tracepoints similar and pass the net
> argument to trace_fib_table_lookup()
>
>> Unfortunately this includes some callers to fib_table_lookup. The
>> netns id would also be presented in the existing tracepoints ([1] and
>> [2]). Thanks in advance for any suggestion.
>
> By "netns id" you mean the netns cookie? It seems that some TCP trace
> events already expose it (see include/trace/events/tcp.h). It would be
> nice to finally have "perf" filter these FIB events based on netns.
>
> David, any objections?
none from me. I was looking at the code last night and going to suggest
either plumbing net all the way down or add net to the fib table struct.
Powered by blists - more mailing lists