From: Allan Stephens Date: Wed, 26 Oct 2011 19:57:26 +0000 (-0400) Subject: tipc: Fix bug in broadcast link duplicate message statistics X-Git-Tag: v3.4-rc1~177^2~364^2~7 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0232c5a566ff52d5c9fc1dda70253c942628ca66;p=karo-tx-linux.git 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 Signed-off-by: Paul Gortmaker --- 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);