OrangePi_CM5/tools/testing/selftests/net
wujianguo 610af55f9f selftests/net: udpgso_bench_tx: fix dst ip argument
[ Upstream commit 9c1952aeaa98b3cfc49e2a79cb2c7d6a674213e9 ]

udpgso_bench_tx call setup_sockaddr() for dest address before
parsing all arguments, if we specify "-p ${dst_port}" after "-D ${dst_ip}",
then ${dst_port} will be ignored, and using default cfg_port 8000.

This will cause test case "multiple GRO socks" failed in udpgro.sh.

Setup sockaddr after parsing all arguments.

Fixes: 3a687bef14 ("selftests: udp gso benchmark")
Signed-off-by: Jianguo Wu <wujianguo@chinatelecom.cn>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/r/ff620d9f-5b52-06ab-5286-44b945453002@163.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-01-05 12:40:31 +01:00
..
forwarding selftest/net/forwarding: declare NETIFS p9 p10 2021-12-22 09:30:54 +01:00
mptcp selftests: mptcp: clean tmp files in simult_flows 2021-09-22 12:28:04 +02:00
.gitignore selftest/net/xfrm: Add test for ipsec tunnel 2020-09-24 08:53:04 +02:00
Makefile Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-10-15 12:43:21 -07:00
altnames.sh selftest: net: fix typo in altname test 2021-09-22 12:27:58 +02:00
config selftests: rtnetlink: load fou module for kci_test_encap_fou() test 2020-10-19 17:55:29 -07:00
devlink_port_split.py tweewide: Fix most Shebang lines 2021-05-22 11:40:55 +02:00
drop_monitor_tests.sh selftests: net: Add drop monitor test 2020-09-30 18:01:26 -07:00
fcnal-test.sh selftests: Fix IPv6 address bind tests 2021-12-22 09:30:53 +01:00
fib-onlink-tests.sh
…
fib_nexthop_multiprefix.sh
…
fib_nexthops.sh selftests: fib_nexthops: Fix wrong mausezahn invocation 2021-01-17 14:17:05 +01:00
fib_rule_tests.sh
…
fib_tests.sh selftests/fib_tests: Rework fib_rp_filter_test() 2021-12-14 11:32:43 +01:00
fin_ack_lat.c
…
fin_ack_lat.sh
…
hwtstamp_config.c
…
icmp_redirect.sh selftests: icmp_redirect: IPv6 PMTU info should be cleared after redirect 2021-07-28 14:35:34 +02:00
in_netns.sh
…
ip6_gre_headroom.sh
…
ip_defrag.c
…
ip_defrag.sh
…
ipsec.c selftest/net/xfrm: Add test for ipsec tunnel 2020-09-24 08:53:04 +02:00
ipv6_flowlabel.c
…
ipv6_flowlabel.sh
…
ipv6_flowlabel_mgr.c
…
l2tp.sh
…
msg_zerocopy.c selftests/net: relax cpu affinity requirement in msg_zerocopy test 2020-08-05 12:25:35 -07:00
msg_zerocopy.sh
…
netdevice.sh
…
nettest.c selftests: Set default protocol for raw sockets in nettest 2020-09-17 17:07:15 -07:00
pmtu.sh tools: selftests: add test for changing routes with PTMU exceptions 2021-01-17 14:16:56 +01:00
psock_fanout.c selftests/net: psock_fanout: fix clang issues for target arch PowerPC 2020-07-27 12:56:58 -07:00
psock_lib.h
…
psock_snd.c
…
psock_snd.sh selftests/net: improve descriptions for XFAIL cases in psock_snd.sh 2020-09-03 14:59:10 -07:00
psock_tpacket.c
…
reuseaddr_conflict.c
…
reuseaddr_ports_exhausted.c selftests/net: fix warnings on reuseaddr_ports_exhausted 2021-03-30 14:32:00 +02:00
reuseaddr_ports_exhausted.sh
…
reuseport_addr_any.c
…
reuseport_addr_any.sh
…
reuseport_bpf.c
…
reuseport_bpf_cpu.c
…
reuseport_bpf_numa.c
…
reuseport_dualstack.c
…
route_localnet.sh
…
rtnetlink.sh selftests: rtnetlink: load fou module for kci_test_encap_fou() test 2020-10-19 17:55:29 -07:00
run_afpackettests
…
run_netsocktests
…
rxtimestamp.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-08-02 01:02:12 -07:00
rxtimestamp.sh
…
so_txtime.c selftests/net: so_txtime: fix clang issues for target arch PowerPC 2020-07-27 12:56:58 -07:00
so_txtime.sh
…
socket.c
…
tcp_fastopen_backup_key.c
…
tcp_fastopen_backup_key.sh
…
tcp_inq.c
…
tcp_mmap.c selftests: net: tcp_mmap: Use huge pages in receive path 2020-08-20 16:14:53 -07:00
test_blackhole_dev.sh
…
test_bpf.sh
…
test_vxlan_fdb_changelink.sh
…
test_vxlan_under_vrf.sh
…
timestamping.c
…
tls.c
…
traceroute.sh
…
txring_overwrite.c
…
txtimestamp.c selftests: txtimestamp: fix compilation issue 2021-02-17 11:02:26 +01:00
txtimestamp.sh
…
udpgro.sh selftests: fix the return value for UDP GRO test 2021-01-19 18:27:26 +01:00
udpgro_bench.sh
…
udpgso.c selftests: Calculate udpgso segment count without header adjustment 2022-01-05 12:40:30 +01:00
udpgso.sh
…
udpgso_bench.sh
…
udpgso_bench_rx.c selftests/net: udpgso_bench_rx: fix port argument 2021-11-18 14:04:28 +01:00
udpgso_bench_tx.c selftests/net: udpgso_bench_tx: fix dst ip argument 2022-01-05 12:40:31 +01:00
vrf-xfrm-tests.sh
…
vrf_route_leaking.sh selftests: Add VRF route leaking tests 2020-10-14 17:14:28 -07:00
vrf_strict_mode_test.sh
…
xfrm_policy.sh xfrm: Fix wraparound in xfrm_policy_addr_delta() 2021-02-03 23:28:45 +01:00