]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6ba1c4d9b84c5d475694497e26a0fbd51bc11b49
tree039b194353e0a758a643d3b8e75b797eb3a166fe
parentcf82ca4de2f6ab226373adb08fca3352e2781203
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