Lines Matching +full:in0 +full:- +full:in1
2 # SPDX-License-Identifier: GPL-2.0
4 # This test injects a 10-MB burst of traffic with VLAN tag and 802.1p priority
8 # - the stream first ingresses through $swp1, where it is forwarded to $swp3
10 # - then it ingresses through $swp4. Here it is put to a lossless buffer and put
15 # - since $swp3 now can't send traffic, the traffic ingressing $swp1 is kept at
19 # - eventually the PFC pool gets some traffic out, headroom therefore gets some
24 # - if PFC works, all lossless flow packets that ingress through $swp1 should
28 # - it should all play out relatively quickly, so that SLL and HLL will not
31 # +-----------------------+
37 # +---|-------------------+ +--------------------+
39 # +---|----------------------|--------------------|---------------------------+
44 # | +-|----------------------|-+ +-|------------------------+ |
50 # | +--------------------------+ +---------|----------------+ |
58 # +-------------------------------------------------------|-------------------+
60 # +---|-------------------+
65 # +-----------------------+
126 # -----
161 # -----
166 ip link set dev $swp1.111 type vlan ingress-qos-map 0:0 1:1
175 dcb buffer set dev $swp1 prio-buffer all:0 1:1
178 # -----
183 ip link set dev $swp2.111 type vlan egress-qos-map 0:0 1:1
188 # prio 0->TC0 (band 7), 1->TC1 (band 6). TC1 is shaped.
195 # -----
200 ip link set dev $swp3.111 type vlan egress-qos-map 0:0 1:1
205 # prio 0->TC0 (band 7), 1->TC1 (band 6)
213 dcb buffer set dev $swp3 prio-buffer all:0 1:1
214 dcb pfc set dev $swp3 prio-pfc all:off 1:on
217 # -----
222 ip link set dev $swp4.111 type vlan ingress-qos-map 0:0 1:1
227 # Configure qdisc so that we can hand-tune headroom.
230 dcb buffer set dev $swp4 prio-buffer all:0 1:1
231 dcb pfc set dev $swp4 prio-pfc all:off 1:on
233 # is (-2*MTU) about 80K of delay provision.
241 # 8-lane ports use two buffers among which the configured buffer
243 if [[ $lanes_swp4 -eq 8 ]]; then
247 dcb buffer set dev $swp4 buffer-size all:0 1:$pg1_size
250 # -------
275 # -------
288 # -----
290 dcb buffer set dev $swp4 buffer-size all:0
291 dcb pfc set dev $swp4 prio-pfc all:off
292 dcb buffer set dev $swp4 prio-buffer all:0
303 # -----
305 dcb pfc set dev $swp3 prio-pfc all:off
306 dcb buffer set dev $swp3 prio-buffer all:0
317 # -----
330 # -----
332 dcb buffer set dev $swp1 prio-buffer all:0
386 local in0=$(ethtool_stats_get $swp1 rx_octets_prio_1)
389 $MZ $h1 -p 8000 -Q 1:111 -A 192.0.2.33 -B 192.0.2.34 \
390 -a own -b $h2mac -c $pkts -t udp -q
393 local in1=$(ethtool_stats_get $swp1 rx_octets_prio_1)
396 local din=$((in1 - in0))
397 local dout=$((out1 - out0))
405 check_err $? "$((din - dout)) bytes out of $din ingressed got lost"