[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5373D4E2.1070904@cogentembedded.com>
Date: Thu, 15 May 2014 00:41:06 +0400
From: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
To: Vlad Yasevich <vyasevic@...hat.com>, netdev@...r.kernel.org
CC: bridge@...ts.linux-foundation.org, shemminger@...tta.com,
mst@...hat.com, john.r.fastabend@...el.com, jhs@...atatu.com
Subject: Re: [PATCH net-next 8/8] bridge: Automatically manage promisc mode
when vlan filtering is on.
Hello.
On 05/14/2014 07:09 PM, Vlad Yasevich wrote:
> If the user doesn't enable vlan filtering, we have to place all
> bridge ports in promsic mode so that we retain the capability of
> of receiving tagged frames.
> When vlan filtering is enabled, the each port will be provided with
> necessary vlan configuration and would be able to receive tagged
> traffic without promiscuous mode set, thus allowing us to automatically
> turn promiscuity on or off depending on the configuration.
> Signed-off-by: Vlad Yasevich <vyasevic@...hat.com>
> ---
> net/bridge/br_if.c | 12 ++++++++----
> net/bridge/br_private.h | 9 +++++++++
> net/bridge/br_vlan.c | 1 +
> 3 files changed, 18 insertions(+), 4 deletions(-)
> diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c
> index 7759144..a9bf8cc 100644
> --- a/net/bridge/br_if.c
> +++ b/net/bridge/br_if.c
> @@ -131,12 +131,16 @@ static void br_port_clear_promisc(struct net_bridge_port *p)
> void br_manage_promisc(struct net_bridge *br)
> {
> struct net_bridge_port *p;
> + int set_all = false;
s/int/bool/?
[...]
WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists