- flags should be converted to network native format
- add separate EXIT command for server, regular job completion should
not quit it
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fio_init_net_cmd(cmd, opcode, buf, this_len);
if (this_len < size)
fio_init_net_cmd(cmd, opcode, buf, this_len);
if (this_len < size)
- cmd->flags |= FIO_NET_CMD_F_MORE;
+ cmd->flags = cpu_to_le32(FIO_NET_CMD_F_MORE);
switch (cmd->opcode) {
case FIO_NET_CMD_QUIT:
switch (cmd->opcode) {
case FIO_NET_CMD_QUIT:
+ return 1;
+ case FIO_NET_CMD_EXIT:
exit_backend = 1;
return 1;
case FIO_NET_CMD_ACK:
exit_backend = 1;
return 1;
case FIO_NET_CMD_ACK:
FIO_SERVER_MAX_PDU = 64,
FIO_NET_CMD_QUIT = 1,
FIO_SERVER_MAX_PDU = 64,
FIO_NET_CMD_QUIT = 1,
- FIO_NET_CMD_JOB = 2,
- FIO_NET_CMD_ACK = 3,
- FIO_NET_CMD_NAK = 4,
- FIO_NET_CMD_TEXT = 5,
+ FIO_NET_CMD_EXIT = 2,
+ FIO_NET_CMD_JOB = 3,
+ FIO_NET_CMD_ACK = 4,
+ FIO_NET_CMD_NAK = 5,
+ FIO_NET_CMD_TEXT = 6,
- FIO_NET_CMD_F_MORE = 1,
+ FIO_NET_CMD_F_MORE = 1UL << 0,
/* crc does not include the crc fields */
FIO_NET_CMD_CRC_SZ = sizeof(struct fio_net_cmd) -
/* crc does not include the crc fields */
FIO_NET_CMD_CRC_SZ = sizeof(struct fio_net_cmd) -