libnl: Packet/Bytes FIFO (pfifo/bfifo)

libnl 3.12.0

Packet/Bytes FIFO (pfifo/bfifo)
Routing Library (libnl-route) » Traffic Control » Queueing Disciplines

The FIFO qdisc comes in two flavours: More...

## Attribute Modification
int | rtnl_qdisc_fifo_set_limit (struct rtnl_qdisc *qdisc, int limit)
| Set limit of FIFO qdisc.
int | rtnl_qdisc_fifo_get_limit (struct rtnl_qdisc *qdisc)
| Get limit of a FIFO qdisc.

## Detailed Description

The FIFO qdisc comes in two flavours:

bfifo (Byte FIFO)
  Allows enqueuing until the currently queued volume in bytes exceeds the configured limit.backlog contains currently enqueued volume in bytes.

pfifo (Packet FIFO)
  Allows enquueing until the currently queued number of packets exceeds the configured limit.

The configuration is exactly the same, the decision which of the two variations is going to be used is made based on the kind of the qdisc (rtnl_tc_set_kind()).

## Function Documentation

## ◆ rtnl_qdisc_fifo_set_limit()

int rtnl_qdisc_fifo_set_limit | ( | struct rtnl_qdisc * | qdisc,
|  | int | limit )

Set limit of FIFO qdisc.

Parameters

  qdisc | FIFO qdisc to be modified.
  limit | New limit.

Returns
  0 on success or a negative error code.

Definition at line 106 of file fifo.c.

References rtnl_tc_data(), and TC_CAST.

Here is the call graph for this function:

## ◆ rtnl_qdisc_fifo_get_limit()

int rtnl_qdisc_fifo_get_limit | ( | struct rtnl_qdisc * | qdisc | ) |

Get limit of a FIFO qdisc.

Parameters

  qdisc | FIFO qdisc.

Returns
  Numeric limit or a negative error code.

Definition at line 124 of file fifo.c.

References rtnl_tc_data(), and TC_CAST.

Here is the call graph for this function: