Home
last modified time | relevance | path

Searched refs:rx (Results 1 – 18 of 18) sorted by relevance

/tools/spi/
Dspidev_test.c118 static void transfer(int fd, uint8_t const *tx, uint8_t const *rx, size_t len) in transfer() argument
124 .rx_buf = (unsigned long)rx, in transfer()
162 ret = write(out_fd, rx, len); in transfer()
170 hex_dump(rx, len, 32, "RX"); in transfer()
316 uint8_t *rx; in transfer_escaped_string() local
322 rx = malloc(size); in transfer_escaped_string()
323 if (!rx) in transfer_escaped_string()
327 transfer(fd, tx, rx, size); in transfer_escaped_string()
328 free(rx); in transfer_escaped_string()
338 uint8_t *rx; in transfer_file() local
[all …]
/tools/testing/selftests/net/
Dveth.sh81 local rx=$3
94 if [ "$cur_rx" = "$rx" -a "$cur_tx" = "$tx" -a "$cur_combined" = "n/a" ]; then
97 echo " fail rx:$rx:$cur_rx tx:$tx:$cur_tx combined:n/a:$cur_combined"
145 ip netns exec $NS_SRC ethtool -L veth$SRC rx $i tx $i
146 ip netns exec $NS_DST ethtool -L veth$DST rx $i tx $i
151 ip netns exec $NS_SRC ethtool -L veth$SRC rx $cur_cpu tx $cur_cpu
152 ip netns exec $NS_DST ethtool -L veth$DST rx $cur_cpu tx $cur_cpu
173 ip netns exec $NS_SRC ethtool -L veth$SRC rx 3 tx 3
174 ip netns exec $NS_DST ethtool -L veth$DST rx 3 tx 3
196 ip netns exec $NS_SRC ethtool -L veth$SRC rx 2 tx 2
[all …]
Dudpgro_bench.sh20 local -r tx_args=${all%rx*}
56 run_in_netns ${args} -S 0 rx
59 run_in_netns ${args} -S 0 rx -G
66 run_in_netns ${args} -t rx
Dudpgro.sh43 local -r tx_args=${all%rx*}
64 ./in_netns.sh $0 __subprocess $2 rx -G -r $3
71 local -r tx_args=${all%rx*}
109 local -r tx_args=${all%rx*}
134 ./in_netns.sh $0 __subprocess_nat $2 rx -r $3
141 ./in_netns.sh $0 __subprocess_2sock $2 rx -G -r $3
Dudpgro_fwd.sh217 ip netns exec $NS_DST ethtool -K veth$DST rx-gro-list on
227 ip netns exec $NS_DST ethtool -K veth$DST rx-udp-gro-forwarding on
235 ip netns exec $NS_DST ethtool -K veth$DST rx-udp-gro-forwarding on
240 ip netns exec $NS_DST ethtool -K veth$DST rx-gro-list on
247 ip netns exec $NS_DST ethtool -K veth$DST rx-udp-gro-forwarding on
259 ip netns exec $NS_DST ethtool -K veth$DST rx-udp-gro-forwarding on
Dtoeplitz.sh89 for i in /sys/class/net/${DEV}/queues/rx-*/rps_cpus
Drtnetlink.sh601 ip macsec add "$msname" rx port 1234 address "1c:ed:de:ad:be:ef"
604 …ip macsec add "$msname" rx port 1234 address "1c:ed:de:ad:be:ef" sa 0 pn 1 on key 00 0123456789abc…
819 sa[1] rx ipaddr=0x00000000 00000000 00000000 037ba8c0
/tools/lib/bpf/
Dxsk.c83 struct xsk_ring_cons *rx; member
106 struct xdp_ring_offset_v1 rx; member
182 off->rx.producer = off_v1.rx.producer; in xsk_mmap_offsets_v1()
183 off->rx.consumer = off_v1.rx.consumer; in xsk_mmap_offsets_v1()
184 off->rx.desc = off_v1.rx.desc; in xsk_mmap_offsets_v1()
185 off->rx.flags = off_v1.rx.consumer + sizeof(__u32); in xsk_mmap_offsets_v1()
817 if (!xsk->rx) in xsk_init_xdp_res()
852 if (!xsk->rx) in xsk_lookup_xdp_res()
1014 struct xsk_ring_cons *rx, in xsk_socket__create_shared() argument
1028 if (!umem || !xsk_ptr || !(rx || tx)) in xsk_socket__create_shared()
[all …]
Dxsk.h139 xsk_ring_cons__rx_desc(const struct xsk_ring_cons *rx, __u32 idx) in xsk_ring_cons__rx_desc() argument
141 const struct xdp_desc *descs = (const struct xdp_desc *)rx->ring; in xsk_ring_cons__rx_desc()
143 return &descs[idx & rx->mask]; in xsk_ring_cons__rx_desc()
301 struct xsk_ring_cons *rx,
308 struct xsk_ring_cons *rx,
/tools/testing/selftests/drivers/net/mlxsw/
Ddevlink_trap_policer.sh286 local t0_rx t0_drop t1_rx t1_drop rx drop
306 rx=$((t1_rx - t0_rx))
307 (( rx == 16 ))
308 check_err $? "Expected burst size of 16 packets, got $rx packets"
309 log_info "Expected burst size of 16 packets, measured burst size of $rx packets"
330 rx=$((t1_rx - t0_rx))
331 (( rx == 64 ))
332 check_err $? "Expected burst size of 64 packets, got $rx packets"
333 log_info "Expected burst size of 64 packets, measured burst size of $rx packets"
/tools/testing/selftests/bpf/
Dtest_flow_dissector.c514 int fdt = -1, fdr = -1, len, tx = 0, rx = 0; in do_main() local
532 rx += do_rx(fdr); in do_main()
539 fprintf(stderr, "pkts: tx=%u rx=%u\n", tx, rx); in do_main()
541 rx = 0; in do_main()
551 if (rx < tx) { in do_main()
553 while (rx < tx) { in do_main()
559 rx += do_rx(fdr); in do_main()
563 fprintf(stderr, "pkts: tx=%u rx=%u\n", tx, rx); in do_main()
575 return rx != 0; in do_main()
577 return rx != tx; in do_main()
Dxdpxceiver.h93 struct xsk_ring_cons rx; member
103 rx, enumerator
Dxdpxceiver.c297 rxr = (ifobject->fv.vector == rx) ? &xsk->rx : NULL; in xsk_configure_socket()
300 rxr = &xsk->rx; in xsk_configure_socket()
583 rcvd = xsk_ring_cons__peek(&xsk->rx, BATCH_SIZE, &idx_rx); in receive_pkts()
606 const struct xdp_desc *desc = xsk_ring_cons__rx_desc(&xsk->rx, idx_rx++); in receive_pkts()
619 xsk_ring_cons__release(&xsk->rx, rcvd); in receive_pkts()
1017 ifobj->fv.vector = rx; in init_iface()
1117 init_iface(ifdict[rx], MAC2, MAC1, IP2, IP1, UDP_PORT2, UDP_PORT1, rx); in main()
/tools/testing/selftests/netfilter/
Dipip-conntrack-mtu.sh27 rx=$(mktemp)
55 rm -f ${rx}
63 ip netns exec ${c_b} nc -n -w 3 -q 3 -u -l -p 5000 > ${rx} < /dev/null &
72 bytes=$(wc -c < ${rx})
/tools/testing/selftests/drivers/net/netdevsim/
Dudp_tunnel_nic.sh708 ethtool -K $NSIM_NETDEV rx-udp_tunnel-port-offload off
713 ethtool -K $NSIM_NETDEV rx-udp_tunnel-port-offload on
722 ethtool -K $NSIM_NETDEV rx-udp_tunnel-port-offload off
730 ethtool -K $NSIM_NETDEV rx-udp_tunnel-port-offload on
855 ethtool -K $NSIM_NETDEV rx-udp_tunnel-port-offload off
861 ethtool -K $NSIM_NETDEV2 rx-udp_tunnel-port-offload off
867 ethtool -K $NSIM_NETDEV rx-udp_tunnel-port-offload on
871 ethtool -K $NSIM_NETDEV2 rx-udp_tunnel-port-offload on
Dethtool-coalesce.sh118 ethtool -C $NSIM_NETDEV adaptive-rx on
/tools/include/uapi/linux/
Dif_xdp.h51 struct xdp_ring_offset rx; member
/tools/testing/selftests/net/forwarding/
Dlib.sh717 link_stats_get $1 rx errors