Skip to content

Commit

Permalink
tipc: Fix bug in broadcast link duplicate message statistics
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Allan Stephens authored and Paul Gortmaker committed Feb 6, 2012
1 parent 8a275a6 commit 0232c5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/tipc/bcast.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,8 @@ void tipc_bclink_recv_pkt(struct sk_buff *buf)

if (deferred)
bcl->stats.deferred_recv++;
else
bcl->stats.duplicates++;

unlock:
tipc_node_unlock(node);
Expand Down

0 comments on commit 0232c5a

Please sign in to comment.