bbr01.sh 533 B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/sh
  2. # SPDX-License-Identifier: GPL-2.0-or-later
  3. # Copyright (c) 2018 Oracle and/or its affiliates. All Rights Reserved.
  4. TST_SETUP="setup"
  5. TST_TESTFUNC="do_test"
  6. TST_CLEANUP="cleanup"
  7. TST_MIN_KVER="4.13"
  8. . tcp_cc_lib.sh
  9. cleanup()
  10. {
  11. tc qdisc del dev $(tst_iface) root netem > /dev/null 2>&1
  12. tcp_cc_cleanup
  13. }
  14. setup()
  15. {
  16. tcp_cc_check_support bbr
  17. tcp_cc_setup
  18. tst_res TINFO "emulate congestion with packet loss 0.5%"
  19. ROD tc qdisc add dev $(tst_iface) root netem loss 0.5%
  20. }
  21. do_test()
  22. {
  23. tcp_cc_test01 bbr -50
  24. }
  25. tst_run