Netdev Archive on lore.kernel.org
help / color / mirror / Atom feed
From: "Pali Rohár" <pali@kernel.org>
To: Andrew Lunn <andrew@lunn.ch>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: How to find out name or id of newly created interface
Date: Mon, 2 Aug 2021 19:25:39 +0200	[thread overview]
Message-ID: <20210802172539.2v3qnkjmp7l2qtxl@pali> (raw)
In-Reply-To: <YQf/UVmFEF2ihyKY@lunn.ch>

On Monday 02 August 2021 16:21:05 Andrew Lunn wrote:
> > Hello! This has additional issue that I have to choose some free ifindex
> > number and it introduce another race condition that other userspace
> > process may choose same ifindex number. So create request in this case
> > fails if other userspace process is faster... So it has same race
> > condition as specifying interface name.
> 
> O.K. if you don't want to deal with retries, you are going to have to
> modify the return value. The nice thing is, its netlink. So you can
> add additional attributes, and not break backwards compatibility. User
> space should ignore all attributes it does not expect.

Guillaume already proposed to implement NLM_F_ECHO...

> But i suspect the architecture of the code is not going to make it
> easy.
> 
> 	Andrew

  reply	other threads:[~2021-08-02 17:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-31 20:30 How to find out name or id of newly created interface Pali Rohár
2021-08-01 14:31 ` Andrew Lunn
2021-08-01 14:38   ` Pali Rohár
2021-08-02 14:21     ` Andrew Lunn
2021-08-02 17:25       ` Pali Rohár [this message]
2021-08-02 10:02 ` Guillaume Nault
2021-08-02 10:58   ` Pali Rohár
2021-08-02 13:43     ` Guillaume Nault
2021-08-02 17:23       ` Pali Rohár

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=20210802172539.2v3qnkjmp7l2qtxl@pali \
    --to=pali@kernel.org \
    --cc=andrew@lunn.ch \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).