ChangeSet 1.2009.16.11, 2005/03/14 21:39:50-08:00, [EMAIL PROTECTED]

        [BRIDGE]: No update when hold time is zero
        
        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 <[EMAIL PROTECTED]>



 br_fdb.c |    4 ++++
 1 files changed, 4 insertions(+)


diff -Nru a/net/bridge/br_fdb.c b/net/bridge/br_fdb.c
--- a/net/bridge/br_fdb.c       2005-03-15 00:09:39 -08:00
+++ b/net/bridge/br_fdb.c       2005-03-15 00:09:39 -08:00
@@ -337,6 +337,10 @@
        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)) {
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to