Attribute Access | |
int | rtnl_qdisc_tbf_set_limit (struct rtnl_qdisc *qdisc, int limit) |
Set limit of TBF qdisc. More... | |
int | rtnl_qdisc_tbf_set_limit_by_latency (struct rtnl_qdisc *qdisc, int latency) |
Set limit of TBF qdisc by latency. More... | |
int | rtnl_qdisc_tbf_get_limit (struct rtnl_qdisc *qdisc) |
Get limit of TBF qdisc. More... | |
int | rtnl_qdisc_tbf_set_mpu (struct rtnl_qdisc *qdisc, int mpu) |
Set MPU of TBF qdisc. More... | |
int | rtnl_qdisc_tbf_get_mpu (struct rtnl_qdisc *qdisc) |
Get MPU of TBF qdisc. More... | |
int | rtnl_qdisc_tbf_set_rate (struct rtnl_qdisc *qdisc, int rate, int bucket, int cell) |
Set rate of TBF qdisc. More... | |
int | rtnl_qdisc_tbf_get_rate (struct rtnl_qdisc *qdisc) |
Get rate of TBF qdisc. More... | |
int | rtnl_qdisc_tbf_get_rate_bucket (struct rtnl_qdisc *qdisc) |
Get rate bucket size of TBF qdisc. More... | |
int | rtnl_qdisc_tbf_get_rate_cell (struct rtnl_qdisc *qdisc) |
Get rate cell size of TBF qdisc. More... | |
int | rtnl_qdisc_tbf_set_peakrate (struct rtnl_qdisc *qdisc, int rate, int bucket, int cell) |
Set peak rate of TBF qdisc. More... | |
int | rtnl_qdisc_tbf_get_peakrate (struct rtnl_qdisc *qdisc) |
Get peak rate of TBF qdisc. More... | |
int | rtnl_qdisc_tbf_get_peakrate_bucket (struct rtnl_qdisc *qdisc) |
Get peak rate bucket size of TBF qdisc. More... | |
int | rtnl_qdisc_tbf_get_peakrate_cell (struct rtnl_qdisc *qdisc) |
Get peak rate cell size of TBF qdisc. More... | |
int rtnl_qdisc_tbf_get_limit | ( | struct rtnl_qdisc * | qdisc | ) |
Get limit of TBF qdisc.
References NLE_NOATTR, rtnl_tbf::qt_limit, and rtnl_tbf::qt_mask.
int rtnl_qdisc_tbf_get_mpu | ( | struct rtnl_qdisc * | qdisc | ) |
Get MPU of TBF qdisc.
References NLE_NOATTR, rtnl_tbf::qt_mask, and rtnl_tbf::qt_mpu.
int rtnl_qdisc_tbf_get_peakrate | ( | struct rtnl_qdisc * | qdisc | ) |
Get peak rate of TBF qdisc.
References rtnl_tbf::qt_mask, rtnl_tbf::qt_peakrate, and rtnl_ratespec::rs_rate.
int rtnl_qdisc_tbf_get_peakrate_bucket | ( | struct rtnl_qdisc * | qdisc | ) |
Get peak rate bucket size of TBF qdisc.
References rtnl_tbf::qt_mask, and rtnl_tbf::qt_peakrate_bucket.
int rtnl_qdisc_tbf_get_peakrate_cell | ( | struct rtnl_qdisc * | qdisc | ) |
Get peak rate cell size of TBF qdisc.
References rtnl_tbf::qt_mask, rtnl_tbf::qt_peakrate, and rtnl_ratespec::rs_cell_log.
int rtnl_qdisc_tbf_get_rate | ( | struct rtnl_qdisc * | qdisc | ) |
Get rate of TBF qdisc.
References rtnl_tbf::qt_mask, rtnl_tbf::qt_rate, and rtnl_ratespec::rs_rate.
int rtnl_qdisc_tbf_get_rate_bucket | ( | struct rtnl_qdisc * | qdisc | ) |
Get rate bucket size of TBF qdisc.
References rtnl_tbf::qt_mask, and rtnl_tbf::qt_rate_bucket.
int rtnl_qdisc_tbf_get_rate_cell | ( | struct rtnl_qdisc * | qdisc | ) |
Get rate cell size of TBF qdisc.
References rtnl_tbf::qt_mask, rtnl_tbf::qt_rate, and rtnl_ratespec::rs_cell_log.
int rtnl_qdisc_tbf_set_limit | ( | struct rtnl_qdisc * | qdisc, |
int | limit | ||
) |
Set limit of TBF qdisc.
References NLE_NOMEM, rtnl_tbf::qt_limit, and rtnl_tbf::qt_mask.
Referenced by rtnl_qdisc_tbf_set_limit_by_latency().
int rtnl_qdisc_tbf_set_limit_by_latency | ( | struct rtnl_qdisc * | qdisc, |
int | latency | ||
) |
Set limit of TBF qdisc by latency.
Calculates and sets the limit based on the desired latency and the configured rate and peak rate. In order for this operation to succeed, the rate and if required the peak rate must have been set in advance.
References NLE_MISSING_ATTR, NLE_NOMEM, rtnl_tbf::qt_mask, rtnl_tbf::qt_peakrate, rtnl_tbf::qt_peakrate_bucket, rtnl_tbf::qt_rate, rtnl_tbf::qt_rate_bucket, and rtnl_qdisc_tbf_set_limit().
int rtnl_qdisc_tbf_set_mpu | ( | struct rtnl_qdisc * | qdisc, |
int | mpu | ||
) |
Set MPU of TBF qdisc.
References NLE_NOMEM, rtnl_tbf::qt_mask, and rtnl_tbf::qt_mpu.
int rtnl_qdisc_tbf_set_peakrate | ( | struct rtnl_qdisc * | qdisc, |
int | rate, | ||
int | bucket, | ||
int | cell | ||
) |
Set peak rate of TBF qdisc.
References NLE_NOMEM, rtnl_tbf::qt_mask, rtnl_tbf::qt_peakrate, rtnl_tbf::qt_peakrate_bucket, rtnl_tbf::qt_peakrate_txtime, rtnl_ratespec::rs_cell_log, rtnl_ratespec::rs_rate, and rtnl_tc_calc_txtime().
int rtnl_qdisc_tbf_set_rate | ( | struct rtnl_qdisc * | qdisc, |
int | rate, | ||
int | bucket, | ||
int | cell | ||
) |
Set rate of TBF qdisc.
References NLE_NOMEM, rtnl_tbf::qt_mask, rtnl_tbf::qt_rate, rtnl_tbf::qt_rate_bucket, rtnl_tbf::qt_rate_txtime, rtnl_ratespec::rs_cell_log, rtnl_ratespec::rs_rate, and rtnl_tc_calc_txtime().