From: Dan Williams <dcbw@redhat.com>
To: David Miller <davem@davemloft.net>
Cc: stephen@networkplumber.org, netdev@vger.kernel.org
Subject: Re: [RFC PATCH] bridge: remove !IFF_UP restriction when deleting bridge from ioctl
Date: Fri, 04 Apr 2014 10:15:50 -0500 [thread overview]
Message-ID: <1396624550.15118.11.camel@dcbw.local> (raw)
In-Reply-To: <20140404.110800.1665495271585798396.davem@davemloft.net>
On Fri, 2014-04-04 at 11:08 -0400, David Miller wrote:
> From: Dan Williams <dcbw@redhat.com>
> Date: Fri, 04 Apr 2014 09:56:22 -0500
>
> > netlink doesn't care about IFF_UP when deleting a bridge, so "ip link
> > del br0" works just fine. The ioctl does care, which means that brctl
> > complains "bridge br0 still up; can't delete it". Make things
> > consistent by always allowing bridge deletion even if the bridge is up.
> >
> > Signed-off-by: Dan Williams <dcbw@redhat.com>
> > ---
> > Question: does anyone consider the ioctl behavior API? Can we change it
> > even though it's been this way forever? It means that bridges that
> > previously would not have been deleted by brctl will now be deleted.
> > But anyone using /sbin/ip could already delete them.
>
> Unfortunately I think we're stuck with the existing behavior.
Ok, fair enough.
Dan
next prev parent reply other threads:[~2014-04-04 15:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-04 14:56 [RFC PATCH] bridge: remove !IFF_UP restriction when deleting bridge from ioctl Dan Williams
2014-04-04 15:08 ` David Miller
2014-04-04 15:15 ` Dan Williams [this message]
2014-04-04 17:23 ` Stephen Hemminger
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=1396624550.15118.11.camel@dcbw.local \
--to=dcbw@redhat.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.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