xref: /third_party/ltp/testcases/network/tcp_cc/bbr01.sh
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/ltp/testcases/network/tcp_cc/
1f08c3bdfSopenharmony_ci#!/bin/sh
2f08c3bdfSopenharmony_ci# SPDX-License-Identifier: GPL-2.0-or-later
3f08c3bdfSopenharmony_ci# Copyright (c) 2018-2020 Oracle and/or its affiliates. All Rights Reserved.
4f08c3bdfSopenharmony_ci
5f08c3bdfSopenharmony_ciTST_SETUP="setup"
6f08c3bdfSopenharmony_ciTST_TESTFUNC="do_test"
7f08c3bdfSopenharmony_ciTST_CLEANUP="cleanup"
8f08c3bdfSopenharmony_ciTST_MIN_KVER="4.13"
9f08c3bdfSopenharmony_ci
10f08c3bdfSopenharmony_cicleanup()
11f08c3bdfSopenharmony_ci{
12f08c3bdfSopenharmony_ci	tc qdisc del dev $(tst_iface) root netem > /dev/null 2>&1
13f08c3bdfSopenharmony_ci
14f08c3bdfSopenharmony_ci	tcp_cc_cleanup
15f08c3bdfSopenharmony_ci}
16f08c3bdfSopenharmony_ci
17f08c3bdfSopenharmony_cisetup()
18f08c3bdfSopenharmony_ci{
19f08c3bdfSopenharmony_ci	tcp_cc_check_support bbr
20f08c3bdfSopenharmony_ci	tcp_cc_setup
21f08c3bdfSopenharmony_ci
22f08c3bdfSopenharmony_ci	tst_res TINFO "emulate congestion with packet loss 0.5%"
23f08c3bdfSopenharmony_ci	ROD tc qdisc add dev $(tst_iface) root netem loss 0.5%
24f08c3bdfSopenharmony_ci}
25f08c3bdfSopenharmony_ci
26f08c3bdfSopenharmony_cido_test()
27f08c3bdfSopenharmony_ci{
28f08c3bdfSopenharmony_ci	tcp_cc_test01 bbr -100
29f08c3bdfSopenharmony_ci}
30f08c3bdfSopenharmony_ci
31f08c3bdfSopenharmony_ci. tcp_cc_lib.sh
32f08c3bdfSopenharmony_citst_run
33

Indexes created Thu Nov 07 10:32:03 CST 2024