From: Vincent Bernat <vincent@bernat.im>
To: Roopa Prabhu <roopa@cumulusnetworks.com>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
bridge@lists.linux-foundation.org,
David Miller <davem@davemloft.net>,
David Ahern <dsahern@gmail.com>
Subject: Re: [Bridge] [PATCH net-next v2] bridge: also trigger RTM_NEWLINK when interface is released from bridge
Date: Thu, 21 Sep 2017 15:31:35 -0000 [thread overview]
Message-ID: <87vakc3w6j.fsf@luffy.cx> (raw)
In-Reply-To: <CAJieiUgKO-O3YFc3iTQXMmXc287RGgw4FjYhaLn-7+pmA_Fh+g@mail.gmail.com> (Roopa Prabhu's message of "Thu, 21 Sep 2017 08:09:28 -0700")
❦ 21 septembre 2017 08:09 -0700, Roopa Prabhu <roopa@cumulusnetworks.com> :
>>> The one concern is that ports added or removed through ioctl should
>>> cause same events as doing the same thing via netlink. Some users use
>>> brctl (ioctl) and others use newer bridge (netlink) API.
>>
>> I'll make a third iteration to have the same notifications when using
>> ioctl() with details in the commit message.
>> --
>
> as long as the ioctl path for bridge port removal is generating a:
> RTM_DELLINK with AF_BRIDGE and
> RTM_NEWLINK with AF_UNSPEC with 'master' removed
>
> we should be good. These are the most important ones.
>
> are there other specific bridge-events missing ?. you might want to
> run `bridge monitor link` also. and un-slaving of a port also triggers
> fdb events which are visible under `bridge monitor fdb`
With the patch, bridge monitor link generates the same event with
ioctl() than with netlink (like for ip monitor link, netlink generates
one extra duplicate event when enslaving).
For bridge monitor fdb, there is a difference. With ioctl(), I don't get
the event for VLAN1:
Deleted ca:18:06:bc:f6:11 dev dummy1 vlan 1 master bridge0 permanent
I suppose this is an expected difference due to the inability to manage
VLAN-aware bridges with ioctl().
--
Use the fundamental control flow constructs.
- The Elements of Programming Style (Kernighan & Plauger)
WARNING: multiple messages have this Message-ID (diff)
From: Vincent Bernat <vincent@bernat.im>
To: Roopa Prabhu <roopa@cumulusnetworks.com>
Cc: Stephen Hemminger <stephen@networkplumber.org>,
David Ahern <dsahern@gmail.com>,
David Miller <davem@davemloft.net>,
bridge@lists.linux-foundation.org,
"netdev\@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [PATCH net-next v2] bridge: also trigger RTM_NEWLINK when interface is released from bridge
Date: Thu, 21 Sep 2017 17:31:32 +0200 [thread overview]
Message-ID: <87vakc3w6j.fsf@luffy.cx> (raw)
In-Reply-To: <CAJieiUgKO-O3YFc3iTQXMmXc287RGgw4FjYhaLn-7+pmA_Fh+g@mail.gmail.com> (Roopa Prabhu's message of "Thu, 21 Sep 2017 08:09:28 -0700")
❦ 21 septembre 2017 08:09 -0700, Roopa Prabhu <roopa@cumulusnetworks.com> :
>>> The one concern is that ports added or removed through ioctl should
>>> cause same events as doing the same thing via netlink. Some users use
>>> brctl (ioctl) and others use newer bridge (netlink) API.
>>
>> I'll make a third iteration to have the same notifications when using
>> ioctl() with details in the commit message.
>> --
>
> as long as the ioctl path for bridge port removal is generating a:
> RTM_DELLINK with AF_BRIDGE and
> RTM_NEWLINK with AF_UNSPEC with 'master' removed
>
> we should be good. These are the most important ones.
>
> are there other specific bridge-events missing ?. you might want to
> run `bridge monitor link` also. and un-slaving of a port also triggers
> fdb events which are visible under `bridge monitor fdb`
With the patch, bridge monitor link generates the same event with
ioctl() than with netlink (like for ip monitor link, netlink generates
one extra duplicate event when enslaving).
For bridge monitor fdb, there is a difference. With ioctl(), I don't get
the event for VLAN1:
Deleted ca:18:06:bc:f6:11 dev dummy1 vlan 1 master bridge0 permanent
I suppose this is an expected difference due to the inability to manage
VLAN-aware bridges with ioctl().
--
Use the fundamental control flow constructs.
- The Elements of Programming Style (Kernighan & Plauger)
next prev parent reply other threads:[~2017-09-21 15:31 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-15 19:38 [PATCH net-next v1] bridge: also trigger RTM_NEWLINK when interface is released from bridge Vincent Bernat
2017-09-15 19:47 ` [Bridge] " Vincent Bernat
2017-09-15 21:08 ` Vincent Bernat
2017-09-15 21:17 ` [Bridge] " Vincent Bernat
2017-09-16 14:18 ` [PATCH net-next v2] " Vincent Bernat
2017-09-16 14:18 ` [Bridge] " Vincent Bernat
2017-09-20 21:09 ` David Miller
2017-09-20 21:09 ` David Miller
2017-09-20 21:57 ` [Bridge] " David Ahern
2017-09-20 21:57 ` David Ahern
2017-09-20 22:12 ` Vincent Bernat
2017-09-20 22:13 ` [Bridge] " Vincent Bernat
2017-09-20 22:41 ` David Miller
2017-09-20 22:41 ` David Miller
2017-09-20 23:21 ` [Bridge] " Stephen Hemminger
2017-09-20 23:21 ` Stephen Hemminger
2017-09-21 10:04 ` Vincent Bernat
2017-09-21 10:04 ` [Bridge] " Vincent Bernat
2017-09-21 15:09 ` Roopa Prabhu
2017-09-21 15:09 ` Roopa Prabhu
2017-09-21 15:31 ` Vincent Bernat [this message]
2017-09-21 15:31 ` [Bridge] " Vincent Bernat
2017-09-21 10:05 ` [net-next v3] bridge: trigger RTM_NEWLINK when interface is modified by bridge ioctl Vincent Bernat
2017-09-21 10:05 ` [Bridge] " Vincent Bernat
2017-09-21 15:15 ` Stephen Hemminger
2017-09-21 15:15 ` Stephen Hemminger
2017-09-21 15:45 ` Vincent Bernat
2017-09-21 15:45 ` [Bridge] " Vincent Bernat
2017-09-21 16:43 ` David Ahern
2017-09-21 16:43 ` David Ahern
2017-09-21 17:20 ` [Bridge] " Roopa Prabhu
2017-09-21 17:20 ` Roopa Prabhu
2017-09-21 17:29 ` [Bridge] " David Ahern
2017-09-21 17:29 ` David Ahern
2017-09-21 22:45 ` [Bridge] " David Miller
2017-09-21 22:45 ` David Miller
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=87vakc3w6j.fsf@luffy.cx \
--to=vincent@bernat.im \
--cc=bridge@lists.linux-foundation.org \
--cc=davem@davemloft.net \
--cc=dsahern@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=roopa@cumulusnetworks.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.