diff options
author | Vlad Yasevich <vyasevic@redhat.com> | 2014-05-16 09:59:18 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-16 17:06:33 -0400 |
commit | f3a6ddf15209cfad90b83e04168f42a5d9c8cc17 (patch) | |
tree | 79fb4895f1cf44bf5ee002b878d2286b862933e8 /net/bridge/br_if.c | |
parent | 8db24af71b31690a30ad371b35936fa10e547ee7 (diff) | |
download | op-kernel-dev-f3a6ddf15209cfad90b83e04168f42a5d9c8cc17.zip op-kernel-dev-f3a6ddf15209cfad90b83e04168f42a5d9c8cc17.tar.gz |
bridge: Introduce BR_PROMISC flag
Introduce a BR_PROMISC per-port flag that will help us track if the
current port is supposed to be in promiscuous mode or not. For now,
always start in promiscuous mode.
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_if.c')
-rw-r--r-- | net/bridge/br_if.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c index f7ef5f2..3fefff9 100644 --- a/net/bridge/br_if.c +++ b/net/bridge/br_if.c @@ -238,7 +238,7 @@ static struct net_bridge_port *new_nbp(struct net_bridge *br, p->path_cost = port_cost(dev); p->priority = 0x8000 >> BR_PORT_BITS; p->port_no = index; - p->flags = BR_LEARNING | BR_FLOOD; + p->flags = BR_LEARNING | BR_FLOOD | BR_PROMISC; br_init_port(p); p->state = BR_STATE_DISABLED; br_stp_port_timer_init(p); |