From: Jens Axboe Date: Fri, 10 Oct 2014 01:55:21 +0000 (-0600) Subject: engines/net: add subjob number to given port X-Git-Tag: fio-2.1.14~72 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=9e6ca39668c8056f04e22e564d08e18b7a5fd01d 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 --- 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");