From 9e6ca39668c8056f04e22e564d08e18b7a5fd01d Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 9 Oct 2014 19:55:21 -0600 Subject: [PATCH] engines/net: add subjob number to given port If we use numjobs=x where x > 1, then we don't want to reuse the same port. Bump it within a group, using the subjob number. Signed-off-by: Jens Axboe --- engines/net.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engines/net.c b/engines/net.c index 7c0a4eb4..aa7de967 100644 --- a/engines/net.c +++ b/engines/net.c @@ -1308,6 +1308,8 @@ static int fio_netio_init(struct thread_data *td) return 1; } + o->port += td->subjob_number; + if (!is_tcp(o)) { if (o->listen) { log_err("fio: listen only valid for TCP proto IO\n"); -- 2.25.1