X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fportals%2Fportals%2Flib-ni.c;h=296bc4a2ac3b1d9846699f161a668ded9d9ffe35;hb=090c677210ee2946d99c71412e4ff762bb300f4f;hp=aa959fcf88c607e362b3ce32959b8f60ae7fcbe2;hpb=944a01f5d1adb1ab5f7721d5c2d1cafcd3b2c915;p=fs%2Flustre-release.git diff --git a/lustre/portals/portals/lib-ni.c b/lustre/portals/portals/lib-ni.c index aa959fc..296bc4a 100644 --- a/lustre/portals/portals/lib-ni.c +++ b/lustre/portals/portals/lib-ni.c @@ -29,6 +29,18 @@ #define MAX_DIST 18446744073709551615ULL +int do_PtlNIDebug(nal_cb_t * nal, void *private, void *v_args, void *v_ret) +{ + PtlNIDebug_in *args = v_args; + PtlNIDebug_out *ret = v_ret; + lib_ni_t *ni = &nal->ni; + + ret->rc = ni->debug; + ni->debug = args->mask_in; + + return 0; +} + int do_PtlNIStatus(nal_cb_t * nal, void *private, void *v_args, void *v_ret) { /*