| /tools/testing/selftests/bpf/prog_tests/ |
| A D | netcnt.c | 17 unsigned long packets; in serial_test_netcnt() local 60 packets = netcnt.packets; in serial_test_netcnt() 63 ASSERT_LE(percpu_netcnt[cpu].packets, MAX_PERCPU_PACKETS, "MAX_PERCPU_PACKETS"); in serial_test_netcnt() 65 packets += percpu_netcnt[cpu].packets; in serial_test_netcnt() 70 ASSERT_GE(packets, 10000, "packets"); in serial_test_netcnt() 75 ASSERT_GE(bytes, packets * 104, "bytes"); in serial_test_netcnt()
|
| /tools/testing/selftests/bpf/progs/ |
| A D | netcnt_prog.c | 36 percpu_cnt->packets++; in bpf_nextcnt() 39 if (percpu_cnt->packets > MAX_PERCPU_PACKETS) { in bpf_nextcnt() 40 __sync_fetch_and_add(&cnt->packets, in bpf_nextcnt() 41 percpu_cnt->packets); in bpf_nextcnt() 42 percpu_cnt->packets = 0; in bpf_nextcnt() 62 percpu_cnt->prev_packets = cnt->packets; in bpf_nextcnt()
|
| /tools/testing/selftests/net/ |
| A D | drop_monitor_tests.sh | 73 timeout 5 dwdump -o sw -w ${dir}/packets.pcap 74 (( $(tshark -r ${dir}/packets.pcap \ 78 rm ${dir}/packets.pcap 81 timeout 5 dwdump -o sw -w ${dir}/packets.pcap 82 (( $(tshark -r ${dir}/packets.pcap \ 101 timeout 5 dwdump -o hw -w ${dir}/packets.pcap 102 (( $(tshark -r ${dir}/packets.pcap \ 107 rm ${dir}/packets.pcap 110 timeout 5 dwdump -o hw -w ${dir}/packets.pcap 111 (( $(tshark -r ${dir}/packets.pcap \
|
| A D | udpgso_bench_rx.c | 53 static unsigned long packets, bytes; variable 181 packets++; in do_flush_tcp() 278 packets++; in do_flush_udp() 280 if (cfg_expected_pkt_nr && packets >= cfg_expected_pkt_nr) in do_flush_udp() 379 if (packets) in do_recv() 383 bytes >> 20, packets); in do_recv() 384 bytes = packets = 0; in do_recv() 392 if (cfg_expected_pkt_nr && (packets != cfg_expected_pkt_nr)) in do_recv() 394 packets, cfg_expected_pkt_nr); in do_recv()
|
| A D | io_uring_zerocopy_tx.c | 98 unsigned long packets = 0, bytes = 0; in do_tx() local 181 packets++; in do_tx() 204 packets, bytes >> 20, in do_tx() 205 packets / (cfg_runtime_ms / 1000), in do_tx()
|
| /tools/testing/selftests/drivers/net/mlxsw/spectrum/ |
| A D | vxlan_flooding_ipv6.sh | 202 local packets=("$@") 207 tc_check_packets "dev $rp2 ingress" $i ${packets[i - 1]} 217 declare -a packets=(1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1) 238 packets=(2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 2 2 2 2 2) 252 packets=(2 2 2 2 2 3 3 3 3 3 1 1 1 1 1 3 3 3 3 3) 266 packets=(2 2 2 2 2 4 4 4 4 4 1 1 1 1 1 3 3 3 3 3) 281 packets=(2 2 2 2 2 4 5 5 5 5 1 1 1 1 1 3 3 3 3 3) 290 packets=(2 2 2 2 2 4 5 6 6 6 1 1 1 1 1 3 3 3 3 3) 299 packets=(2 2 2 2 2 4 5 6 7 7 1 1 1 1 1 3 3 3 3 3) 308 packets=(2 2 2 2 2 4 5 6 7 8 1 1 1 1 1 3 3 3 3 3) [all …]
|
| /tools/testing/selftests/net/packetdrill/ |
| A D | tcp_sack_sack-shift-sacked-2-6-8-3-9-nofack.pkt | 28 // 3 SACKed packets, so we enter Fast Recovery. 45 // ACK for 1:1001 as packets from t=0.303 arrive. 49 // ACK for 1:4001 as packets from t=0.310 arrive. 53 // ACK for 1:7001 as packets from t=0.320 arrive. 56 // ACK for all data as packets from t=0.403 arrive.
|
| A D | tcp_nagle_sockopt_cork_nodelay.pkt | 14 // Set TCP_CORK sockopt to hold small packets 25 // Set TCP_CORK sockopt to hold small packets 36 // Set MSG_MORE to hold small packets
|
| A D | tcp_fast_recovery_prr-ss-30pkt-lost1_4.pkt | 2 // Test PRR-slowstart implementation. The sender sends 20 packets. Packet 3 // 1 to 4 are lost. The sender writes another 10 packets. 40 // Writes another 10 packets, which the ssthresh*mss amount
|
| A D | tcp_eor_no-coalesce-retrans.pkt | 3 // skb created for the chunk. Also, when packets are retransmitted, they 40 // Now we have enough room to send out the 2 x 400B packets out. 42 // The 9 remaining 400B chunks should be sent as individual packets. 61 // retransmissions should be sent out as individual packets.
|
| A D | tcp_slow_start_slow-start-ack-per-2pkt-send-5pkt.pkt | 2 // Test of slow start when an outstanding flight of packets is 21 // Only send 5 packets.
|
| A D | tcp_slow_start_slow-start-ack-per-2pkt-send-6pkt.pkt | 2 // Test of slow start when an outstanding flight of packets is 22 // Only send 6 packets.
|
| A D | tcp_slow_start_slow-start-ack-per-4pkt.pkt | 4 // In this variant, the receiver sends one ACK per 4 packets. 7 // mechanism that defers sending in order to send bigger TSO packets.
|
| A D | tcp_slow_start_slow-start-app-limited-9-packets-out.pkt | 4 // send just 9 packets, then cwnd should grow to twice that 5 // value, or 18 packets.
|
| A D | tcp_ooo-before-and-after-accept.pkt | 9 // its initial sk_rcvbuf (tcp_rmem[1]) when receiving ooo packets. 35 // Test that ooo packets for accepted sockets do increase sk_rcvbuf
|
| A D | tcp_eor_no-coalesce-large.pkt | 27 // Write a 2KB chunk. This chunk should not be appended to the packets created 33 // Now we have enough room to send out the 2 x 400B packets out.
|
| /tools/testing/selftests/bpf/ |
| A D | netcnt_common.h | 25 __u64 packets; member 38 __u64 packets; member
|
| /tools/testing/selftests/drivers/net/mlxsw/spectrum-2/ |
| A D | vxlan_flooding_ipv6.sh | 219 local packets=("$@") 224 tc_check_packets "dev $rp2 ingress" $i ${packets[i - 1]} 234 declare -a packets=(1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1) 255 packets=(2 2 2 2 2 2 2 2 1 1 1 1 2 2 2 2) 268 packets=(2 2 2 2 3 3 3 3 1 1 1 1 3 3 3 3) 281 packets=(2 2 2 2 4 4 4 4 1 1 1 1 3 3 3 3) 295 packets=(2 2 2 2 4 5 5 5 1 1 1 1 3 3 3 3) 304 packets=(2 2 2 2 4 5 6 6 1 1 1 1 3 3 3 3) 313 packets=(2 2 2 2 4 5 6 7 1 1 1 1 3 3 3 3) 322 packets=(2 2 2 2 4 5 6 7 1 1 1 1 3 3 3 3)
|
| /tools/testing/selftests/drivers/net/mlxsw/ |
| A D | vxlan_flooding.sh | 218 local packets=("$@") 223 tc_check_packets "dev $rp2 ingress" $i ${packets[i - 1]} 233 declare -a packets=(1 1 1 1 1 1 1 1 1 1 1 1) 254 packets=(2 2 2 2 2 2 1 1 1 2 2 2) 266 packets=(2 2 2 3 3 3 1 1 1 3 3 3) 278 packets=(2 2 2 4 4 4 1 1 1 3 3 3) 291 packets=(2 2 2 4 5 5 1 1 1 3 3 3) 300 packets=(2 2 2 4 5 6 1 1 1 3 3 3) 309 packets=(2 2 2 4 5 6 1 1 1 3 3 3)
|
| /tools/testing/selftests/drivers/net/netdevsim/ |
| A D | hw_stats_l3.sh | 318 local pkts=$(get_hwstat dummy1 l3 rx.packets) 324 local pkts=$(get_hwstat dummy1 l3 rx.packets) 333 local pkts=$(get_hwstat dummy1 l3 rx.packets) 345 local pkts=$(get_hwstat dummy1 l3 rx.packets) 390 local pkts=$(get_hwstat dummy1 l3 rx.packets)
|
| /tools/testing/selftests/drivers/net/hw/ |
| A D | hw_stats_l3_gre.sh | 85 a=$(hw_stats_get l3_stats $dev $dir packets) 88 hw_stats_get l3_stats $dev $dir packets)
|
| A D | hw_stats_l3.sh | 206 a=$(hw_stats_get l3_stats $rp1.200 ${dir} packets) 210 hw_stats_get l3_stats $rp1.200 ${dir} packets) 281 a=$(hw_stats_get l3_stats $rp1.200 ${dir} packets) 285 hw_stats_get l3_stats $rp1.200 ${dir} packets)
|
| /tools/testing/selftests/drivers/net/ocelot/ |
| A D | psfp.sh | 74 local packets="" 79 packets=$(echo ${stats} | jq ".[1].options.actions[].stats.packets") 82 if ! [ "${packets}" = "${expected}" ]; then 84 "${expected}" "${packets}"
|
| /tools/testing/selftests/net/netfilter/packetdrill/ |
| A D | conntrack_syn_challenge_ack.pkt | 3 // Check that conntrack lets all packets pass, including the challenge ack, 42 // No packets should have been marked INVALID
|
| /tools/testing/selftests/net/netfilter/ |
| A D | br_netfilter.sh | 49 local packets=500 51 [ "$KSFT_MACHINE_SLOW" = yes ] && packets=100 53 for i in $(seq 1 $packets); do
|