From: Cyril Bordage Date: Wed, 10 Jul 2024 13:16:00 +0000 (+0200) Subject: LU-18017 lnet: Swapped put/get stats in net show X-Git-Tag: 2.15.65~39 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=078f0be08e41fb7760003449cb7bebe6a70bcd0c;p=fs%2Flustre-release.git LU-18017 lnet: Swapped put/get stats in net show Inverse LNET_NET_LOCAL_NI_MSG_STATS_ATTR_PUT_COUNT and LNET_NET_LOCAL_NI_MSG_STATS_ATTR_GET_COUNT in lnet_net_show_dump. Signed-off-by: Cyril Bordage Fixes: d15bfca0785 ("LU-10391 lnet: migrate full LNet NI information collection") Test-Parameters: trivial Change-Id: Ib89bbae62a67c51c24c53d2634d4a00cdff9efeb Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55689 Reviewed-by: James Simmons Reviewed-by: Chris Horn Reviewed-by: Frank Sehr Reviewed-by: Oleg Drokin Tested-by: jenkins Tested-by: Maloo --- diff --git a/lnet/lnet/api-ni.c b/lnet/lnet/api-ni.c index 1ce3aad..d6075a5 100644 --- a/lnet/lnet/api-ni.c +++ b/lnet/lnet/api-ni.c @@ -5749,9 +5749,9 @@ skip_udsp: send_stats = nla_nest_start(msg, LNET_NET_LOCAL_NI_ATTR_SEND_STATS); send_attr = nla_nest_start(msg, 0); - nla_put_u32(msg, LNET_NET_LOCAL_NI_MSG_STATS_ATTR_PUT_COUNT, - msg_stats.im_send_stats.ico_get_count); nla_put_u32(msg, LNET_NET_LOCAL_NI_MSG_STATS_ATTR_GET_COUNT, + msg_stats.im_send_stats.ico_get_count); + nla_put_u32(msg, LNET_NET_LOCAL_NI_MSG_STATS_ATTR_PUT_COUNT, msg_stats.im_send_stats.ico_put_count); nla_put_u32(msg, LNET_NET_LOCAL_NI_MSG_STATS_ATTR_REPLY_COUNT, msg_stats.im_send_stats.ico_reply_count); @@ -5764,9 +5764,9 @@ skip_udsp: recv_stats = nla_nest_start(msg, LNET_NET_LOCAL_NI_ATTR_RECV_STATS); recv_attr = nla_nest_start(msg, 0); - nla_put_u32(msg, LNET_NET_LOCAL_NI_MSG_STATS_ATTR_PUT_COUNT, - msg_stats.im_recv_stats.ico_get_count); nla_put_u32(msg, LNET_NET_LOCAL_NI_MSG_STATS_ATTR_GET_COUNT, + msg_stats.im_recv_stats.ico_get_count); + nla_put_u32(msg, LNET_NET_LOCAL_NI_MSG_STATS_ATTR_PUT_COUNT, msg_stats.im_recv_stats.ico_put_count); nla_put_u32(msg, LNET_NET_LOCAL_NI_MSG_STATS_ATTR_REPLY_COUNT, msg_stats.im_recv_stats.ico_reply_count); @@ -5780,9 +5780,9 @@ skip_udsp: drop_stats = nla_nest_start(msg, LNET_NET_LOCAL_NI_ATTR_DROPPED_STATS); drop_attr = nla_nest_start(msg, 0); - nla_put_u32(msg, LNET_NET_LOCAL_NI_MSG_STATS_ATTR_PUT_COUNT, - msg_stats.im_drop_stats.ico_get_count); nla_put_u32(msg, LNET_NET_LOCAL_NI_MSG_STATS_ATTR_GET_COUNT, + msg_stats.im_drop_stats.ico_get_count); + nla_put_u32(msg, LNET_NET_LOCAL_NI_MSG_STATS_ATTR_PUT_COUNT, msg_stats.im_drop_stats.ico_put_count); nla_put_u32(msg, LNET_NET_LOCAL_NI_MSG_STATS_ATTR_REPLY_COUNT, msg_stats.im_drop_stats.ico_reply_count);