netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Zhu Yanjun <Yanjun.Zhu@windriver.com>
To: <netdev@vger.kernel.org>, <davem@redhat.com>
Subject: [PATCH 0/1] bridge: turn off carrier when the bridge is created
Date: Tue, 10 Mar 2015 15:09:41 +0800	[thread overview]
Message-ID: <1425971382-14177-1-git-send-email-Yanjun.Zhu@windriver.com> (raw)

V2:
   From Stephen, 
   "This is intentional. If there are no active ports in bridge, then
    we want to tell applications that packets will go nowhere."

V1:
  I made this test on ubuntu 14.04 with kernel 3,19-rc7:

  1. brctl addbr br0

  2. ifconfig br0 up

  3. ifconfig br0 (br0's status is with 'RUNNING')

  4. brctl addif br0 eth0

  5. brctl delif br0 eth0

  6. ifconfig br0 (br0's status is without 'RUNNING')

  When there is no sub-interface, the flag "RUNNING" is missing after the last sub-interface is removed.

  As such, should we keep "RUNNING" flag after the last sub-interface is removed? 


Zhu Yanjun (1):
  bridge: turn off carrier when the bridge is created

 net/bridge/br_device.c | 4 ++++
 1 file changed, 4 insertions(+)

-- 
1.9.1

             reply	other threads:[~2015-03-10  7:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-10  7:09 Zhu Yanjun [this message]
2015-03-10  7:09 ` [PATCH 1/1] bridge: turn off carrier when the bridge is created Zhu Yanjun
2015-03-11  2:39   ` yzhu1
2015-03-11  4:03     ` David Miller
2015-03-11  5:26       ` Stephen Hemminger
2015-03-11  5:29         ` David Miller
2015-03-11  6:16         ` yzhu1

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=1425971382-14177-1-git-send-email-Yanjun.Zhu@windriver.com \
    --to=yanjun.zhu@windriver.com \
    --cc=davem@redhat.com \
    --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).