]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/net: udpgso_bench_rx: fix port argument
authorWillem de Bruijn <willemb@google.com>
Thu, 11 Nov 2021 11:57:17 +0000 (06:57 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Nov 2021 10:04:44 +0000 (11:04 +0100)
commit05f3204178239aa629edbad650cd21c1e683beae
tree3fe97cb4a81641a112ef35e1a7d5ee1cf73acbf6
parent36810c9fc743c41ca3e5389294c61cf5e5974a04
selftests/net: udpgso_bench_rx: fix port argument

[ Upstream commit d336509cb9d03970911878bb77f0497f64fda061 ]

The below commit added optional support for passing a bind address.
It configures the sockaddr bind arguments before parsing options and
reconfigures on options -b and -4.

This broke support for passing port (-p) on its own.

Configure sockaddr after parsing all arguments.

Fixes: 3327a9c46352 ("selftests: add functionals test for UDP GRO")
Reported-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/net/udpgso_bench_rx.c