summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan Stephens <allan.stephens@windriver.com>2011-10-26 23:57:26 +0400
committerPaul Gortmaker <paul.gortmaker@windriver.com>2012-02-07 01:59:17 +0400
commit0232c5a566ff52d5c9fc1dda70253c942628ca66 (patch)
treea5982df381c212b870c34f2cb17e7e6eb2079ed0
parent8a275a6a30ba871eb34ea41c1fbb507039f4c0dc (diff)
downloadlinux-0232c5a566ff52d5c9fc1dda70253c942628ca66.tar.xz
tipc: Fix bug in broadcast link duplicate message statistics
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>
-rw-r--r--net/tipc/bcast.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/tipc/bcast.c b/net/tipc/bcast.c
index e7df313020ce..035b350be5c6 100644
--- a/net/tipc/bcast.c
+++ b/net/tipc/bcast.c
@@ -603,6 +603,8 @@ receive:
if (deferred)
bcl->stats.deferred_recv++;
+ else
+ bcl->stats.duplicates++;
unlock:
tipc_node_unlock(node);