Some users, set hold time to zero on bridge so it always does
flooding. This is usually when using it with wireless. The new RCU
based code changed the behaviour so the bridge would not flood for
one GC interval. This patch restores the original behaviour.
Signed-off-by: David S. Miller <davem@davemloft.net>
struct hlist_head *head = &br->hash[br_mac_hash(addr)];
struct net_bridge_fdb_entry *fdb;
+ /* some users want to always flood. */
+ if (hold_time(br) == 0)
+ return;
+
rcu_read_lock();
fdb = fdb_find(head, addr);
if (likely(fdb)) {