MQPRIO - Multiqueue Priority Qdisc (Offloaded Hardware QOS)


   tc  qdisc ... dev dev ( parent classid | root) [ handle major: ] mqprio
   [  numtc  tcs  ]  [  map  P0  P1  P2...   ]  [  queues   count1@offset1
   count2@offset2 ...  ] [ hw 1|0 ]


   The  MQPRIO  qdisc  is  a simple queuing discipline that allows mapping
   traffic  flows  to  hardware  queue  ranges  using  priorities  and   a
   configurable priority to traffic class mapping. A traffic class in this
   context is a set of contiguous qdisc classes which map 1:1 to a set  of
   hardware exposed queues.

   By  default the qdisc allocates a pfifo qdisc (packet limited first in,
   first out queue) per TX queue exposed by the lower layer device.  Other
   queuing  disciplines  may  be  added subsequently. Packets are enqueued
   using the map parameter and hashed across the indicated queues  in  the
   offset  and  count.   By default these parameters are configured by the
   hardware driver to match the hardware QOS structures.

   Enabled hardware can provide hardware QOS with  the  ability  to  steer
   traffic  flows  to  designated  traffic classes provided by this qdisc.
   Configuring the hardware based QOS mechanism is outside  the  scope  of
   this  qdisc.  Tools  such  as  lldpad and ethtool exist to provide this
   functionality. Also further qdiscs may  be  added  to  the  classes  of
   MQPRIO to create more complex configurations.


   On  creation  with  'tc  qdisc  add', eight traffic classes are created
   mapping priorities 0..7 to traffic classes 0..7 and priorities  greater
   than  7  to  traffic class 0. This requires base driver support and the
   creation will fail on devices that do not support hardware QOS schemes.

   These defaults can be overridden using the qdisc parameters.  Providing
   the 'hw 0' flag allows software to run without hardware coordination.

   If  hardware coordination is being used and arguments are provided that
   the hardware can not support then an error is returned. For many  users
   hardware defaults should work reasonably well.

   As one specific example numerous Ethernet cards support the 802.1Q link
   strict priority transmission selection algorithm (TSA). MQPRIO  enabled
   hardware  in  conjunction  with  the  classification  methods below can
   provide hardware offloaded support for this TSA.


   Multiple methods are available to set the  SKB  priority  which  MQPRIO
   uses to select which traffic class to enqueue the packet.

   From user space
          A  process with sufficient privileges can encode the destination
          class directly with SO_PRIORITY, see socket(7).

   with iptables/nftables
          An iptables/nftables rule can be created to match traffic  flows
          and set the priority.  iptables(8)

   with net_prio cgroups
          The  net_prio  cgroup  can  be  used  to set the priority of all
          sockets  belong  to  an  application.  See  kernel  and   cgroup
          documentation for details.


   num_tc Number of traffic classes to use upto 16 classes supported.

   map    The  priority  to  traffic class map. Maps priorities 0..15 to a
          specified traffic class.

   queues Provide count and offset of queue range for each traffic  class.
          In  the  format,  count@offset.   Queue  ranges for each traffic
          classes cannot overlap and must be a contiguous range of queues.

   hw     Set to 1 to use hardware QOS defaults.  Set  to  0  to  override
          hardware defaults with user specified values.


   John Fastabend, <>

More Linux Commands

startx(1) - initialize an X session - Linux manual page.....
The startx script is a front end to xinit(1) that provides a somewhat nicer user interface for running a single session of the X Window System. It is often run

auparse_goto_record_num(3) - move record cursor to specific
auparse_goto_record_num will move the internal library cursors to point to a specific physical record number. Records within the same event are numbered startin

xtrap(1x) - XTrap sample clients (Commands - Linux man page)
These commands are SAMPLE CLIENTS provided with the XTrap X Server Extension Sources, Version 3.3. XTrap is an X Server extension which facilitates the capturin

XListProperties(3) - obtain and change window properties....
The XGetWindowProperty function returns the actual type of the property; the actual format of the property; the number of 8-bit, 16-bit, or 32-bit items transfe

clrtoeol(3ncurses) - clear all or part of a curses window...
The erase and werase routines copy blanks to every position in the window, clearing the screen. The clear and wclear routines are like erase and werase, but the

fork(3am) basic process management - Linux manual page......
The fork extension adds three functions, as follows. fork() This function creates a new process. The return value is the zero in the child and the process-id nu

XCopyArea(3) - copy areas (Library - Linux man page)........
The XCopyArea function combines the specified rectangle of src with the specified rectangle of dest. The drawables must have the same root and depth, or a BadMa

XtDisplay(3) - obtain window information about a widget.....
XtDisplay returns the display pointer for the specified widget. XtDisplayOfObject returns the display pointer for the specified object. XtScreen returns the scr

ExtUtils::Mkbootstrap(3pm) - make a bootstrap file for use b
Mkbootstrap typically gets called from an extension Makefile. There is no *.bs file supplied with the extension. Instead, there may be a *_BS file which has cod

ca(1ssl) - sample minimal CA application - Linux man page...
The ca command is a minimal CA application. It can be used to sign certificate requests in a variety of forms and generate CRLs it also maintains a text databas

XShmDetach(3) - X Shared Memory extension functions.........
XShmQueryExtension checks to see if the shared memory extensions are available for the specified display. XShmQueryVersion returns the version numbers of the ex

xsd(1) - Mono's utility for generating schema or class files
xsd is a tool for intended to complement the XML serialization support of Mono. It can do the following tasks: Generate serializable classes From a given XML sc

We can't live, work or learn in freedom unless the software we use is free.