Lines Matching full:limit
57 rate 10Mbit burst 10K limit 1M
103 rate 10Mbit burst 10K limit 1M
256 local limit=$1; shift
260 # Build the below-the-limit backlog using UDP. We could use TCP just
262 # length is below the limit. The main stream is using TCP, and if the
263 # limit is misconfigured, we would see this traffic being ECN marked.
265 backlog=$(build_backlog $((2 * limit / 3)) udp)
268 check_err $? "backlog $backlog / $limit Got $pct% marked packets, expected == 0."
269 log_test "$name backlog < limit"
272 # backlog crosses the limit, and we want to make sure that the backlog
273 # is above the limit.
275 backlog=$(build_backlog $((3 * limit / 2)) tcp tos=0x01)
278 check_err $? "backlog $backlog / $limit Got $pct% marked packets, expected >= 95."
279 log_test "$name backlog > limit"
284 local limit=$1; shift
291 ecn_test_common "$name" $limit
294 # limit. Now that it is above, it should all get dropped, and backlog
297 build_backlog $((2 * limit)) udp >/dev/null
299 log_test "$name backlog > limit: UDP early-dropped"
307 local limit=$1; shift
314 ecn_test_common "$name" $limit
317 # limit. Now that it is above, in nodrop mode, make sure it goes to
320 build_backlog $((2 * limit)) udp >/dev/null
322 log_test "$name backlog > limit: UDP not dropped"
330 local limit=$1; shift
335 # is above limit.
339 # Pushing below the queue limit should work.
341 backlog=$(build_backlog $((2 * limit / 3)) tcp tos=0x01)
344 check_err $? "backlog $backlog / $limit Got $pct% marked packets, expected == 0."
345 log_test "RED backlog < limit"
349 backlog=$(build_backlog $((3 * limit / 2)) tcp tos=0x01)
352 check_err $? "backlog $backlog / $limit Got $pct% marked packets, expected == 0."
353 log_test "RED backlog > limit"
361 local limit=$1; shift
376 # Push to the queue until it's at the limit. The configured limit is
378 # limit.
379 build_backlog $((3 * limit / 2)) udp >/dev/null
405 local limit=$1; shift
417 backlog=$(build_backlog $((2 * limit / 3)) tcp tos=0x01)
420 check_err $? "backlog $backlog / $limit Got $pct% mirrored packets, expected == 0."
422 backlog=$(build_backlog $((3 * limit / 2)) tcp tos=0x01)
425 check_err $? "backlog $backlog / $limit Got $pct% mirrored packets, expected >= 95."
440 limit 1M avpkt $PKTSZ probability 1 \