tc qdisc TBF configuration
Overview
Copyright (C) 2020-2022 OKTET Labs Ltd. More…
// global functions te_errno tapi_cfg_tbf_get_rate(const char* ta, const char* if_name, uint32_t* rate); te_errno tapi_cfg_tbf_set_rate(const char* ta, const char* if_name, uint32_t rate); te_errno tapi_cfg_tbf_get_bucket(const char* ta, const char* if_name, uint32_t* bucket); te_errno tapi_cfg_tbf_set_bucket(const char* ta, const char* if_name, uint32_t bucket); te_errno tapi_cfg_tbf_get_cell(const char* ta, const char* if_name, uint32_t* cell); te_errno tapi_cfg_tbf_set_cell(const char* ta, const char* if_name, uint32_t cell); te_errno tapi_cfg_tbf_get_limit(const char* ta, const char* if_name, uint32_t* limit); te_errno tapi_cfg_tbf_set_limit(const char* ta, const char* if_name, uint32_t limit); te_errno tapi_cfg_tbf_get_latency(const char* ta, const char* if_name, uint32_t* latency_us); te_errno tapi_cfg_tbf_set_latency(const char* ta, const char* if_name, uint32_t latency_us); te_errno tapi_cfg_tbf_get_peakrate(const char* ta, const char* if_name, uint32_t* peakrate); te_errno tapi_cfg_tbf_set_peakrate(const char* ta, const char* if_name, uint32_t peakrate); te_errno tapi_cfg_tbf_get_mtu(const char* ta, const char* if_name, uint32_t* mtu); te_errno tapi_cfg_tbf_set_mtu(const char* ta, const char* if_name, uint32_t mtu);
Detailed Documentation
Copyright (C) 2020-2022 OKTET Labs Ltd. All rights reserved.
Global Functions
te_errno tapi_cfg_tbf_get_rate(const char* ta, const char* if_name, uint32_t* rate)
Get rate of TBF qdisc on interface
Parameters:
ta |
Test Agent |
if_name |
Interface name |
rate |
Rate value in bytes per second |
Returns:
Status code
te_errno tapi_cfg_tbf_set_rate(const char* ta, const char* if_name, uint32_t rate)
Set rate of TBF qdisc on interface
Parameters:
ta |
Test Agent |
if_name |
Interface name |
rate |
Rate value in bytes per second |
Returns:
Status code
te_errno tapi_cfg_tbf_get_bucket(const char* ta, const char* if_name, uint32_t* bucket)
Get size of the TBF qdisc bucket on interface
Parameters:
ta |
Test Agent |
if_name |
Interface name |
bucket |
Size of the bucket in bytes |
Returns:
Status code
te_errno tapi_cfg_tbf_set_bucket(const char* ta, const char* if_name, uint32_t bucket)
Set size of the TBF qdisc bucket on interface
Parameters:
ta |
Test Agent |
if_name |
Interface name |
bucket |
Size of the bucket in bytes |
Returns:
Status code
te_errno tapi_cfg_tbf_get_cell(const char* ta, const char* if_name, uint32_t* cell)
Get size of a rate cell
Parameters:
ta |
Test Agent |
if_name |
Interface name |
cell |
Size of a rate cell |
Returns:
Status code
te_errno tapi_cfg_tbf_set_cell(const char* ta, const char* if_name, uint32_t cell)
Set size of a rate cell
Parameters:
ta |
Test Agent |
if_name |
Interface name |
cell |
Size of a rate cell |
Returns:
Status code
te_errno tapi_cfg_tbf_get_limit(const char* ta, const char* if_name, uint32_t* limit)
Get limit of TBF qdisc on interface
Parameters:
ta |
Test Agent |
if_name |
Interface name |
limit |
Limit in bytes |
Returns:
Status code
te_errno tapi_cfg_tbf_set_limit(const char* ta, const char* if_name, uint32_t limit)
Set limit of TBF qdisc on interface
Parameters:
ta |
Test Agent |
if_name |
Interface name |
limit |
Limit in bytes |
Returns:
Status code
te_errno tapi_cfg_tbf_get_latency(const char* ta, const char* if_name, uint32_t* latency_us)
Get limit of TBF qdisc by latency on interface
Parameters:
ta |
Test Agent |
if_name |
Interface name |
latency_us |
Limit by latency in micro seconds |
Returns:
Status code
te_errno tapi_cfg_tbf_set_latency(const char* ta, const char* if_name, uint32_t latency_us)
Set limit of TBF qdisc by latency on interface
Parameters:
ta |
Test Agent |
if_name |
Interface name |
latency_us |
Limit by latency in micro seconds |
Returns:
Status code
te_errno tapi_cfg_tbf_get_peakrate(const char* ta, const char* if_name, uint32_t* peakrate)
Get peakrate of TBF qdisc on interface
Parameters:
ta |
Test Agent |
if_name |
Interface name |
peakrate |
Peakrate value in bytes per second |
Returns:
Status code
te_errno tapi_cfg_tbf_set_peakrate(const char* ta, const char* if_name, uint32_t peakrate)
Set peakrate of TBF qdisc on interface
Parameters:
ta |
Test Agent |
if_name |
Interface name |
peakrate |
Peakrate value in bytes per second |
Returns:
Status code
te_errno tapi_cfg_tbf_get_mtu(const char* ta, const char* if_name, uint32_t* mtu)
Get size of the TBF qdisc mtu on interface
Parameters:
ta |
Test Agent |
if_name |
Interface name |
mtu |
Size of the mtu in bytes |
Returns:
Status code
te_errno tapi_cfg_tbf_set_mtu(const char* ta, const char* if_name, uint32_t mtu)
Set size of the TBF qdisc mtu on interface
Parameters:
ta |
Test Agent |
if_name |
Interface name |
mtu |
Size of the mtu in bytes |
Returns:
Status code