bridge: Add flag to control mac learning.
Allow user to control whether mac learning is enabled on the port. By default, mac learning is enabled. Disabling mac learning will cause new dynamic FDB entries to not be created for a particular port. Signed-off-by: Vlad Yasevich <vyasevic@redhat.com> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
30f3a40f9a
commit
9ba18891f7
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user