bridge: make learning and unicast-flood configurable per bridge port
authorLinus Lüssing <linus.luessing@c0d3.blue>
Sun, 22 May 2016 20:33:48 +0000 (22:33 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sun, 22 May 2016 20:39:08 +0000 (22:39 +0200)
commita0e96d0bdad7e39590ffc8dcb46935f35ee55284
treed0beb14de0ab781f5146076577308f7a00fed3d2
parent6fd6be6b7f3fc4883fdc464fcbcb2b5e8d8e8174
bridge: make learning and unicast-flood configurable per bridge port

Tuning these two options allows a more fine grained configuration of the
forwarding database (fdb) of a bridge.

The former allows to enable or disable the learning of the presence of
MAC addresses behind a bridge port. (default: enabled on all ports)

The latter allows to tune the behaviour in case a destination MAC address
of a frame is unknown to the fdb, like only flooding on specific ports or
not flooding on any port. (default: flood on all ports, except incoming)

This can be useful to create a dumb hub, for instance for monitoring
purposes. Or in larger layer 2 mesh networks to avoid keeping redundant
databases (e.g. with the batman-adv translation table).

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
device.c
device.h
system-linux.c