brintos

brintos / linux-shallow public Read only

0
0
Text · 1.5 KiB · 6b41709 Raw
38 lines · plain
1.. SPDX-License-Identifier: GPL-2.02 3=========================4TC queue based filtering5=========================6 7TC can be used for directing traffic to either a set of queues or8to a single queue on both the transmit and receive side.9 10On the transmit side:11 121) TC filter directing traffic to a set of queues is achieved13   using the action skbedit priority for Tx priority selection,14   the priority maps to a traffic class (set of queues) when15   the queue-sets are configured using mqprio.16 172) TC filter directs traffic to a transmit queue with the action18   skbedit queue_mapping $tx_qid. The action skbedit queue_mapping19   for transmit queue is executed in software only and cannot be20   offloaded.21 22Likewise, on the receive side, the two filters for selecting set of23queues and/or a single queue are supported as below:24 251) TC flower filter directs incoming traffic to a set of queues using26   the 'hw_tc' option.27   hw_tc $TCID - Specify a hardware traffic class to pass matching28   packets on to. TCID is in the range 0 through 15.29 302) TC filter with action skbedit queue_mapping $rx_qid selects a31   receive queue. The action skbedit queue_mapping for receive queue32   is supported only in hardware. Multiple filters may compete in33   the hardware for queue selection. In such case, the hardware34   pipeline resolves conflicts based on priority. On Intel E81035   devices, TC filter directing traffic to a queue have higher36   priority over flow director filter assigning a queue. The hash37   filter has lowest priority.38