Home
last modified time | relevance | path

Searched refs:packets (Results 1 – 25 of 65) sorted by relevance

123

/tools/testing/selftests/bpf/prog_tests/
A Dnetcnt.c17 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 Dnetcnt_prog.c36 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 Ddrop_monitor_tests.sh73 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 Dudpgso_bench_rx.c53 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 Dio_uring_zerocopy_tx.c98 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 Dvxlan_flooding_ipv6.sh202 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 Dtcp_sack_sack-shift-sacked-2-6-8-3-9-nofack.pkt28 // 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 Dtcp_nagle_sockopt_cork_nodelay.pkt14 // 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 Dtcp_fast_recovery_prr-ss-30pkt-lost1_4.pkt2 // 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 Dtcp_eor_no-coalesce-retrans.pkt3 // 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 Dtcp_slow_start_slow-start-ack-per-2pkt-send-5pkt.pkt2 // Test of slow start when an outstanding flight of packets is
21 // Only send 5 packets.
A Dtcp_slow_start_slow-start-ack-per-2pkt-send-6pkt.pkt2 // Test of slow start when an outstanding flight of packets is
22 // Only send 6 packets.
A Dtcp_slow_start_slow-start-ack-per-4pkt.pkt4 // In this variant, the receiver sends one ACK per 4 packets.
7 // mechanism that defers sending in order to send bigger TSO packets.
A Dtcp_slow_start_slow-start-app-limited-9-packets-out.pkt4 // send just 9 packets, then cwnd should grow to twice that
5 // value, or 18 packets.
A Dtcp_ooo-before-and-after-accept.pkt9 // its initial sk_rcvbuf (tcp_rmem[1]) when receiving ooo packets.
35 // Test that ooo packets for accepted sockets do increase sk_rcvbuf
A Dtcp_eor_no-coalesce-large.pkt27 // 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 Dnetcnt_common.h25 __u64 packets; member
38 __u64 packets; member
/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
A Dvxlan_flooding_ipv6.sh219 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 Dvxlan_flooding.sh218 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 Dhw_stats_l3.sh318 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 Dhw_stats_l3_gre.sh85 a=$(hw_stats_get l3_stats $dev $dir packets)
88 hw_stats_get l3_stats $dev $dir packets)
A Dhw_stats_l3.sh206 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 Dpsfp.sh74 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 Dconntrack_syn_challenge_ack.pkt3 // 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 Dbr_netfilter.sh49 local packets=500
51 [ "$KSFT_MACHINE_SLOW" = yes ] && packets=100
53 for i in $(seq 1 $packets); do

Completed in 25 milliseconds

123