X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=engines%2Fnet.c;h=d5a5f362bd3b8348deb68b6c24178df99c2c31a8;hp=566ad2d7482c8f19e3597b9d578882f1ce351feb;hb=07fc0acd46e024b4df7ac60a3424fa1434a84600;hpb=22f80458a520d0c5371c64bf91d24cdd21dff825 diff --git a/engines/net.c b/engines/net.c index 566ad2d7..d5a5f362 100644 --- a/engines/net.c +++ b/engines/net.c @@ -62,7 +62,8 @@ static struct fio_option options[] = { .type = FIO_OPT_STR_STORE, .cb = str_hostname_cb, .help = "Hostname for net IO engine", - .category = FIO_OPT_C_IO, + .category = FIO_OPT_C_ENGINE, + .group = FIO_OPT_G_NETIO, }, { .name = "port", @@ -72,7 +73,8 @@ static struct fio_option options[] = { .minval = 1, .maxval = 65535, .help = "Port to use for TCP or UDP net connections", - .category = FIO_OPT_C_IO, + .category = FIO_OPT_C_ENGINE, + .group = FIO_OPT_G_NETIO, }, { .name = "protocol", @@ -82,7 +84,6 @@ static struct fio_option options[] = { .off1 = offsetof(struct netio_options, proto), .help = "Network protocol to use", .def = "tcp", - .category = FIO_OPT_C_IO, .posval = { { .ival = "tcp", .oval = FIO_TYPE_TCP, @@ -97,6 +98,8 @@ static struct fio_option options[] = { .help = "UNIX domain socket", }, }, + .category = FIO_OPT_C_ENGINE, + .group = FIO_OPT_G_NETIO, }, #ifdef CONFIG_TCP_NODELAY { @@ -104,6 +107,8 @@ static struct fio_option options[] = { .type = FIO_OPT_BOOL, .off1 = offsetof(struct netio_options, nodelay), .help = "Use TCP_NODELAY on TCP connections", + .category = FIO_OPT_C_ENGINE, + .group = FIO_OPT_G_NETIO, }, #endif { @@ -112,13 +117,16 @@ static struct fio_option options[] = { .type = FIO_OPT_STR_SET, .off1 = offsetof(struct netio_options, listen), .help = "Listen for incoming TCP connections", - .category = FIO_OPT_C_IO, + .category = FIO_OPT_C_ENGINE, + .group = FIO_OPT_G_NETIO, }, { .name = "pingpong", .type = FIO_OPT_STR_SET, .off1 = offsetof(struct netio_options, pingpong), .help = "Ping-pong IO requests", + .category = FIO_OPT_C_ENGINE, + .group = FIO_OPT_G_NETIO, }, { .name = NULL,