From 3e2d5806b50061ee0faa8377bcabb66201baad94 Mon Sep 17 00:00:00 2001 From: Matt Ezell Date: Mon, 3 Feb 2014 13:19:48 -0500 Subject: [PATCH] LU-4577 lnet: Dropped messages are not accounted correctly LNET messages that are dropped are not accounted for correctly in /proc/sys/lnet/stats. What I assume to be a simple typo is causing drop_length to be double-counted and drop_count to never be incremented. Lustre-change: http://review.whamcloud.com/9096 Lustre-commit: 3abb0bb5f82559f2f5349dca763cf6edc7f6754b Change-Id: Ia8454221885a1d765a3f7fadbcf5582fcfe7cf09 Signed-off-by: Matt Ezell Reviewed-on: http://review.whamcloud.com/9311 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Liang Zhen Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- lnet/lnet/api-ni.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnet/lnet/api-ni.c b/lnet/lnet/api-ni.c index b293bf8..eb220b3 100644 --- a/lnet/lnet/api-ni.c +++ b/lnet/lnet/api-ni.c @@ -429,7 +429,7 @@ lnet_counters_get(lnet_counters_t *counters) counters->send_count += ctr->send_count; counters->recv_count += ctr->recv_count; counters->route_count += ctr->route_count; - counters->drop_length += ctr->drop_length; + counters->drop_count += ctr->drop_count; counters->send_length += ctr->send_length; counters->recv_length += ctr->recv_length; counters->route_length += ctr->route_length; -- 1.8.3.1