From: eeb Date: Mon, 21 May 2007 10:25:30 +0000 (+0000) Subject: * cleanup after removing lnet/tests X-Git-Tag: v1_7_100~89 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=dca8e8c05cff3f0961ae1c3a257d0170ebd8ee5a;hp=a1027e45b32e21ee1c94832329b1577c6e8ab8bb * cleanup after removing lnet/tests --- diff --git a/lnet/include/lnet/lnetctl.h b/lnet/include/lnet/lnetctl.h index cb66b9d..72b8e47 100644 --- a/lnet/include/lnet/lnetctl.h +++ b/lnet/include/lnet/lnetctl.h @@ -53,7 +53,6 @@ int jt_ptl_disconnect(int argc, char **argv); int jt_ptl_push_connection(int argc, char **argv); int jt_ptl_print_active_txs(int argc, char **argv); int jt_ptl_ping(int argc, char **argv); -int jt_ptl_ping_test(int argc, char **argv); int jt_ptl_mynid(int argc, char **argv); int jt_ptl_add_uuid(int argc, char **argv); int jt_ptl_add_uuid_old(int argc, char **argv); /* backwards compatibility */ diff --git a/lnet/utils/portals.c b/lnet/utils/portals.c index cefb095..0f2c1ca 100644 --- a/lnet/utils/portals.c +++ b/lnet/utils/portals.c @@ -951,58 +951,6 @@ jt_ptl_print_active_txs (int argc, char **argv) return 0; } -int jt_ptl_ping_test(int argc, char **argv) -{ - int rc; - lnet_nid_t nid; - long count = 1; - long size = 4; - long timeout = 1; - struct libcfs_ioctl_data data; - - if (argc < 2) { - fprintf(stderr, "usage: %s nid [count] [size] [timeout (secs)]\n", argv[0]); - return 0; - } - - nid = libcfs_str2nid(argv[1]); - if (nid == LNET_NID_ANY) { - fprintf (stderr, "Can't parse nid \"%s\"\n", argv[1]); - return (-1); - } - - if (argc > 2) - { - count = atol(argv[2]); - - if (count < 0 || count > 20000) - { - fprintf(stderr, "are you insane? %ld is a crazy count.\n", count); - return -1; - } - } - - if (argc > 3) - size= atol(argv[3]); - - if (argc > 4) - timeout = atol (argv[4]); - - LIBCFS_IOC_INIT (data); - data.ioc_count = count; - data.ioc_nid = nid; - data.ioc_u32[0] = size; - data.ioc_u32[1] = timeout; - - rc = l_ioctl(LNET_DEV_ID, IOC_LIBCFS_PING_TEST, &data); - if (rc) { - fprintf(stderr, "failed to start pinger: %s\n", - strerror(errno)); - return -1; - } - return 0; -} - int jt_ptl_ping(int argc, char **argv) { int rc; diff --git a/lnet/utils/ptlctl.c b/lnet/utils/ptlctl.c index c3ab2b7..f6b7f40 100644 --- a/lnet/utils/ptlctl.c +++ b/lnet/utils/ptlctl.c @@ -43,7 +43,6 @@ command_t list[] = { {"disconnect", jt_ptl_disconnect, 0, "disconnect from a remote nid (args: [nid] [host]"}, {"push", jt_ptl_push_connection, 0, "flush connection to a remote nid (args: [nid]"}, {"active_tx", jt_ptl_print_active_txs, 0, "print active transmits (no args)"}, - {"testping", jt_ptl_ping_test, 0, "do a ping test (args: nid [count] [size] [timeout])"}, {"ping", jt_ptl_ping, 0, "ping (args: nid [timeout] [pid])"}, {"mynid", jt_ptl_mynid, 0, "inform the socknal of the local NID (args: [hostname])"}, {"add_route", jt_ptl_add_route, 0,