libnl  3.2.24-rc1
Stochastic Fairness Queueing (SFQ)

Attribute Access

void rtnl_sfq_set_quantum (struct rtnl_qdisc *qdisc, int quantum)
 Set quantum of SFQ qdisc. More...
 
int rtnl_sfq_get_quantum (struct rtnl_qdisc *qdisc)
 Get quantum of SFQ qdisc. More...
 
void rtnl_sfq_set_limit (struct rtnl_qdisc *qdisc, int limit)
 Set limit of SFQ qdisc. More...
 
int rtnl_sfq_get_limit (struct rtnl_qdisc *qdisc)
 Get limit of SFQ qdisc. More...
 
void rtnl_sfq_set_perturb (struct rtnl_qdisc *qdisc, int perturb)
 Set perturbation interval of SFQ qdisc. More...
 
int rtnl_sfq_get_perturb (struct rtnl_qdisc *qdisc)
 Get perturbation interval of SFQ qdisc. More...
 
int rtnl_sfq_get_divisor (struct rtnl_qdisc *qdisc)
 Get divisor of SFQ qdisc. More...
 

Detailed Description

Parameter Description
  • Quantum: Number of bytes to send out per slot and round.
  • Perturbation: Timer period between changing the hash function.
  • Limit: Upper limit of queue in number of packets before SFQ starts dropping packets.
  • Divisor: Hash table divisor, i.e. size of hash table.

Function Documentation

void rtnl_sfq_set_quantum ( struct rtnl_qdisc *  qdisc,
int  quantum 
)

Set quantum of SFQ qdisc.

Parameters
qdiscSFQ qdisc to be modified.
quantumNew quantum in bytes.
Returns
0 on success or a negative error code.

Definition at line 114 of file sfq.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function:

int rtnl_sfq_get_quantum ( struct rtnl_qdisc *  qdisc)

Get quantum of SFQ qdisc.

Parameters
qdiscSFQ qdisc.
Returns
Quantum in bytes or a negative error code.

Definition at line 130 of file sfq.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function:

void rtnl_sfq_set_limit ( struct rtnl_qdisc *  qdisc,
int  limit 
)

Set limit of SFQ qdisc.

Parameters
qdiscSFQ qdisc to be modified.
limitNew limit in number of packets.
Returns
0 on success or a negative error code.

Definition at line 149 of file sfq.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function:

int rtnl_sfq_get_limit ( struct rtnl_qdisc *  qdisc)

Get limit of SFQ qdisc.

Parameters
qdiscSFQ qdisc.
Returns
Limit or a negative error code.

Definition at line 165 of file sfq.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function:

void rtnl_sfq_set_perturb ( struct rtnl_qdisc *  qdisc,
int  perturb 
)

Set perturbation interval of SFQ qdisc.

Parameters
qdiscSFQ qdisc to be modified.
perturbNew perturbation interval in seconds.
Note
A value of 0 disables perturbation altogether.
Returns
0 on success or a negative error code.

Definition at line 185 of file sfq.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function:

int rtnl_sfq_get_perturb ( struct rtnl_qdisc *  qdisc)

Get perturbation interval of SFQ qdisc.

Parameters
qdiscSFQ qdisc.
Returns
Perturbation interval in seconds or a negative error code.

Definition at line 201 of file sfq.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function:

int rtnl_sfq_get_divisor ( struct rtnl_qdisc *  qdisc)

Get divisor of SFQ qdisc.

Parameters
qdiscSFQ qdisc.
Returns
Divisor in number of entries or a negative error code.

Definition at line 219 of file sfq.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function: