]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
tipc: Fix bug in broadcast link duplicate message statistics
authorAllan Stephens <allan.stephens@windriver.com>
Wed, 26 Oct 2011 19:57:26 +0000 (15:57 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 6 Feb 2012 21:59:17 +0000 (16:59 -0500)
Modifies broadcast link so that it increments the "received duplicate
message" count if an incoming message cannot be added to the deferred
message queue because it is already present in the queue. (The aligns
broadcast link behavior with that of TIPC's unicast links.)

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/bcast.c

index e7df313020ce57ff25d0459e491ab76411303c0f..035b350be5c6240f0451e0c88fe7b121c15febfc 100644 (file)
@@ -603,6 +603,8 @@ receive:
 
        if (deferred)
                bcl->stats.deferred_recv++;
+       else
+               bcl->stats.duplicates++;
 
 unlock:
        tipc_node_unlock(node);