Searched refs:cfg_payload_len (Results 1 – 6 of 6) sorted by relevance
/Linux-v6.1/tools/testing/selftests/bpf/ |
D | test_flow_dissector.c | 75 static int cfg_payload_len = 100; variable 297 if (el3_len + ol3_len + ol4_len + il3_len + il4_len + cfg_payload_len >= in build_packet() 306 cfg_payload_char, cfg_payload_len); in build_packet() 309 buf[el3_len + ol3_len + ol4_len + il3_len + il4_len + cfg_payload_len] = 0; in build_packet() 317 il4_len + cfg_payload_len, in build_packet() 324 il4_len + cfg_payload_len, in build_packet() 330 cfg_payload_len, CFG_PORT_INNER, cfg_l3_inner); in build_packet() 333 return il3_len + il4_len + cfg_payload_len; in build_packet() 340 ol4_len + il3_len + il4_len + cfg_payload_len, in build_packet() 346 ol4_len + il3_len + il4_len + cfg_payload_len, in build_packet() [all …]
|
/Linux-v6.1/tools/testing/selftests/net/ |
D | udpgso_bench_tx.c | 61 static int cfg_payload_len = (1472 * 42); variable 261 while (done < cfg_payload_len) { in send_tcp() 262 ret = send(fd, data + done, cfg_payload_len - done, in send_tcp() 278 total_len = cfg_payload_len; in send_udp() 332 left = cfg_payload_len; in send_udp_sendmmsg() 384 iov.iov_len = cfg_payload_len; in send_udp_segment() 468 cfg_payload_len = strtoul(optarg, NULL, 0); in parse_opts() 523 if (cfg_payload_len > max_len) in parse_opts() 525 cfg_payload_len, max_len); in parse_opts() 573 ((num_msgs * cfg_payload_len) >> 10) / tdelta, in print_audit_report() [all …]
|
D | psock_snd.c | 45 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()
|
D | msg_zerocopy.c | 82 static int cfg_payload_len; variable 232 payload_len = cfg_payload_len / cfg_cork; in do_sendmsg_corked() 233 extra_len = cfg_payload_len - (cfg_cork * payload_len); in do_sendmsg_corked() 525 iov[1].iov_len = setup_iph(&nh.iph, cfg_payload_len); in do_tx() 527 iov[1].iov_len = setup_ip6h(&nh.ip6h, cfg_payload_len); in do_tx() 541 iov[2].iov_len = cfg_payload_len; in do_tx() 640 if (ret != cfg_payload_len) in do_flush_datagram() 641 error(1, 0, "recv: ret=%u != %u", ret, cfg_payload_len); in do_flush_datagram() 648 bytes += cfg_payload_len; in do_flush_datagram() 709 cfg_payload_len = max_payload_len; in parse_opts() [all …]
|
D | txtimestamp.c | 63 static int cfg_payload_len = 10; variable 144 stepsize = cfg_proto == SOCK_STREAM ? cfg_payload_len : 1; in validate_key() 370 data = malloc(cfg_payload_len); in recv_errmsg() 379 entry.iov_len = cfg_payload_len; in recv_errmsg() 394 print_payload(data, cfg_payload_len); in recv_errmsg() 455 ip6h->payload_len = htons(sizeof(struct udphdr) + cfg_payload_len); in fill_header_ipv6() 473 udph->len = ntohs(sizeof(*udph) + cfg_payload_len); in fill_header_udp() 495 total_len = cfg_payload_len; in do_test() 733 cfg_payload_len = strtoul(optarg, NULL, 10); in parse_opt() 789 if (!cfg_payload_len) in parse_opt() [all …]
|
D | io_uring_zerocopy_tx.c | 54 static int cfg_payload_len; variable 376 iov.iov_len = cfg_payload_len; in do_tx() 400 cfg_payload_len, msg_flags); in do_tx() 404 cfg_payload_len, in do_tx() 504 cfg_payload_len = max_payload_len; in parse_opts() 527 cfg_payload_len = strtoul(optarg, NULL, 0); in parse_opts() 565 if (cfg_payload_len > max_payload_len) in parse_opts()
|