From: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
To: Tom Gundersen <teg@jklm.no>
Cc: netdev <netdev@vger.kernel.org>,
bridge <bridge@lists.linux-foundation.org>,
"C. R. Oldham" <cr@saltstack.com>
Subject: Re: [BUG?] bridge_id not getting set for bridges created with
Date: Thu, 24 Apr 2014 21:06:17 +0900 [thread overview]
Message-ID: <1398341177.4171.11.camel@ubuntu-vm-makita> (raw)
In-Reply-To: <CAG-2HqU2f+4i3ttLSeitwr15=cVyin9VT+UrQvKC9pMV04fW7Q@mail.gmail.com>
On Mon, 2014-04-21 at 22:56 +0200, Tom Gundersen wrote:
> On Mon, Apr 21, 2014 at 9:33 PM, Tom Gundersen <teg@jklm.no> wrote:
> > Hi,
> >
> > If IFLA_ADDRESS is set when creating a bridge over netlink, e.g.
> >
> > # ip link add test-bridge address b6:83:a2:b3:2f:0e type bride
> >
> > the bridge id is not set:
> >
> > # brctl show
> > bridge name bridge id STP enabled interfaces
> > bridge1 8000.000000000000 no
>
> My example was incomplete. To see the bug one should of course first
> add an interface to the bridge:
>
> # brctl addif bridge1 eth0
>
>
> and observe that the bridge id remains unset:
>
> # brctl show
> bridge name bridge id STP enabled interfaces
> bridge1 8000.000000000000 no eth0
>
>
>
> If bridge1 had been created without specifying the mac address the
> result is as expected:
>
> # brctl show
> bridge name bridge id STP enabled interfaces
> bridge1 8000.28d244547cdb no eth0
>
Hi.
This seems to be a bug.
What's worse is that local fdb entry won't be created and we will not be
able to receive frames on the bridge device...
rtnl_create_link() doesn't call ndo_set_mac_address but populates
dev->dev_addr by itself. I'm not sure if it is safe to call
ndo_set_mac_address in this function (maybe affects other drivers). I
think this can be handled in bridge codes (br_link_ops->newlink).
I'm submitting a patch to fix this.
Thanks,
Toshiaki Makita
next prev parent reply other threads:[~2014-04-24 12:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-21 19:33 [BUG?] bridge_id not getting set for bridges created with Tom Gundersen
2014-04-21 20:56 ` Tom Gundersen
2014-04-24 12:06 ` Toshiaki Makita [this message]
2014-04-24 12:16 ` [PATCH net] bridge: Handle IFLA_ADDRESS correctly when creating bridge device Toshiaki Makita
2014-04-24 16:04 ` Tom Gundersen
2014-04-25 8:18 ` Toshiaki Makita
2014-04-24 18:38 ` Stephen Hemminger
2014-04-25 7:54 ` Toshiaki Makita
2014-04-25 8:01 ` [PATCH net v2] " Toshiaki Makita
2014-04-27 23:54 ` David Miller
2014-04-24 12:30 ` Unsubscribe me in this Forum Amidu Sila
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=1398341177.4171.11.camel@ubuntu-vm-makita \
--to=makita.toshiaki@lab.ntt.co.jp \
--cc=bridge@lists.linux-foundation.org \
--cc=cr@saltstack.com \
--cc=netdev@vger.kernel.org \
--cc=teg@jklm.no \
/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).