From: Vlad Yasevich <vyasevich@gmail.com>
To: David Laight <David.Laight@ACULAB.COM>,
'David Miller' <davem@davemloft.net>,
"makita.toshiaki@lab.ntt.co.jp" <makita.toshiaki@lab.ntt.co.jp>
Cc: "stephen@networkplumber.org" <stephen@networkplumber.org>,
"vyasevic@redhat.com" <vyasevic@redhat.com>,
"bridge@lists.linux-foundation.org"
<bridge@lists.linux-foundation.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [Bridge] [PATCH v2 net-next] bridge: Fix incorrect judgment of promisc
Date: Fri, 06 Jun 2014 10:13:29 -0400 [thread overview]
Message-ID: <5391CC89.1030104@gmail.com> (raw)
In-Reply-To: <063D6719AE5E284EB5DD2968C1650D6D1725853E@AcuExch.aculab.com>
On 06/06/2014 04:48 AM, David Laight wrote:
> From: David Miller [mailto:davem@davemloft.net]
>>> br_manage_promisc() incorrectly expects br_auto_port() to return only 0
>>> or 1, while it actually returns flags, i.e., a subset of BR_AUTO_MASK.
>>>
>>> Signed-off-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
>>
>> I'm applying this as-is for now, even though I saw the other
>> suggestions in this thread (which BTW didn't get picked up by
>> patchwork, maybe some of you dropped the Message-Id in your replies by
>> accident).
>
> I don't have a problem with that.
> The condition looks odd, but it is enabling promiscuous mode
> if any other ports are in 'auto' mode.
No, the condition is correct and explicit. The cases are:
0 auto ports == all ports are statically configured and non-promisc.
1 auto port == only this port can be non-promisc. all others promisc.
> 1 auto port == all ports promisc.
-vlad
> Possibly the comment above made that clear, but it was truncated
> in the diffs.
>
> David
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
WARNING: multiple messages have this Message-ID (diff)
From: Vlad Yasevich <vyasevich@gmail.com>
To: David Laight <David.Laight@ACULAB.COM>,
'David Miller' <davem@davemloft.net>,
"makita.toshiaki@lab.ntt.co.jp" <makita.toshiaki@lab.ntt.co.jp>
Cc: "stephen@networkplumber.org" <stephen@networkplumber.org>,
"vyasevic@redhat.com" <vyasevic@redhat.com>,
"bridge@lists.linux-foundation.org"
<bridge@lists.linux-foundation.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [PATCH v2 net-next] bridge: Fix incorrect judgment of promisc
Date: Fri, 06 Jun 2014 10:13:29 -0400 [thread overview]
Message-ID: <5391CC89.1030104@gmail.com> (raw)
In-Reply-To: <063D6719AE5E284EB5DD2968C1650D6D1725853E@AcuExch.aculab.com>
On 06/06/2014 04:48 AM, David Laight wrote:
> From: David Miller [mailto:davem@davemloft.net]
>>> br_manage_promisc() incorrectly expects br_auto_port() to return only 0
>>> or 1, while it actually returns flags, i.e., a subset of BR_AUTO_MASK.
>>>
>>> Signed-off-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
>>
>> I'm applying this as-is for now, even though I saw the other
>> suggestions in this thread (which BTW didn't get picked up by
>> patchwork, maybe some of you dropped the Message-Id in your replies by
>> accident).
>
> I don't have a problem with that.
> The condition looks odd, but it is enabling promiscuous mode
> if any other ports are in 'auto' mode.
No, the condition is correct and explicit. The cases are:
0 auto ports == all ports are statically configured and non-promisc.
1 auto port == only this port can be non-promisc. all others promisc.
> 1 auto port == all ports promisc.
-vlad
> Possibly the comment above made that clear, but it was truncated
> in the diffs.
>
> David
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2014-06-06 14:13 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-05 11:53 [Bridge] [PATCH v2 net-next] bridge: Fix incorrect judgment of promisc Toshiaki Makita
2014-06-05 11:53 ` Toshiaki Makita
2014-06-05 12:30 ` [Bridge] " Michael S. Tsirkin
2014-06-05 12:30 ` Michael S. Tsirkin
2014-06-05 13:01 ` [Bridge] " Toshiaki Makita
2014-06-05 13:01 ` Toshiaki Makita
2014-06-05 14:57 ` [Bridge] " Vlad Yasevich
2014-06-05 14:57 ` Vlad Yasevich
2014-06-05 22:21 ` [Bridge] " David Miller
2014-06-05 22:21 ` David Miller
2014-06-06 8:48 ` [Bridge] " David Laight
2014-06-06 8:48 ` David Laight
2014-06-06 14:13 ` Vlad Yasevich [this message]
2014-06-06 14:13 ` Vlad Yasevich
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=5391CC89.1030104@gmail.com \
--to=vyasevich@gmail.com \
--cc=David.Laight@ACULAB.COM \
--cc=bridge@lists.linux-foundation.org \
--cc=davem@davemloft.net \
--cc=makita.toshiaki@lab.ntt.co.jp \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.org \
--cc=vyasevic@redhat.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.