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.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) {