projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sync engine: add support for pwritev/preadv
[fio.git]
/
engines
/
net.c
diff --git
a/engines/net.c
b/engines/net.c
index 566ad2d7482c8f19e3597b9d578882f1ce351feb..d5a5f362bd3b8348deb68b6c24178df99c2c31a8 100644
(file)
--- 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",
.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",
},
{
.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",
.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",
},
{
.name = "protocol",
@@
-82,7
+84,6
@@
static struct fio_option options[] = {
.off1 = offsetof(struct netio_options, proto),
.help = "Network protocol to use",
.def = "tcp",
.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,
.posval = {
{ .ival = "tcp",
.oval = FIO_TYPE_TCP,
@@
-97,6
+98,8
@@
static struct fio_option options[] = {
.help = "UNIX domain socket",
},
},
.help = "UNIX domain socket",
},
},
+ .category = FIO_OPT_C_ENGINE,
+ .group = FIO_OPT_G_NETIO,
},
#ifdef CONFIG_TCP_NODELAY
{
},
#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",
.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
{
},
#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",
.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",
},
{
.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,
},
{
.name = NULL,