libnl 3.7.0

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

◆ rtnl_sfq_set_quantum()

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 108 of file sfq.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function:

◆ rtnl_sfq_get_quantum()

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 124 of file sfq.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function:

◆ rtnl_sfq_set_limit()

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 143 of file sfq.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function:

◆ rtnl_sfq_get_limit()

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 159 of file sfq.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function:

◆ rtnl_sfq_set_perturb()

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 179 of file sfq.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function:

◆ rtnl_sfq_get_perturb()

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 195 of file sfq.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function:

◆ rtnl_sfq_get_divisor()

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 213 of file sfq.c.

References rtnl_tc_data(), and TC_CAST.

+ Here is the call graph for this function: