]> Pileus Git - ~andy/linux/blobdiff - net/bridge/br_if.c
bridge: Add flag to control mac learning.
[~andy/linux] / net / bridge / br_if.c
index 4cdba60926ffc91c52c031793eb562fb38a84a4a..2c08911df57881df197dda07ffdc7d6b63b872a8 100644 (file)
@@ -221,7 +221,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 = 0;
+       p->flags = BR_LEARNING;
        br_init_port(p);
        p->state = BR_STATE_DISABLED;
        br_stp_port_timer_init(p);