Rsphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftargetA/translations/zh_CN/networking/device_drivers/ethernet/intel/i40emodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftargetA/translations/zh_TW/networking/device_drivers/ethernet/intel/i40emodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftargetA/translations/it_IT/networking/device_drivers/ethernet/intel/i40emodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftargetA/translations/ja_JP/networking/device_drivers/ethernet/intel/i40emodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftargetA/translations/ko_KR/networking/device_drivers/ethernet/intel/i40emodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftargetA/translations/sp_SP/networking/device_drivers/ethernet/intel/i40emodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h!SPDX-License-Identifier: GPL-2.0+h]h!SPDX-License-Identifier: GPL-2.0+}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhh[/var/lib/git/docbuild/linux/Documentation/networking/device_drivers/ethernet/intel/i40e.rsthKubhsection)}(hhh](htitle)}(hALinux Base Driver for the Intel(R) Ethernet Controller 700 Seriesh]hALinux Base Driver for the Intel(R) Ethernet Controller 700 Series}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh paragraph)}(hHIntel 40 Gigabit Linux driver. Copyright(c) 1999-2018 Intel Corporation.h]hHIntel 40 Gigabit Linux driver. Copyright(c) 1999-2018 Intel Corporation.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(hContentsh]hContents}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhK ubh bullet_list)}(hhh](h list_item)}(hOverviewh]h)}(hhh]hOverview}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubh)}(hIdentifying Your Adapterh]h)}(hj h]hIdentifying Your Adapter}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubh)}(hIntel(R) Ethernet Flow Directorh]h)}(hj!h]hIntel(R) Ethernet Flow Director}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubh)}(hAdditional Configurationsh]h)}(hj8h]hAdditional Configurations}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj6ubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubh)}(h Known Issuesh]h)}(hjOh]h Known Issues}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjMubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubh)}(h Support h]h)}(hSupporth]hSupport}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjdubah}(h]h ]h"]h$]h&]uh1hhhhhhhhNubeh}(h]h ]h"]h$]h&]bullet-uh1hhhhK hhhhubh)}(hDriver information can be obtained using ethtool, lspci, and ifconfig. Instructions on updating ethtool can be found in the section Additional Configurations later in this document.h]hDriver information can be obtained using ethtool, lspci, and ifconfig. Instructions on updating ethtool can be found in the section Additional Configurations later in this document.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hFor questions related to hardware requirements, refer to the documentation supplied with your Intel adapter. All hardware requirements listed apply to use with Linux.h]hFor questions related to hardware requirements, refer to the documentation supplied with your Intel adapter. All hardware requirements listed apply to use with Linux.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubeh}(h]contentsah ]h"]contentsah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(hIdentifying Your Adapterh]hIdentifying Your Adapter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(h=The driver is compatible with devices based on the following:h]h=The driver is compatible with devices based on the following:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hjhhubh block_quote)}(h* Intel(R) Ethernet Controller X710 * Intel(R) Ethernet Controller XL710 * Intel(R) Ethernet Network Connection X722 * Intel(R) Ethernet Controller XXV710 h]h)}(hhh](h)}(h!Intel(R) Ethernet Controller X710h]h)}(hjh]h!Intel(R) Ethernet Controller X710}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK"hjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(h"Intel(R) Ethernet Controller XL710h]h)}(hjh]h"Intel(R) Ethernet Controller XL710}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK#hjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(h)Intel(R) Ethernet Network Connection X722h]h)}(hjh]h)Intel(R) Ethernet Network Connection X722}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK$hjubah}(h]h ]h"]h$]h&]uh1hhjubh)}(h$Intel(R) Ethernet Controller XXV710 h]h)}(h#Intel(R) Ethernet Controller XXV710h]h#Intel(R) Ethernet Controller XXV710}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK%hjubah}(h]h ]h"]h$]h&]uh1hhjubeh}(h]h ]h"]h$]h&]j*uh1hhhhK"hjubah}(h]h ]h"]h$]h&]uh1jhhhK"hjhhubh)}(hRFor the best performance, make sure the latest NVM/FW is installed on your device.h]hRFor the best performance, make sure the latest NVM/FW is installed on your device.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK'hjhhubh)}(hFor information on how to identify your adapter, and for the latest NVM/FW images and Intel network drivers, refer to the Intel Support website: https://www.intel.com/supporth](hFor information on how to identify your adapter, and for the latest NVM/FW images and Intel network drivers, refer to the Intel Support website: }(hjHhhhNhNubh reference)}(hhttps://www.intel.com/supporth]hhttps://www.intel.com/support}(hjRhhhNhNubah}(h]h ]h"]h$]h&]refurijTuh1jPhjHubeh}(h]h ]h"]h$]h&]uh1hhhhK*hjhhubh)}(hhh](h)}(hSFP+ and QSFP+ Devicesh]hSFP+ and QSFP+ Devices}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghhhhhK/ubh)}(hFor information about supported media, refer to this document: https://www.intel.com/content/dam/www/public/us/en/documents/release-notes/xl710-ethernet-controller-feature-matrix.pdfh](h?For information about supported media, refer to this document: }(hjxhhhNhNubjQ)}(hwhttps://www.intel.com/content/dam/www/public/us/en/documents/release-notes/xl710-ethernet-controller-feature-matrix.pdfh]hwhttps://www.intel.com/content/dam/www/public/us/en/documents/release-notes/xl710-ethernet-controller-feature-matrix.pdf}(hjhhhNhNubah}(h]h ]h"]h$]h&]refurijuh1jPhjxubeh}(h]h ]h"]h$]h&]uh1hhhhK0hjghhubh)}(hX^NOTE: Some adapters based on the Intel(R) Ethernet Controller 700 Series only support Intel Ethernet Optics modules. On these adapters, other modules are not supported and will not function. In all cases Intel recommends using Intel Ethernet Optics; other modules may function but are not validated by Intel. Contact Intel for supported media types.h]hX^NOTE: Some adapters based on the Intel(R) Ethernet Controller 700 Series only support Intel Ethernet Optics modules. On these adapters, other modules are not supported and will not function. In all cases Intel recommends using Intel Ethernet Optics; other modules may function but are not validated by Intel. Contact Intel for supported media types.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK3hjghhubh)}(hNOTE: For connections based on Intel(R) Ethernet Controller 700 Series, support is dependent on your system board. Please see your vendor for details.h]hNOTE: For connections based on Intel(R) Ethernet Controller 700 Series, support is dependent on your system board. Please see your vendor for details.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK9hjghhubh)}(hNOTE: In systems that do not have adequate airflow to cool the adapter and optical modules, you must use high temperature optical modules.h]hNOTE: In systems that do not have adequate airflow to cool the adapter and optical modules, you must use high temperature optical modules.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK /sys/class/net/$dev/device/sriov_numvfs #enable VFs #echo 0 > /sys/class/net/$dev/device/sriov_numvfs #disable VFsh]h#echo $num_vf_enabled > /sys/class/net/$dev/device/sriov_numvfs #enable VFs #echo 0 > /sys/class/net/$dev/device/sriov_numvfs #disable VFs}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKChjhhubh)}(h\For example, the following instructions will configure PF eth0 and the first VF on VLAN 10::h]h[For example, the following instructions will configure PF eth0 and the first VF on VLAN 10:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKFhjhhubj)}(h#$ ip link set dev eth0 vf 0 vlan 10h]h#$ ip link set dev eth0 vf 0 vlan 10}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKIhjhhubeh}(h]virtual-functions-vfsah ]h"]virtual functions (vfs)ah$]h&]uh1hhjhhhhhK@ubh)}(hhh](h)}(hVLAN Tag Packet Steeringh]hVLAN Tag Packet Steering}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKLubh)}(hXAllows you to send all packets with a specific VLAN tag to a particular SR-IOV virtual function (VF). Further, this feature allows you to designate a particular VF as trusted, and allows that trusted VF to request selective promiscuous mode on the Physical Function (PF).h]hXAllows you to send all packets with a specific VLAN tag to a particular SR-IOV virtual function (VF). Further, this feature allows you to designate a particular VF as trusted, and allows that trusted VF to request selective promiscuous mode on the Physical Function (PF).}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKMhjhhubh)}(hTTo set a VF as trusted or untrusted, enter the following command in the Hypervisor::h]hSTo set a VF as trusted or untrusted, enter the following command in the Hypervisor:}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKRhjhhubj)}(h*# ip link set dev eth0 vf 1 trust [on|off]h]h*# ip link set dev eth0 vf 1 trust [on|off]}hjGsbah}(h]h ]h"]h$]h&]hhuh1jhhhKUhjhhubh)}(hmOnce the VF is designated as trusted, use the following commands in the VM to set the VF to promiscuous mode.h]hmOnce the VF is designated as trusted, use the following commands in the VM to set the VF to promiscuous mode.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKWhjhhubj)}(hFor promiscuous all: #ip link set eth2 promisc on Where eth2 is a VF interface in the VM For promiscuous Multicast: #ip link set eth2 allmulticast on Where eth2 is a VF interface in the VMh]hFor promiscuous all: #ip link set eth2 promisc on Where eth2 is a VF interface in the VM For promiscuous Multicast: #ip link set eth2 allmulticast on Where eth2 is a VF interface in the VM}hjcsbah}(h]h ]h"]h$]h&]hhuh1jhhhK\hjhhubh)}(hX NOTE: By default, the ethtool priv-flag vf-true-promisc-support is set to "off",meaning that promiscuous mode for the VF will be limited. To set the promiscuous mode for the VF to true promiscuous and allow the VF to see all ingress traffic, use the following command::h]hXNOTE: By default, the ethtool priv-flag vf-true-promisc-support is set to “off”,meaning that promiscuous mode for the VF will be limited. To set the promiscuous mode for the VF to true promiscuous and allow the VF to see all ingress traffic, use the following command:}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKdhjhhubj)}(h:#ethtool -set-priv-flags p261p1 vf-true-promisc-support onh]h:#ethtool -set-priv-flags p261p1 vf-true-promisc-support on}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKihjhhubh)}(hXThe vf-true-promisc-support priv-flag does not enable promiscuous mode; rather, it designates which type of promiscuous mode (limited or true) you will get when you enable promiscuous mode using the ip link commands above. Note that this is a global setting that affects the entire device. However,the vf-true-promisc-support priv-flag is only exposed to the first PF of the device. The PF remains in limited promiscuous mode (unless it is in MFP mode) regardless of the vf-true-promisc-support setting.h]hXThe vf-true-promisc-support priv-flag does not enable promiscuous mode; rather, it designates which type of promiscuous mode (limited or true) you will get when you enable promiscuous mode using the ip link commands above. Note that this is a global setting that affects the entire device. However,the vf-true-promisc-support priv-flag is only exposed to the first PF of the device. The PF remains in limited promiscuous mode (unless it is in MFP mode) regardless of the vf-true-promisc-support setting.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKkhjhhubh)}(h.Now add a VLAN interface on the VF interface::h]h-Now add a VLAN interface on the VF interface:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKshjhhubj)}(h5#ip link add link eth2 name eth2.100 type vlan id 100h]h5#ip link add link eth2 name eth2.100 type vlan id 100}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKuhjhhubh)}(hNote that the order in which you set the VF to promiscuous mode and add the VLAN interface does not matter (you can do either first). The end result in this example is that the VF will get all traffic that is tagged with VLAN 100.h]hNote that the order in which you set the VF to promiscuous mode and add the VLAN interface does not matter (you can do either first). The end result in this example is that the VF will get all traffic that is tagged with VLAN 100.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKwhjhhubeh}(h]vlan-tag-packet-steeringah ]h"]vlan tag packet steeringah$]h&]uh1hhjhhhhhKLubh)}(hhh](h)}(hIntel(R) Ethernet Flow Directorh]hIntel(R) Ethernet Flow Director}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK|ubh)}(h>The Intel Ethernet Flow Director performs the following tasks:h]h>The Intel Ethernet Flow Director performs the following tasks:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK}hjhhubh)}(hhh](h)}(hEDirects receive packets according to their flows to different queues.h]h)}(hjh]hEDirects receive packets according to their flows to different queues.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjhhhhhNubh)}(h8Enables tight control on routing a flow in the platform.h]h)}(hjh]h8Enables tight control on routing a flow in the platform.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjhhhhhNubh)}(h.Matches flows and CPU cores for flow affinity.h]h)}(hjh]h.Matches flows and CPU cores for flow affinity.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhjhhhhhNubh)}(heSupports multiple parameters for flexible flow classification and load balancing (in SFP mode only). h]h)}(hdSupports multiple parameters for flexible flow classification and load balancing (in SFP mode only).h]hdSupports multiple parameters for flexible flow classification and load balancing (in SFP mode only).}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj4ubah}(h]h ]h"]h$]h&]uh1hhjhhhhhNubeh}(h]h ]h"]h$]h&]jjuh1hhhhKhjhhubh)}(hX~NOTE: The Linux i40e driver supports the following flow types: IPv4, TCPv4, and UDPv4. For a given flow type, it supports valid combinations of IP addresses (source or destination) and UDP/TCP ports (source and destination). For example, you can supply only a source IP address, a source IP address and a destination port, or any combination of one or more of these four parameters.h]hX~NOTE: The Linux i40e driver supports the following flow types: IPv4, TCPv4, and UDPv4. For a given flow type, it supports valid combinations of IP addresses (source or destination) and UDP/TCP ports (source and destination). For example, you can supply only a source IP address, a source IP address and a destination port, or any combination of one or more of these four parameters.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hXrNOTE: The Linux i40e driver allows you to filter traffic based on a user-defined flexible two-byte pattern and offset by using the ethtool user-def and mask fields. Only L3 and L4 flow types are supported for user-defined flexible filters. For a given flow type, you must clear all Intel Ethernet Flow Director filters before changing the input set (for that flow type).h]hXrNOTE: The Linux i40e driver allows you to filter traffic based on a user-defined flexible two-byte pattern and offset by using the ethtool user-def and mask fields. Only L3 and L4 flow types are supported for user-defined flexible filters. For a given flow type, you must clear all Intel Ethernet Flow Director filters before changing the input set (for that flow type).}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(h7To enable or disable the Intel Ethernet Flow Director::h]h6To enable or disable the Intel Ethernet Flow Director:}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(h!# ethtool -K ethX ntuple h]h!# ethtool -K ethX ntuple }hj|sbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjhhubh)}(hWhen disabling ntuple filters, all the user programmed filters are flushed from the driver cache and hardware. All needed filters must be re-added when ntuple is re-enabled.h]hWhen disabling ntuple filters, all the user programmed filters are flushed from the driver cache and hardware. All needed filters must be re-added when ntuple is re-enabled.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hETo add a filter that directs packet to queue 2, use -U or -N switch::h]hDTo add a filter that directs packet to queue 2, use -U or -N switch:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(hw# ethtool -N ethX flow-type tcp4 src-ip 192.168.10.1 dst-ip \ 192.168.10.2 src-port 2000 dst-port 2001 action 2 [loc 1]h]hw# ethtool -N ethX flow-type tcp4 src-ip 192.168.10.1 dst-ip \ 192.168.10.2 src-port 2000 dst-port 2001 action 2 [loc 1]}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjhhubh)}(hBTo set a filter using only the source and destination IP address::h]hATo set a filter using only the source and destination IP address:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(h[# ethtool -N ethX flow-type tcp4 src-ip 192.168.10.1 dst-ip \ 192.168.10.2 action 2 [loc 1]h]h[# ethtool -N ethX flow-type tcp4 src-ip 192.168.10.1 dst-ip \ 192.168.10.2 action 2 [loc 1]}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjhhubh)}(h.To see the list of filters currently present::h]h-To see the list of filters currently present:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(h# ethtool <-u|-n> ethXh]h# ethtool <-u|-n> ethX}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjhhubeh}(h]intel-r-ethernet-flow-directorah ]h"]intel(r) ethernet flow directorah$]h&]uh1hhjhhhhhK|ubh)}(hhh](h)}(h2Application Targeted Routing (ATR) Perfect Filtersh]h2Application Targeted Routing (ATR) Perfect Filters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hXATR is enabled by default when the kernel is in multiple transmit queue mode. An ATR Intel Ethernet Flow Director filter rule is added when a TCP-IP flow starts and is deleted when the flow ends. When a TCP-IP Intel Ethernet Flow Director rule is added from ethtool (Sideband filter), ATR is turned off by the driver. To re-enable ATR, the sideband can be disabled with the ethtool -K option. For example::h]hXATR is enabled by default when the kernel is in multiple transmit queue mode. An ATR Intel Ethernet Flow Director filter rule is added when a TCP-IP flow starts and is deleted when the flow ends. When a TCP-IP Intel Ethernet Flow Director rule is added from ethtool (Sideband filter), ATR is turned off by the driver. To re-enable ATR, the sideband can be disabled with the ethtool -K option. For example:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj)}(h$ethtool -K [adapter] ntuple [off|on]h]h$ethtool -K [adapter] ntuple [off|on]}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjhhubh)}(hIf sideband is re-enabled after ATR is re-enabled, ATR remains enabled until a TCP-IP flow is added. When all TCP-IP sideband rules are deleted, ATR is automatically re-enabled.h]hIf sideband is re-enabled after ATR is re-enabled, ATR remains enabled until a TCP-IP flow is added. When all TCP-IP sideband rules are deleted, ATR is automatically re-enabled.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(hPackets that match the ATR rules are counted in fdir_atr_match stats in ethtool, which also can be used to verify whether ATR rules still exist.h]hPackets that match the ATR rules are counted in fdir_atr_match stats in ethtool, which also can be used to verify whether ATR rules still exist.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubeh}(h]0application-targeted-routing-atr-perfect-filtersah ]h"]2application targeted routing (atr) perfect filtersah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(hSideband Perfect Filtersh]hSideband Perfect Filters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhhhhhKubh)}(hSideband Perfect Filters are used to direct traffic that matches specified characteristics. They are enabled through ethtool's ntuple interface. To add a new filter use the following command::h]hSideband Perfect Filters are used to direct traffic that matches specified characteristics. They are enabled through ethtool’s ntuple interface. To add a new filter use the following command:}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjEhhubj)}(hmethtool -U flow-type src-ip dst-ip src-port \ dst-port action h]hmethtool -U flow-type src-ip dst-ip src-port \ dst-port action }hjdsbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjEhhubhdefinition_list)}(hhh]hdefinition_list_item)}(hWhere: - the ethernet device to program - can be ip4, tcp4, udp4, or sctp4 - the ip address to match on - the port number to match on - the queue to direct traffic towards (-1 discards matching traffic) h](hterm)}(hWhere:h]hWhere:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j}hhhKhjyubh definition)}(hhh]h)}(h - the ethernet device to program - can be ip4, tcp4, udp4, or sctp4 - the ip address to match on - the port number to match on - the queue to direct traffic towards (-1 discards matching traffic)h]h - the ethernet device to program - can be ip4, tcp4, udp4, or sctp4 - the ip address to match on - the port number to match on - the queue to direct traffic towards (-1 discards matching traffic)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jwhhhKhjtubah}(h]h ]h"]h$]h&]uh1jrhjEhhhhhNubh)}(h@Use the following command to display all of the active filters::h]h?Use the following command to display all of the active filters:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjEhhubj)}(hethtool -u h]hethtool -u }hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjEhhubh)}(h.Use the following command to delete a filter::h]h-Use the following command to delete a filter:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjEhhubj)}(hethtool -U delete h]hethtool -U delete }hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjEhhubh)}(hWhere is the filter id displayed when printing all the active filters, and may also have been specified using "loc " when adding the filter.h]hWhere is the filter id displayed when printing all the active filters, and may also have been specified using “loc ” when adding the filter.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjEhhubh)}(hThe following example matches TCP traffic sent from 192.168.0.1, port 5300, directed to 192.168.0.5, port 80, and sends it to queue 7::h]hThe following example matches TCP traffic sent from 192.168.0.1, port 5300, directed to 192.168.0.5, port 80, and sends it to queue 7:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjEhhubj)}(hmethtool -U enp130s0 flow-type tcp4 src-ip 192.168.0.1 dst-ip 192.168.0.5 \ src-port 5300 dst-port 80 action 7h]hmethtool -U enp130s0 flow-type tcp4 src-ip 192.168.0.1 dst-ip 192.168.0.5 \ src-port 5300 dst-port 80 action 7}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjEhhubh)}(hFor each flow-type, the programmed filters must all have the same matching input set. For example, issuing the following two commands is acceptable::h]hFor each flow-type, the programmed filters must all have the same matching input set. For example, issuing the following two commands is acceptable:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjEhhubj)}(hethtool -U enp130s0 flow-type ip4 src-ip 192.168.0.1 src-port 5300 action 7 ethtool -U enp130s0 flow-type ip4 src-ip 192.168.0.5 src-port 55 action 10h]hethtool -U enp130s0 flow-type ip4 src-ip 192.168.0.1 src-port 5300 action 7 ethtool -U enp130s0 flow-type ip4 src-ip 192.168.0.5 src-port 55 action 10}hj"sbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjEhhubh)}(h}Issuing the next two commands, however, is not acceptable, since the first specifies src-ip and the second specifies dst-ip::h]h|Issuing the next two commands, however, is not acceptable, since the first specifies src-ip and the second specifies dst-ip:}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjEhhubj)}(hethtool -U enp130s0 flow-type ip4 src-ip 192.168.0.1 src-port 5300 action 7 ethtool -U enp130s0 flow-type ip4 dst-ip 192.168.0.5 src-port 55 action 10h]hethtool -U enp130s0 flow-type ip4 src-ip 192.168.0.1 src-port 5300 action 7 ethtool -U enp130s0 flow-type ip4 dst-ip 192.168.0.5 src-port 55 action 10}hj>sbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjEhhubh)}(hThe second command will fail with an error. You may program multiple filters with the same fields, using different values, but, on one device, you may not program two tcp4 filters with different matching fields.h]hThe second command will fail with an error. You may program multiple filters with the same fields, using different values, but, on one device, you may not program two tcp4 filters with different matching fields.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjEhhubh)}(huMatching on a sub-portion of a field is not supported by the i40e driver, thus partial mask fields are not supported.h]huMatching on a sub-portion of a field is not supported by the i40e driver, thus partial mask fields are not supported.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjEhhubh)}(hThe driver also supports matching user-defined data within the packet payload. This flexible data is specified using the "user-def" field of the ethtool command in the following way:h]hThe driver also supports matching user-defined data within the packet payload. This flexible data is specified using the “user-def” field of the ethtool command in the following way:}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjEhhubhtable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhj}ubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhj}ubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]h)}(h31 28 24 20 16h]h31 28 24 20 16}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h15 12 8 4 0h]h15 12 8 4 0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]h)}(hoffset into packet payloadh]hoffset into packet payload}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]h)}(h2 bytes of flexible datah]h2 bytes of flexible data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]colsKuh1j{hjxubah}(h]h ]h"]h$]h&]uh1jvhjEhhhhhNubh)}(h For example,h]h For example,}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjEhhubj)}(h... user-def 0x4FFFF ...h]h... user-def 0x4FFFF ...}hj.sbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjEhhubh)}(htells the filter to look 4 bytes into the payload and match that value against 0xFFFF. The offset is based on the beginning of the payload, and not the beginning of the packet. Thush]htells the filter to look 4 bytes into the payload and match that value against 0xFFFF. The offset is based on the beginning of the payload, and not the beginning of the packet. Thus}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjEhhubj)}(h'flow-type tcp4 ... user-def 0x8BEAF ...h]h'flow-type tcp4 ... user-def 0x8BEAF ...}hjJsbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjEhhubh)}(h[would match TCP/IPv4 packets which have the value 0xBEAF 8 bytes into the TCP/IPv4 payload.h]h[would match TCP/IPv4 packets which have the value 0xBEAF 8 bytes into the TCP/IPv4 payload.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjEhhubh)}(hX:Note that ICMP headers are parsed as 4 bytes of header and 4 bytes of payload. Thus to match the first byte of the payload, you must actually add 4 bytes to the offset. Also note that ip4 filters match both ICMP frames as well as raw (unknown) ip4 frames, where the payload will be the L3 payload of the IP4 frame.h]hX:Note that ICMP headers are parsed as 4 bytes of header and 4 bytes of payload. Thus to match the first byte of the payload, you must actually add 4 bytes to the offset. Also note that ip4 filters match both ICMP frames as well as raw (unknown) ip4 frames, where the payload will be the L3 payload of the IP4 frame.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjEhhubh)}(hThe maximum offset is 64. The hardware will only read up to 64 bytes of data from the payload. The offset must be even because the flexible data is 2 bytes long and must be aligned to byte 0 of the packet payload.h]hThe maximum offset is 64. The hardware will only read up to 64 bytes of data from the payload. The offset must be even because the flexible data is 2 bytes long and must be aligned to byte 0 of the packet payload.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjEhhubh)}(hXThe user-defined flexible offset is also considered part of the input set and cannot be programmed separately for multiple filters of the same type. However, the flexible data is not part of the input set and multiple filters may use the same offset but match against different data.h]hXThe user-defined flexible offset is also considered part of the input set and cannot be programmed separately for multiple filters of the same type. However, the flexible data is not part of the input set and multiple filters may use the same offset but match against different data.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjEhhubh)}(hX0To create filters that direct traffic to a specific Virtual Function, use the "action" parameter. Specify the action as a 64 bit value, where the lower 32 bits represents the queue number, while the next 8 bits represent which VF. Note that 0 is the PF, so the VF identifier is offset by 1. For example::h]hX3To create filters that direct traffic to a specific Virtual Function, use the “action” parameter. Specify the action as a 64 bit value, where the lower 32 bits represents the queue number, while the next 8 bits represent which VF. Note that 0 is the PF, so the VF identifier is offset by 1. For example:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjEhhubj)}(h... action 0x800000002 ...h]h... action 0x800000002 ...}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjEhhubh)}(hVspecifies to direct traffic to Virtual Function 7 (8 minus 1) into queue 2 of that VF.h]hVspecifies to direct traffic to Virtual Function 7 (8 minus 1) into queue 2 of that VF.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjEhhubh)}(hNote that these filters will not break internal routing rules, and will not route traffic that otherwise would not have been sent to the specified Virtual Function.h]hNote that these filters will not break internal routing rules, and will not route traffic that otherwise would not have been sent to the specified Virtual Function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjEhhubeh}(h]sideband-perfect-filtersah ]h"]sideband perfect filtersah$]h&]uh1hhjhhhhhKubh)}(hhh](h)}(h+Setting the link-down-on-close Private Flagh]h+Setting the link-down-on-close Private Flag}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhM%ubh)}(hWhen the link-down-on-close private flag is set to "on", the port's link will go down when the interface is brought down using the ifconfig ethX down command.h]hWhen the link-down-on-close private flag is set to “on”, the port’s link will go down when the interface is brought down using the ifconfig ethX down command.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM&hjhhubh)}(h is the interface number::h]hvUse the ifconfig command to increase the MTU size. For example, enter the following where is the interface number:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMIhjhhubj)}(hifconfig eth mtu 9000 uph]hifconfig eth mtu 9000 up}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhMLhjhhubh)}(h6Alternatively, you can use the ip command as follows::h]h5Alternatively, you can use the ip command as follows:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMNhjhhubj)}(h9ip link set mtu 9000 dev eth ip link set up dev ethh]h9ip link set mtu 9000 dev eth ip link set up dev eth}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhMPhjhhubh)}(huThis setting is not saved across reboots. The setting change can be made permanent by adding 'MTU=9000' to the file::h]hxThis setting is not saved across reboots. The setting change can be made permanent by adding ‘MTU=9000’ to the file:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMShjhhubj)}(hh/etc/sysconfig/network-scripts/ifcfg-eth // for RHEL /etc/sysconfig/network/ // for SLESh]hh/etc/sysconfig/network-scripts/ifcfg-eth // for RHEL /etc/sysconfig/network/ // for SLES}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhMVhjhhubh)}(h~NOTE: The maximum MTU setting for Jumbo Frames is 9702. This value coincides with the maximum Jumbo Frames size of 9728 bytes.h]h~NOTE: The maximum MTU setting for Jumbo Frames is 9702. This value coincides with the maximum Jumbo Frames size of 9728 bytes.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMYhjhhubh)}(hNOTE: This driver will attempt to use multiple page sized buffers to receive each jumbo packet. This should help to avoid buffer starvation issues when allocating receive packets.h]hNOTE: This driver will attempt to use multiple page sized buffers to receive each jumbo packet. This should help to avoid buffer starvation issues when allocating receive packets.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM\hjhhubeh}(h] jumbo-framesah ]h"] jumbo framesah$]h&]uh1hhjhhhhhMEubh)}(hhh](h)}(hethtoolh]hethtool}(hj3 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0 hhhhhMaubh)}(hXThe driver utilizes the ethtool interface for driver configuration and diagnostics, as well as displaying statistical information. The latest ethtool version is required for this functionality. Download it at: https://www.kernel.org/pub/software/network/ethtool/h](hThe driver utilizes the ethtool interface for driver configuration and diagnostics, as well as displaying statistical information. The latest ethtool version is required for this functionality. Download it at: }(hjA hhhNhNubjQ)}(h4https://www.kernel.org/pub/software/network/ethtool/h]h4https://www.kernel.org/pub/software/network/ethtool/}(hjI hhhNhNubah}(h]h ]h"]h$]h&]refurijK uh1jPhjA ubeh}(h]h ]h"]h$]h&]uh1hhhhMbhj0 hhubeh}(h]ethtoolah ]h"]ethtoolah$]h&]uh1hhjhhhhhMaubh)}(hhh](h)}(h4Supported ethtool Commands and Options for Filteringh]h4Supported ethtool Commands and Options for Filtering}(hji hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjf hhhhhMhubjs)}(hhh](jx)}(hP-n --show-nfc Retrieves the receive network flow classification configurations. h](j~)}(h -n --show-nfch]h -n --show-nfc}(hj~ hhhNhNubah}(h]h ]h"]h$]h&]uh1j}hhhMjhjz ubj)}(hhh]h)}(hARetrieves the receive network flow classification configurations.h]hARetrieves the receive network flow classification configurations.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMjhj ubah}(h]h ]h"]h$]h&]uh1jhjz ubeh}(h]h ]h"]h$]h&]uh1jwhhhMjhjw ubjx)}(hrx-flow-hash tcp4|udp4|ah4|esp4|sctp4|tcp6|udp6|ah6|esp6|sctp6 Retrieves the hash options for the specified network traffic type. h](j~)}(h>rx-flow-hash tcp4|udp4|ah4|esp4|sctp4|tcp6|udp6|ah6|esp6|sctp6h]h>rx-flow-hash tcp4|udp4|ah4|esp4|sctp4|tcp6|udp6|ah6|esp6|sctp6}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j}hhhMmhj ubj)}(hhh]h)}(hBRetrieves the hash options for the specified network traffic type.h]hBRetrieves the hash options for the specified network traffic type.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMmhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jwhhhMmhjw hhubjx)}(hD-N --config-nfc Configures the receive network flow classification. h](j~)}(h-N --config-nfch]h-N --config-nfc}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j}hhhMphj ubj)}(hhh]h)}(h3Configures the receive network flow classification.h]h3Configures the receive network flow classification.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMphj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jwhhhMphjw hhubjx)}(hrx-flow-hash tcp4|udp4|ah4|esp4|sctp4|tcp6|udp6|ah6|esp6|sctp6 m|v|t|s|d|f|n|r... Configures the hash options for the specified network traffic type. h](j~)}(hQrx-flow-hash tcp4|udp4|ah4|esp4|sctp4|tcp6|udp6|ah6|esp6|sctp6 m|v|t|s|d|f|n|r...h]hQrx-flow-hash tcp4|udp4|ah4|esp4|sctp4|tcp6|udp6|ah6|esp6|sctp6 m|v|t|s|d|f|n|r...}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j}hhhMshj ubj)}(hhh]h)}(hCConfigures the hash options for the specified network traffic type.h]hCConfigures the hash options for the specified network traffic type.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMshj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jwhhhMshjw hhubeh}(h]h ]h"]h$]h&]uh1jrhjf hhhhhNubh)}(h%udp4 UDP over IPv4 udp6 UDP over IPv6h]h%udp4 UDP over IPv4 udp6 UDP over IPv6}(hj< hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMuhjf hhubh)}(hf Hash on bytes 0 and 1 of the Layer 4 header of the Rx packet. n Hash on bytes 2 and 3 of the Layer 4 header of the Rx packet.h]hf Hash on bytes 0 and 1 of the Layer 4 header of the Rx packet. n Hash on bytes 2 and 3 of the Layer 4 header of the Rx packet.}(hjJ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMxhjf hhubeh}(h]4supported-ethtool-commands-and-options-for-filteringah ]h"]4supported ethtool commands and options for filteringah$]h&]uh1hhjhhhhhMhubh)}(hhh](h)}(hSpeed and Duplex Configurationh]hSpeed and Duplex Configuration}(hjc hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj` hhhhhM|ubh)}(hIn addressing speed and duplex configuration issues, you need to distinguish between copper-based adapters and fiber-based adapters.h]hIn addressing speed and duplex configuration issues, you need to distinguish between copper-based adapters and fiber-based adapters.}(hjq hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM}hj` hhubh)}(hXIn the default mode, an Intel(R) Ethernet Network Adapter using copper connections will attempt to auto-negotiate with its link partner to determine the best setting. If the adapter cannot establish link with the link partner using auto-negotiation, you may need to manually configure the adapter and link partner to identical settings to establish link and pass packets. This should only be needed when attempting to link with an older switch that does not support auto-negotiation or one that has been forced to a specific speed or duplex mode. Your link partner must match the setting you choose. 1 Gbps speeds and higher cannot be forced. Use the autonegotiation advertising setting to manually set devices for 1 Gbps and higher.h]hXIn the default mode, an Intel(R) Ethernet Network Adapter using copper connections will attempt to auto-negotiate with its link partner to determine the best setting. If the adapter cannot establish link with the link partner using auto-negotiation, you may need to manually configure the adapter and link partner to identical settings to establish link and pass packets. This should only be needed when attempting to link with an older switch that does not support auto-negotiation or one that has been forced to a specific speed or duplex mode. Your link partner must match the setting you choose. 1 Gbps speeds and higher cannot be forced. Use the autonegotiation advertising setting to manually set devices for 1 Gbps and higher.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj` hhubh)}(hoNOTE: You cannot set the speed for devices based on the Intel(R) Ethernet Network Adapter XXV710 based devices.h]hoNOTE: You cannot set the speed for devices based on the Intel(R) Ethernet Network Adapter XXV710 based devices.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj` hhubh)}(hZSpeed, duplex, and autonegotiation advertising are configured through the ethtool utility.h]hZSpeed, duplex, and autonegotiation advertising are configured through the ethtool utility.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj` hhubh)}(hX;Caution: Only experienced network administrators should force speed and duplex or change autonegotiation advertising manually. The settings at the switch must always match the adapter settings. Adapter performance may suffer or your adapter may not operate if you configure the adapter differently from your switch.h]hX;Caution: Only experienced network administrators should force speed and duplex or change autonegotiation advertising manually. The settings at the switch must always match the adapter settings. Adapter performance may suffer or your adapter may not operate if you configure the adapter differently from your switch.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj` hhubh)}(hAn Intel(R) Ethernet Network Adapter using fiber-based connections, however, will not attempt to auto-negotiate with its link partner since those adapters operate only in full duplex and only at their native speed.h]hAn Intel(R) Ethernet Network Adapter using fiber-based connections, however, will not attempt to auto-negotiate with its link partner since those adapters operate only in full duplex and only at their native speed.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj` hhubeh}(h]speed-and-duplex-configurationah ]h"]speed and duplex configurationah$]h&]uh1hhjhhhhhM|ubh)}(hhh](h)}(hNAPIh]hNAPI}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhMubh)}(h7NAPI (Rx polling mode) is supported in the i40e driver.h]h7NAPI (Rx polling mode) is supported in the i40e driver.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubh)}(hISee :ref:`Documentation/networking/napi.rst ` for more information.h](hSee }(hj hhhNhNubh)}(h/:ref:`Documentation/networking/napi.rst `h]hinline)}(hj h]h!Documentation/networking/napi.rst}(hj hhhNhNubah}(h]h ](xrefstdstd-refeh"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]refdoc-networking/device_drivers/ethernet/intel/i40e refdomainj reftyperef refexplicitrefwarn reftargetnapiuh1hhhhMhj ubh for more information.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhMhj hhubeh}(h]napiah ]h"]napiah$]h&]uh1hhjhhhhhMubh)}(hhh](h)}(h Flow Controlh]h Flow Control}(hj. hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+ hhhhhMubh)}(hXdEthernet Flow Control (IEEE 802.3x) can be configured with ethtool to enable receiving and transmitting pause frames for i40e. When transmit is enabled, pause frames are generated when the receive packet buffer crosses a predefined threshold. When receive is enabled, the transmit unit will halt for the time delay specified when a pause frame is received.h]hXdEthernet Flow Control (IEEE 802.3x) can be configured with ethtool to enable receiving and transmitting pause frames for i40e. When transmit is enabled, pause frames are generated when the receive packet buffer crosses a predefined threshold. When receive is enabled, the transmit unit will halt for the time delay specified when a pause frame is received.}(hj< hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj+ hhubh)}(h8NOTE: You must have a flow control capable link partner.h]h8NOTE: You must have a flow control capable link partner.}(hjJ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj+ hhubh)}(hFlow Control is on by default.h]hFlow Control is on by default.}(hjX hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj+ hhubh)}(h0Use ethtool to change the flow control settings.h]h0Use ethtool to change the flow control settings.}(hjf hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj+ hhubh)}(h,To enable or disable Rx or Tx Flow Control::h]h+To enable or disable Rx or Tx Flow Control:}(hjt hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj+ hhubj)}(h'ethtool -A eth? rx tx h]h'ethtool -A eth? rx tx }hj sbah}(h]h ]h"]h$]h&]hhuh1jhhhMhj+ hhubh)}(hNote: This command only enables or disables Flow Control if auto-negotiation is disabled. If auto-negotiation is enabled, this command changes the parameters used for auto-negotiation with the link partner.h]hNote: This command only enables or disables Flow Control if auto-negotiation is disabled. If auto-negotiation is enabled, this command changes the parameters used for auto-negotiation with the link partner.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj+ hhubh)}(h'To enable or disable auto-negotiation::h]h&To enable or disable auto-negotiation:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj+ hhubj)}(h ethtool -s eth? autoneg h]h ethtool -s eth? autoneg }hj sbah}(h]h ]h"]h$]h&]hhuh1jhhhMhj+ hhubh)}(hNote: Flow Control auto-negotiation is part of link auto-negotiation. Depending on your device, you may not be able to change the auto-negotiation setting.h]hNote: Flow Control auto-negotiation is part of link auto-negotiation. Depending on your device, you may not be able to change the auto-negotiation setting.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj+ hhubeh}(h] flow-controlah ]h"] flow controlah$]h&]uh1hhjhhhhhMubh)}(hhh](h)}(h RSS Hash Flowh]h RSS Hash Flow}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhMubh)}(hAllows you to set the hash bytes per flow type and any combination of one or more options for Receive Side Scaling (RSS) hash byte configuration.h]hAllows you to set the hash bytes per flow type and any combination of one or more options for Receive Side Scaling (RSS) hash byte configuration.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj hhubj)}(h/# ethtool -N rx-flow-hash