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 5TST_SETUP="setup" 6TST_TESTFUNC="do_test" 7TST_CLEANUP="cleanup" 8TST_MIN_KVER="4.13" 9 10. tcp_cc_lib.sh 11 12cleanup() 13{ 14 tc qdisc del dev $(tst_iface) root netem > /dev/null 2>&1 15 16 tcp_cc_cleanup 17} 18 19setup() 20{ 21 tcp_cc_check_support bbr 22 tcp_cc_setup 23 24 tst_res TINFO "emulate congestion with packet loss 0.5%" 25 ROD tc qdisc add dev $(tst_iface) root netem loss 0.5% 26} 27 28do_test() 29{ 30 tcp_cc_test01 bbr -50 31} 32 33tst_run 34