Intel® Ethernet Controller E810 Application Device Queues (ADQ)
Configuration Guide
ADQ VF Configuration
The instructions in this section show how to configure ADQ on the SUT using the VF interface created in either SUT Configuration Bare Metal VF or SUT Configuration VF Inside a VM. If using a VM, the ADQ configuration should be done inside the VM.
- Enable
channel-pkt-inspect-optimize on the VF interface(s):ethtool --set-priv-flags $iface_vf channel-pkt-inspect-optimize on - Follow the instructions in ADQ Configuration on SUT, and also the tuning steps listed in the applicable sections for netperf, Memcached, Redis, and NGINX for application-specific system tuning for the VF interface.
When creating Traffic Classes (TCs), TC Filter(s), and issuing any ethtool commands, replace
$iface with$iface_vf , and$ipaddr with$ipaddr_vf to use the VF interface and IP Address.For example, when creating a TC for the VF, specify the
$iface_vf interface.ethtool -K $iface_vf hw-tc-offload on ${pathtotc}/tc qdisc add dev $iface_vf root mqprio num_tc 2 map 0 1 queues $num_queues_tc0@0 $num_queues_tc1@$num_queues_tc0 hw 1 mode channel Note: Due to timing issues, applying TC filters immediately after the tc qdisc add command might result system reboot/crash. It is recommended to add two seconds of sleep time after thetc qdisc add command before adding TC filters.Note:The total number of queues in the Traffic Classes (combined) is limited to the total number of queues in the VF. Refer to iavf documentation to determine total number of queues available for the VF before creating TCs. The following example creates one TC filter on the VF interface under test:
${pathtotc}/tc qdisc add dev $iface_vf clsact ${pathtotc}/tc filter add dev $iface_vf protocol ip ingress prio 1 flower dst_ip $ipaddr_vf/32 ip_proto tcp dst_port $app_port skip_sw hw_tc 1 - Confirm TC configuration:
-
After the test finishes, remove the ADQ VF configuration following the steps in Clear the ADQ Configuration.
To remove VF interfaces:
echo 0 > /sys/class/net/$iface_pf/device/sriov_numvfs
All other ADQ configuration follows section ADQ Configuration on SUT and the application-specific sections that follow.