server: increase default max pdu length to 1024
It was set low to 64 to debug issues with fragmentation and
defragmentation of packages. Bump version to 3 as well since
this breaks the protocol with older clients.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/server.c b/server.c
index c3502cd..1e1e9d0 100644
--- a/server.c
+++ b/server.c
@@ -102,7 +102,7 @@
cmd->pdu_len = le32_to_cpu(cmd->pdu_len);
switch (cmd->version) {
- case FIO_SERVER_VER2:
+ case FIO_SERVER_VER3:
break;
default:
log_err("fio: bad server cmd version %d\n", cmd->version);
diff --git a/server.h b/server.h
index 6a6ac33..e9a6a37 100644
--- a/server.h
+++ b/server.h
@@ -26,11 +26,10 @@
};
enum {
- FIO_SERVER_VER = 2,
- FIO_SERVER_VER1 = 1,
- FIO_SERVER_VER2 = 2,
+ FIO_SERVER_VER = 3,
+ FIO_SERVER_VER3 = 3,
- FIO_SERVER_MAX_PDU = 64,
+ FIO_SERVER_MAX_PDU = 1024,
FIO_NET_CMD_QUIT = 1,
FIO_NET_CMD_EXIT = 2,
@@ -105,7 +104,7 @@
{
memset(cmd, 0, sizeof(*cmd));
- cmd->version = __cpu_to_le16(FIO_SERVER_VER2);
+ cmd->version = __cpu_to_le16(FIO_SERVER_VER3);
cmd->opcode = cpu_to_le16(opcode);
if (pdu) {