]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Nov 2021 12:24:26 +0000 (12:24 +0000)
commit8d712e15c389d0ca9a43d496db59d43502188312
tree49edd39c298c612423dc31d175a437ce98632b69
parentb2506f795ecc0e4638c8914ab7c4f95003359cc3
selftests/net: udpgso_bench_rx: fix port argument

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: 12c2b7a0f657 ("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>
tools/testing/selftests/net/udpgso_bench_rx.c