From: Ido Schimmel <idosch@idosch.org>
To: Tonghao Zhang <tonghao@bamaicloud.com>
Cc: Jakub Kicinski <kuba@kernel.org>,
netdev@vger.kernel.org, Eran Ben Elisha <eranbe@mellanox.com>,
Jiri Pirko <jiri@mellanox.com>,
Cong Wang <xiyou.wangcong@gmail.com>
Subject: Re: [PATCH net-next] net: add the ifindex for trace_net_dev_xmit_timeout
Date: Wed, 22 Oct 2025 13:45:35 +0300 [thread overview]
Message-ID: <aPi1z_frpBzpBPpa@shredder> (raw)
In-Reply-To: <27169B5F-3269-4075-89F4-FA7459241EB3@bamaicloud.com>
On Wed, Oct 22, 2025 at 04:31:34PM +0800, Tonghao Zhang wrote:
> > On Oct 22, 2025, at 08:10, Jakub Kicinski <kuba@kernel.org> wrote:
> >
> > On Tue, 21 Oct 2025 17:19:00 +0800 Tonghao Zhang wrote:
> >> In a multi-network card or container environment, provide more accurate information.
> >
> > Why do you think that ifindex is more accurate than the name?
> > Neither is unique with netns..
> I thought ifindex was globally unique, but in fact, different namespaces may have the same ifindex value. What about adding the ns.inum inode ?
The netns cookie is probably better. See this thread:
https://lore.kernel.org/netdev/c28ded3224734ca62187ed9a41f7ab39ceecb610.camel@fejes.dev/
You can also retrieve it by attaching a BPF program to the tracepoint.
next prev parent reply other threads:[~2025-10-22 10:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-21 9:19 [PATCH net-next] net: add the ifindex for trace_net_dev_xmit_timeout Tonghao Zhang
2025-10-22 0:10 ` Jakub Kicinski
2025-10-22 8:31 ` Tonghao Zhang
2025-10-22 10:45 ` Ido Schimmel [this message]
2025-10-22 13:23 ` Tonghao Zhang
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=aPi1z_frpBzpBPpa@shredder \
--to=idosch@idosch.org \
--cc=eranbe@mellanox.com \
--cc=jiri@mellanox.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=tonghao@bamaicloud.com \
--cc=xiyou.wangcong@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.