From: Jens Axboe Date: Fri, 7 Oct 2011 08:12:47 +0000 (+0200) Subject: server: increase default max pdu length to 1024 X-Git-Tag: fio-1.99.2~1 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=5cf6be78129e41703270325edf3346dba7d0036a 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 --- diff --git a/server.c b/server.c index c3502cd1..1e1e9d04 100644 --- a/server.c +++ b/server.c @@ -102,7 +102,7 @@ static int verify_convert_cmd(struct fio_net_cmd *cmd) 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 6a6ac338..e9a6a37f 100644 --- a/server.h +++ b/server.h @@ -26,11 +26,10 @@ struct fio_net_cmd { }; 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 @@ static inline void fio_init_net_cmd(struct fio_net_cmd *cmd, uint16_t opcode, { 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) {