X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lnet%2Flnet%2Fapi-ni.c;fp=lnet%2Flnet%2Fapi-ni.c;h=2bef416117ee6dc018ed58009f173c44103d0a75;hp=033e418800949407d3abfdacf89955849c2d326b;hb=db0b09018e77114667a1b0fbd6c04194f56cb492;hpb=4668283cd13079dd6d86482704aef593f5c01dff;ds=sidebyside diff --git a/lnet/lnet/api-ni.c b/lnet/lnet/api-ni.c index 033e418..2bef416 100644 --- a/lnet/lnet/api-ni.c +++ b/lnet/lnet/api-ni.c @@ -3953,6 +3953,14 @@ LNetCtl(unsigned int cmd, void *arg) return rc; } + case IOC_LIBCFS_RESET_LNET_STATS: + { + mutex_lock(&the_lnet.ln_api_mutex); + lnet_counters_reset(); + mutex_unlock(&the_lnet.ln_api_mutex); + return 0; + } + case IOC_LIBCFS_CONFIG_RTR: config = arg;