PFIFO_FAST

The following class provides access to the pfifo_fast queueing discipline:


class PFifoFastQDisc(qdisc_handle: Handle, parent_handle: Optional[Handle], *, txqueuelen: Optional[int] = None, bands: Optional[int] = None, priomap: Optional[Sequence[int]] = None)[source]

Bases: QDisc

This class provides access to the pfifo_fast queueing discipline of Linux (see tc-pfifo_fast(8)).

Parameters:
  • qdisc_handle – handle of this PFifoFastQDisc

  • parent_handle – handle of parent, or None if this is a root queuing discipline

  • txqueuelen – as documented in tc-pfifo_fast(8)

  • bands – as documented in tc-pfifo_fast(8)

  • priomap – as documented in tc-pfifo_fast(8)

Only txqueuelen is used when creating a new pfifo_fast queuing discipline. If bands or priomap are specified, this will raise a TcError exception.

get_description() str[source]

Returns a string describing the queuing discipline and its attributes

get_txqueuelen() Optional[int][source]

Returns the queue length for each band, if specified.

set_txqueuelen(txqueuelen: Optional[int]) None[source]

Set the queue length for each band (if None, use the interface’s txqueuelen).

qdisc_creation_args() List[str][source]

Returns the arguments expected by the tc(8) command to create a pfifo_fast qdisc

dump(outfile: TextIO, level=0, qclass_map: Optional[Mapping[Handle, QClass]] = None)

Recursively dump this Qdisc to outfile.

The qclass_map, if present, is used to determine the destination QClass objects of traffic filters.

get_config() QDiscConfig

Returns the QDiscConfig where this QDisc/QClass has been instantiated, or None if not instantiated.

get_handle() Handle

Returns the QDisc/QClass handle

get_interface() Optional[str]

Returns the interface where this QDisc/QClass has been instantiated, or None if the QDisc/QClass is not instantiated.

get_parent_handle() Optional[Handle]

Returns the handle of the parent of this QDisc/QClass

get_stats() Optional[QStats]

Returns queuing stats.

is_default() bool

Returns True if this QDisc is the default qdisc used by the kernel.

static is_ingress() bool

Returns True if this QDisc is the ingress qdisc

is_root() bool

Returns True if this is a root QDisc