public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn•ch>
To: Vitaly Kuznetsov <vkuznets@redhat•com>
Cc: ???????????? <hideaki.yoshifuji@miraclelinux•com>,
	network dev <netdev@vger•kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger•kernel.org>,
	"David S. Miller" <davem@davemloft•net>,
	Eric Dumazet <edumazet@google•com>,
	Stephen Hemminger <stephen@networkplumber•org>
Subject: Re: [PATCH RFC net-next] net: Allow name change of IFF_UP interfaces
Date: Thu, 10 Aug 2017 16:10:18 +0200	[thread overview]
Message-ID: <20170810141018.GC24790@lunn.ch> (raw)
In-Reply-To: <871sojyfv0.fsf@vitty.brq.redhat.com>

> >> Can you think of any particular real world scenarios which are broken by
> >> the change?
> >
> > How about:
> >
> > man 8 dhclient-script
> >
> > The interface name is passed in $interface to the scripts. Do we get
> > the old name or the new name? I suspect scripts are going to break if
> > they are given the old name, which no longer exists.
> 
> Yes but why would anyone change interface name while dhclient-script is
> running? Things will also go wrong if you try bringing interface down
> during the run or do some other configuration, right?

dhclient already handles the interface going down. sendto/recvfrom
fails and returns an error code. As far as i remember, dhclient then
exits.

> Running multiple configuration tools at the same moment is a bad
> idea, you never know what you're gonna end up with.

It could be argued that configuring an interface vs renaming an
interface are at different levels.

	  Andrew

      parent reply	other threads:[~2017-08-10 14:10 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-09 10:42 [PATCH RFC net-next] net: Allow name change of IFF_UP interfaces Vitaly Kuznetsov
2017-08-09 12:29 ` 吉藤英明
2017-08-09 15:05   ` Vitaly Kuznetsov
2017-08-09 16:10     ` Andrew Lunn
2017-08-10  8:41       ` Vitaly Kuznetsov
2017-08-10  9:03         ` Eric Dumazet
2017-08-10 10:01           ` Vitaly Kuznetsov
2017-08-10 14:13             ` Andrew Lunn
2017-08-10 15:24               ` Vitaly Kuznetsov
2017-08-10 16:27                 ` Andrew Lunn
2017-08-10 16:33                   ` Vitaly Kuznetsov
2017-08-10 16:48                   ` David Miller
2017-08-10 16:55                     ` David Ahern
2017-08-10 17:16                       ` Stephen Hemminger
2017-08-11  9:01                         ` Vitaly Kuznetsov
2017-08-10 14:10         ` Andrew Lunn [this message]

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=20170810141018.GC24790@lunn.ch \
    --to=andrew@lunn$(echo .)ch \
    --cc=davem@davemloft$(echo .)net \
    --cc=edumazet@google$(echo .)com \
    --cc=hideaki.yoshifuji@miraclelinux$(echo .)com \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=stephen@networkplumber$(echo .)org \
    --cc=vkuznets@redhat$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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