Home
last modified time | relevance | path

Searched refs:cfg_payload_len (Results 1 – 5 of 5) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/net/
Dudpgso_bench_tx.c48 static int cfg_payload_len = (1472 * 42); variable
132 while (done < cfg_payload_len) { in send_tcp()
133 ret = send(fd, data + done, cfg_payload_len - done, in send_tcp()
149 total_len = cfg_payload_len; in send_udp()
179 left = cfg_payload_len; in send_udp_sendmmsg()
221 iov.iov_len = cfg_payload_len; in send_udp_segment()
286 cfg_payload_len = strtoul(optarg, NULL, 0); in parse_opts()
321 if (cfg_payload_len > max_len) in parse_opts()
323 cfg_payload_len, max_len); in parse_opts()
404 (num_msgs * cfg_payload_len) >> 20, in main()
Dpsock_snd.c45 static int cfg_payload_len = DATA_LEN; variable
89 vh->csum_start += sizeof(struct udphdr) + cfg_payload_len - in build_vnet_header()
238 len = build_packet(cfg_payload_len); in do_tx()
330 cfg_payload_len = strtoul(optarg, NULL, 0); in parse_opts()
372 if (cfg_payload_len == DATA_LEN && !cfg_use_vlan) in run_test()
376 do_rx(fdr, cfg_payload_len, tbuf + total_len - cfg_payload_len); in run_test()
Dmsg_zerocopy.c82 static int cfg_payload_len; variable
233 payload_len = cfg_payload_len / cfg_cork; in do_sendmsg_corked()
234 extra_len = cfg_payload_len - (cfg_cork * payload_len); in do_sendmsg_corked()
526 iov[1].iov_len = setup_iph(&nh.iph, cfg_payload_len); in do_tx()
528 iov[1].iov_len = setup_ip6h(&nh.ip6h, cfg_payload_len); in do_tx()
542 iov[2].iov_len = cfg_payload_len; in do_tx()
641 if (ret != cfg_payload_len) in do_flush_datagram()
642 error(1, 0, "recv: ret=%u != %u", ret, cfg_payload_len); in do_flush_datagram()
649 bytes += cfg_payload_len; in do_flush_datagram()
709 cfg_payload_len = max_payload_len; in parse_opts()
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_flow_dissector.c77 static int cfg_payload_len = 100; variable
299 if (el3_len + ol3_len + ol4_len + il3_len + il4_len + cfg_payload_len >= in build_packet()
308 cfg_payload_char, cfg_payload_len); in build_packet()
311 buf[el3_len + ol3_len + ol4_len + il3_len + il4_len + cfg_payload_len] = 0; in build_packet()
319 il4_len + cfg_payload_len, in build_packet()
326 il4_len + cfg_payload_len, in build_packet()
332 cfg_payload_len, CFG_PORT_INNER, cfg_l3_inner); in build_packet()
335 return il3_len + il4_len + cfg_payload_len; in build_packet()
342 ol4_len + il3_len + il4_len + cfg_payload_len, in build_packet()
348 ol4_len + il3_len + il4_len + cfg_payload_len, in build_packet()
[all …]
/external/linux-kselftest/tools/testing/selftests/networking/timestamping/
Dtxtimestamp.c70 static int cfg_payload_len = 10; variable
241 data = malloc(cfg_payload_len); in recv_errmsg()
250 entry.iov_len = cfg_payload_len; in recv_errmsg()
265 print_payload(data, cfg_payload_len); in recv_errmsg()
283 total_len = cfg_payload_len; in do_test()
359 udph->len = ntohs(sizeof(*udph) + cfg_payload_len); in do_test()
370 val = send(fd, buf, cfg_payload_len, 0); in do_test()
457 cfg_payload_len = strtoul(optarg, NULL, 10); in parse_opt()
471 if (!cfg_payload_len) in parse_opt()
473 if (cfg_proto != SOCK_STREAM && cfg_payload_len > 1472) in parse_opt()
[all …]