bridge: add per-port broadcast flood flag
authorMike Manning <mmanning@brocade.com>
Wed, 26 Apr 2017 13:48:09 +0000 (14:48 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Apr 2017 20:34:29 +0000 (16:34 -0400)
commit99f906e9ad7b6e79ffeda30f45906a8448b9d6a2
tree40156646e4f5058f0ddba2cdd10ae44bf0c3f322
parent06b4fc520d21b7a6327983d64373505859672e91
bridge: add per-port broadcast flood flag

Support for l2 multicast flood control was added in commit b6cb5ac8331b
("net: bridge: add per-port multicast flood flag"). It allows broadcast
as it was introduced specifically for unknown multicast flood control.
But as broadcast is a special case of multicast, this may also need to
be disabled. For this purpose, introduce a flag to disable the flooding
of received l2 broadcasts. This approach is backwards compatible and
provides flexibility in filtering for the desired packet types.

Cc: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: Mike Manning <mmanning@brocade.com>
Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_bridge.h
include/uapi/linux/if_link.h
net/bridge/br_forward.c
net/bridge/br_if.c
net/bridge/br_netlink.c
net/bridge/br_sysfs_if.c