bridge: Keep track of ports capable of automatic discovery.
authorVlad Yasevich <vyasevic@redhat.com>
Fri, 16 May 2014 13:59:16 +0000 (09:59 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 May 2014 21:06:33 +0000 (17:06 -0400)
commite028e4b8dc93be7bc3ff9e0b94cb68d7f104883b
tree039b194353e0a758a643d3b8e75b797eb3a166fe
parent63c3a622dd020dd16959fdb1bfa79710dd702420
bridge: Keep track of ports capable of automatic discovery.

By default, ports on the bridge are capable of automatic
discovery of nodes located behind the port.  This is accomplished
via flooding of unknown traffic (BR_FLOOD) and learning the
mac addresses from these packets (BR_LEARNING).
If the above functionality is disabled by turning off these
flags, the port requires static configuration in the form
of static FDB entries to function properly.

This patch adds functionality to keep track of all ports
capable of automatic discovery.  This will later be used
to control promiscuity settings.

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>
net/bridge/br_if.c
net/bridge/br_netlink.c
net/bridge/br_private.h
net/bridge/br_sysfs_if.c