netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org, Wilson Kok <wkok@cumulusnetworks.com>,
	stephen@networkplumber.org, bridge@lists.linux-foundation.org
Subject: Re: [PATCH net-next] bridge: skip fdb add if the port shouldn't learn
Date: Mon, 25 May 2015 13:41:20 +0200	[thread overview]
Message-ID: <CABQ03vG0FG5qs9EwjAeKoZv2k2Eez58v6oEjj4HoHY8wN8s34g@mail.gmail.com> (raw)
In-Reply-To: <20150524.225902.2017701461230237731.davem@davemloft.net>

On Mon, May 25, 2015 at 4:59 AM, David Miller <davem@davemloft.net> wrote:
> From: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
> Date: Thu, 21 May 2015 03:42:57 -0700
>
>> From: Wilson Kok <wkok@cumulusnetworks.com>
>>
>> Check in fdb_add_entry() if the source port should learn, similar
>> check is used in br_fdb_update.
>> Note that new fdb entries which are added manually or
>> as local ones are still permitted.
>> This patch has been tested by running traffic via a bridge port and
>> switching the port's state, also by manually adding/removing entries
>> from the bridge's fdb.
>>
>> Signed-off-by: Wilson Kok <wkok@cumulusnetworks.com>
>> Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
>> ---
>> Nik: Maybe it'd be better if we returned an error even though it
>>      doesn't look necessary. I'm open to suggestions.
>
> If you don't return an error, then rtnetlink.c is going to emit a
> NEWNEIGH netlink message.  I seriously doubt we want that to happen.

Thanks Dave, I was afraid I've missed something like that. I'll re-spin, test
and post a v2.

Nik

  parent reply	other threads:[~2015-05-25 11:41 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-21 10:42 [PATCH net-next] bridge: skip fdb add if the port shouldn't learn Nikolay Aleksandrov
2015-05-25  2:59 ` David Miller
2015-05-25 11:35   ` Nikolay Aleksandrov
2015-05-25 11:41   ` Nikolay Aleksandrov [this message]
2015-05-25 13:39 ` [PATCH net-next v2] " Nikolay Aleksandrov
2015-05-26 17:28 ` [PATCH net-next] " Stephen Hemminger
2015-05-27  7:05   ` Nikolay Aleksandrov
2015-05-27  7:59     ` Scott Feldman
2015-05-27  8:35       ` Nikolay Aleksandrov
2015-05-27 16:01         ` Scott Feldman
2015-05-27 16:14           ` Nikolay Aleksandrov
2015-05-27 20:41             ` Scott Feldman
2015-06-02 17:14           ` roopa
2015-06-03  5:57             ` Scott Feldman
2015-06-04  8:14               ` Nikolay Aleksandrov

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=CABQ03vG0FG5qs9EwjAeKoZv2k2Eez58v6oEjj4HoHY8wN8s34g@mail.gmail.com \
    --to=nikolay@cumulusnetworks.com \
    --cc=bridge@lists.linux-foundation.org \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=stephen@networkplumber.org \
    --cc=wkok@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 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).