€•„Œsphinx.addnodes”Œdocument”“”)�”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)�”}”(hhh]”(hŒ pending_xref”“”)�”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…”�”}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”ŒA/translations/zh_CN/networking/device_drivers/ethernet/intel/i40e”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)�”}”(hhh]”hŒChinese (Traditional)”…”�”}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒA/translations/zh_TW/networking/device_drivers/ethernet/intel/i40e”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒItalian”…”�”}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒA/translations/it_IT/networking/device_drivers/ethernet/intel/i40e”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒJapanese”…”�”}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒA/translations/ja_JP/networking/device_drivers/ethernet/intel/i40e”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒKorean”…”�”}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒA/translations/ko_KR/networking/device_drivers/ethernet/intel/i40e”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒPortuguese (Brazilian)”…”�”}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒA/translations/pt_BR/networking/device_drivers/ethernet/intel/i40e”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒSpanish”…”�”}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒA/translations/sp_SP/networking/device_drivers/ethernet/intel/i40e”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)�”}”(hŒ!SPDX-License-Identifier: GPL-2.0+”h]”hŒ!SPDX-License-Identifier: GPL-2.0+”…”�”}”hh·sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1hµhhh²hh³Œ[/var/lib/git/docbuild/linux/Documentation/networking/device_drivers/ethernet/intel/i40e.rst”h´KubhŒsection”“”)�”}”(hhh]”(hŒtitle”“”)�”}”(hŒALinux Base Driver for the Intel(R) Ethernet Controller 700 Series”h]”hŒALinux Base Driver for the Intel(R) Ethernet Controller 700 Series”…”�”}”(hhÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhÊh²hh³hÇh´KubhŒ paragraph”“”)�”}”(hŒHIntel 40 Gigabit Linux driver. Copyright(c) 1999-2018 Intel Corporation.”h]”hŒHIntel 40 Gigabit Linux driver. Copyright(c) 1999-2018 Intel Corporation.”…”�”}”(hhßh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhhÊh²hubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒContents”h]”hŒContents”…”�”}”(hhðh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhíh²hh³hÇh´K ubhŒ bullet_list”“”)�”}”(hhh]”(hŒ list_item”“”)�”}”(hŒOverview”h]”hÞ)�”}”(hjh]”hŒOverview”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjh²hh³hÇh´Nubj)�”}”(hŒIdentifying Your Adapter”h]”hÞ)�”}”(hjh]”hŒIdentifying Your Adapter”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Khjubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjh²hh³hÇh´Nubj)�”}”(hŒIntel(R) Ethernet Flow Director”h]”hÞ)�”}”(hj5h]”hŒIntel(R) Ethernet Flow Director”…”�”}”(hj7h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Khj3ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjh²hh³hÇh´Nubj)�”}”(hŒAdditional Configurations”h]”hÞ)�”}”(hjLh]”hŒAdditional Configurations”…”�”}”(hjNh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KhjJubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjh²hh³hÇh´Nubj)�”}”(hŒ Known Issues”h]”hÞ)�”}”(hjch]”hŒ Known Issues”…”�”}”(hjeh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Khjaubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjh²hh³hÇh´Nubj)�”}”(hŒ Support ”h]”hÞ)�”}”(hŒSupport”h]”hŒSupport”…”�”}”(hj|h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Khjxubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjh²hh³hÇh´Nubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ-”uh1hþh³hÇh´K hhíh²hubhÞ)�”}”(hŒµDriver 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]”hŒµDriver 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.”…”�”}”(hj˜h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Khhíh²hubhÞ)�”}”(hŒ¦For questions related to hardware requirements, refer to the documentation supplied with your Intel adapter. All hardware requirements listed apply to use with Linux.”h]”hŒ¦For questions related to hardware requirements, refer to the documentation supplied with your Intel adapter. All hardware requirements listed apply to use with Linux.”…”�”}”(hj¦h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Khhíh²hubeh}”(h]”Œcontents”ah ]”h"]”Œcontents”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´K ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒIdentifying Your Adapter”h]”hŒIdentifying Your Adapter”…”�”}”(hj¿h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj¼h²hh³hÇh´KubhÞ)�”}”(hŒ=The driver is compatible with devices based on the following:”h]”hŒ=The driver is compatible with devices based on the following:”…”�”}”(hjÍh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K hj¼h²hubhŒ 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]”(j)�”}”(hŒ!Intel(R) Ethernet Controller X710”h]”hÞ)�”}”(hjæh]”hŒ!Intel(R) Ethernet Controller X710”…”�”}”(hjèh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K"hjäubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjáubj)�”}”(hŒ"Intel(R) Ethernet Controller XL710”h]”hÞ)�”}”(hjýh]”hŒ"Intel(R) Ethernet Controller XL710”…”�”}”(hjÿh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K#hjûubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjáubj)�”}”(hŒ)Intel(R) Ethernet Network Connection X722”h]”hÞ)�”}”(hjh]”hŒ)Intel(R) Ethernet Network Connection X722”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K$hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjáubj)�”}”(hŒ$Intel(R) Ethernet Controller XXV710 ”h]”hÞ)�”}”(hŒ#Intel(R) Ethernet Controller XXV710”h]”hŒ#Intel(R) Ethernet Controller XXV710”…”�”}”(hj-h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K%hj)ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjáubeh}”(h]”h ]”h"]”h$]”h&]”j–Œ*”uh1hþh³hÇh´K"hjÝubah}”(h]”h ]”h"]”h$]”h&]”uh1jÛh³hÇh´K"hj¼h²hubhÞ)�”}”(hŒRFor the best performance, make sure the latest NVM/FW is installed on your device.”h]”hŒRFor the best performance, make sure the latest NVM/FW is installed on your device.”…”�”}”(hjNh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K'hj¼h²hubhÞ)�”}”(hŒ®For 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/support”h]”(hŒ‘For information on how to identify your adapter, and for the latest NVM/FW images and Intel network drivers, refer to the Intel Support website: ”…”�”}”(hj\h²hh³Nh´NubhŒ reference”“”)�”}”(hŒhttps://www.intel.com/support”h]”hŒhttps://www.intel.com/support”…”�”}”(hjfh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”jhuh1jdhj\ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K*hj¼h²hubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒSFP+ and QSFP+ Devices”h]”hŒSFP+ and QSFP+ Devices”…”�”}”(hj~h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj{h²hh³hÇh´K/ubhÞ)�”}”(hŒ¶For 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.pdf”h]”(hŒ?For information about supported media, refer to this document: ”…”�”}”(hjŒh²hh³Nh´Nubje)�”}”(hŒwhttps://www.intel.com/content/dam/www/public/us/en/documents/release-notes/xl710-ethernet-controller-feature-matrix.pdf”h]”hŒwhttps://www.intel.com/content/dam/www/public/us/en/documents/release-notes/xl710-ethernet-controller-feature-matrix.pdf”…”�”}”(hj”h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j–uh1jdhjŒubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K0hj{h²hubhÞ)�”}”(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.”…”�”}”(hj©h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K3hj{h²hubhÞ)�”}”(hŒ–NOTE: For connections based on Intel(R) Ethernet Controller 700 Series, support is dependent on your system board. Please see your vendor for details.”h]”hŒ–NOTE: For connections based on Intel(R) Ethernet Controller 700 Series, support is dependent on your system board. Please see your vendor for details.”…”�”}”(hj·h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K9hj{h²hubhÞ)�”}”(hŒŠNOTE: In systems that do not have adequate airflow to cool the adapter and optical modules, you must use high temperature optical modules.”h]”hŒŠNOTE: In systems that do not have adequate airflow to cool the adapter and optical modules, you must use high temperature optical modules.”…”�”}”(hjÅh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K /sys/class/net/$dev/device/sriov_numvfs #enable VFs #echo 0 > /sys/class/net/$dev/device/sriov_numvfs #disable VFs”h]”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”…”�”}”hjüsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1júh³hÇh´KChjÛh²hubhÞ)�”}”(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:”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KFhjÛh²hubjû)�”}”(hŒ#$ ip link set dev eth0 vf 0 vlan 10”h]”hŒ#$ ip link set dev eth0 vf 0 vlan 10”…”�”}”hjsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1júh³hÇh´KIhjÛh²hubeh}”(h]”Œvirtual-functions-vfs”ah ]”h"]”Œvirtual functions (vfs)”ah$]”h&]”uh1hÈhj¼h²hh³hÇh´K@ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒVLAN Tag Packet Steering”h]”hŒVLAN Tag Packet Steering”…”�”}”(hj1h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj.h²hh³hÇh´KLubhÞ)�”}”(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?h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KMhj.h²hubhÞ)�”}”(hŒTTo set a VF as trusted or untrusted, enter the following command in the Hypervisor::”h]”hŒSTo set a VF as trusted or untrusted, enter the following command in the Hypervisor:”…”�”}”(hjMh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KRhj.h²hubjû)�”}”(hŒ*# ip link set dev eth0 vf 1 trust [on|off]”h]”hŒ*# ip link set dev eth0 vf 1 trust [on|off]”…”�”}”hj[sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1júh³hÇh´KUhj.h²hubhÞ)�”}”(hŒmOnce the VF is designated as trusted, use the following commands in the VM to set the VF to promiscuous mode.”h]”hŒmOnce the VF is designated as trusted, use the following commands in the VM to set the VF to promiscuous mode.”…”�”}”(hjih²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KWhj.h²hubjû)�”}”(hŒ½For 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”h]”hŒ½For 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”…”�”}”hjwsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1júh³hÇh´K\hj.h²hubhÞ)�”}”(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:”…”�”}”(hj…h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kdhj.h²hubjû)�”}”(hŒ:#ethtool -set-priv-flags p261p1 vf-true-promisc-support on”h]”hŒ:#ethtool -set-priv-flags p261p1 vf-true-promisc-support on”…”�”}”hj“sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1júh³hÇh´Kihj.h²hubhÞ)�”}”(hX÷The 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]”hX÷The 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.”…”�”}”(hj¡h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kkhj.h²hubhÞ)�”}”(hŒ.Now add a VLAN interface on the VF interface::”h]”hŒ-Now add a VLAN interface on the VF interface:”…”�”}”(hj¯h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kshj.h²hubjû)�”}”(hŒ5#ip link add link eth2 name eth2.100 type vlan id 100”h]”hŒ5#ip link add link eth2 name eth2.100 type vlan id 100”…”�”}”hj½sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1júh³hÇh´Kuhj.h²hubhÞ)�”}”(hŒæNote 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]”hŒæNote 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.”…”�”}”(hjËh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kwhj.h²hubeh}”(h]”Œvlan-tag-packet-steering”ah ]”h"]”Œvlan tag packet steering”ah$]”h&]”uh1hÈhj¼h²hh³hÇh´KLubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒIntel(R) Ethernet Flow Director”h]”hŒIntel(R) Ethernet Flow Director”…”�”}”(hjäh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjáh²hh³hÇh´K|ubhÞ)�”}”(hŒ>The Intel Ethernet Flow Director performs the following tasks:”h]”hŒ>The Intel Ethernet Flow Director performs the following tasks:”…”�”}”(hjòh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K}hjáh²hubhÿ)�”}”(hhh]”(j)�”}”(hŒEDirects receive packets according to their flows to different queues.”h]”hÞ)�”}”(hjh]”hŒEDirects receive packets according to their flows to different queues.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Khjubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjh²hh³hÇh´Nubj)�”}”(hŒ8Enables tight control on routing a flow in the platform.”h]”hÞ)�”}”(hjh]”hŒ8Enables tight control on routing a flow in the platform.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K€hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjh²hh³hÇh´Nubj)�”}”(hŒ.Matches flows and CPU cores for flow affinity.”h]”hÞ)�”}”(hj3h]”hŒ.Matches flows and CPU cores for flow affinity.”…”�”}”(hj5h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K�hj1ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjh²hh³hÇh´Nubj)�”}”(hŒeSupports multiple parameters for flexible flow classification and load balancing (in SFP mode only). ”h]”hÞ)�”}”(hŒdSupports multiple parameters for flexible flow classification and load balancing (in SFP mode only).”h]”hŒdSupports multiple parameters for flexible flow classification and load balancing (in SFP mode only).”…”�”}”(hjLh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K‚hjHubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjh²hh³hÇh´Nubeh}”(h]”h ]”h"]”h$]”h&]”j–j—uh1hþh³hÇh´Khjáh²hubhÞ)�”}”(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.”…”�”}”(hjfh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K…hjáh²hubhÞ)�”}”(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).”…”�”}”(hjth²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K‹hjáh²hubhÞ)�”}”(hŒ7To enable or disable the Intel Ethernet Flow Director::”h]”hŒ6To enable or disable the Intel Ethernet Flow Director:”…”�”}”(hj‚h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K‘hjáh²hubjû)�”}”(hŒ!# ethtool -K ethX ntuple ”h]”hŒ!# ethtool -K ethX ntuple ”…”�”}”hj�sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1júh³hÇh´K“hjáh²hubhÞ)�”}”(hŒ­When 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]”hŒ­When 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.”…”�”}”(hjžh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K•hjáh²hubhÞ)�”}”(hŒETo add a filter that directs packet to queue 2, use -U or -N switch::”h]”hŒDTo add a filter that directs packet to queue 2, use -U or -N switch:”…”�”}”(hj¬h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K™hjáh²hubjû)�”}”(hŒw# 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]”hŒw# 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]”…”�”}”hjºsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1júh³hÇh´K›hjáh²hubhÞ)�”}”(hŒBTo set a filter using only the source and destination IP address::”h]”hŒATo set a filter using only the source and destination IP address:”…”�”}”(hjÈh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kžhjáh²hubjû)�”}”(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]”…”�”}”hjÖsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1júh³hÇh´K hjáh²hubhÞ)�”}”(hŒ.To see the list of filters currently present::”h]”hŒ-To see the list of filters currently present:”…”�”}”(hjäh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K£hjáh²hubjû)�”}”(hŒ# ethtool <-u|-n> ethX”h]”hŒ# ethtool <-u|-n> ethX”…”�”}”hjòsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1júh³hÇh´K¥hjáh²hubeh}”(h]”Œintel-r-ethernet-flow-director”ah ]”h"]”Œintel(r) ethernet flow director”ah$]”h&]”uh1hÈhj¼h²hh³hÇh´K|ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ2Application Targeted Routing (ATR) Perfect Filters”h]”hŒ2Application Targeted Routing (ATR) Perfect Filters”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjh²hh³hÇh´K¨ubhÞ)�”}”(hX–ATR 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]”hX•ATR 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:”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K©hjh²hubjû)�”}”(hŒ$ethtool -K [adapter] ntuple [off|on]”h]”hŒ$ethtool -K [adapter] ntuple [off|on]”…”�”}”hj'sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1júh³hÇh´K°hjh²hubhÞ)�”}”(hŒ±If 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]”hŒ±If 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.”…”�”}”(hj5h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K²hjh²hubhÞ)�”}”(hŒ�Packets 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]”hŒ�Packets 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.”…”�”}”(hjCh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K¶hjh²hubeh}”(h]”Œ0application-targeted-routing-atr-perfect-filters”ah ]”h"]”Œ2application targeted routing (atr) perfect filters”ah$]”h&]”uh1hÈhj¼h²hh³hÇh´K¨ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒSideband Perfect Filters”h]”hŒSideband Perfect Filters”…”�”}”(hj\h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjYh²hh³hÇh´KºubhÞ)�”}”(hŒÀSideband 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]”hŒÁSideband 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:”…”�”}”(hjjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K»hjYh²hubjû)�”}”(hŒmethtool -U flow-type src-ip dst-ip src-port \ dst-port action ”h]”hŒmethtool -U flow-type src-ip dst-ip src-port \ dst-port action ”…”�”}”hjxsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1júh³hÇh´K¿hjYh²hubhŒdefinition_list”“”)�”}”(hhh]”hŒdefinition_list_item”“”)�”}”(hŒïWhere: - 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Œterm”“”)�”}”(hŒWhere:”h]”hŒWhere:”…”�”}”(hj“h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j‘h³hÇh´KÇhj�ubhŒ 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)”…”�”}”(hj¦h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÃhj£ubah}”(h]”h ]”h"]”h$]”h&]”uh1j¡hj�ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j‹h³hÇh´KÇhjˆubah}”(h]”h ]”h"]”h$]”h&]”uh1j†hjYh²hh³hÇh´NubhÞ)�”}”(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:”…”�”}”(hjÆh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÉhjYh²hubjû)�”}”(hŒethtool -u ”h]”hŒethtool -u ”…”�”}”hjÔsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1júh³hÇh´KËhjYh²hubhÞ)�”}”(hŒ.Use the following command to delete a filter::”h]”hŒ-Use the following command to delete a filter:”…”�”}”(hjâh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÍhjYh²hubjû)�”}”(hŒethtool -U delete ”h]”hŒethtool -U delete ”…”�”}”hjðsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1júh³hÇh´KÏhjYh²hubhÞ)�”}”(hŒ“Where is the filter id displayed when printing all the active filters, and may also have been specified using "loc " when adding the filter.”h]”hŒ—Where is the filter id displayed when printing all the active filters, and may also have been specified using “loc â€� when adding the filter.”…”�”}”(hjþh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÑhjYh²hubhÞ)�”}”(hŒ‡The 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]”hŒ†The 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:”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÔhjYh²hubjû)�”}”(hŒmethtool -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”h]”hŒmethtool -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&]”hÅhÆuh1júh³hÇh´K×hjYh²hubhÞ)�”}”(hŒ•For each flow-type, the programmed filters must all have the same matching input set. For example, issuing the following two commands is acceptable::”h]”hŒ”For each flow-type, the programmed filters must all have the same matching input set. For example, issuing the following two commands is acceptable:”…”�”}”(hj(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KÚhjYh²hubjû)�”}”(hŒ–ethtool -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”h]”hŒ–ethtool -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”…”�”}”hj6sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1júh³hÇh´KÝhjYh²hubhÞ)�”}”(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:”…”�”}”(hjDh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KàhjYh²hubjû)�”}”(hŒ–ethtool -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”h]”hŒ–ethtool -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”…”�”}”hjRsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1júh³hÇh´KãhjYh²hubhÞ)�”}”(hŒÓThe 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]”hŒÓThe 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.”…”�”}”(hj`h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KæhjYh²hubhÞ)�”}”(hŒuMatching on a sub-portion of a field is not supported by the i40e driver, thus partial mask fields are not supported.”h]”hŒuMatching on a sub-portion of a field is not supported by the i40e driver, thus partial mask fields are not supported.”…”�”}”(hjnh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KêhjYh²hubhÞ)�”}”(hŒ¶The 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]”hŒºThe 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:”…”�”}”(hj|h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KíhjYh²hubhŒtable”“”)�”}”(hhh]”hŒtgroup”“”)�”}”(hhh]”(hŒcolspec”“”)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”Kuh1j”hj‘ubj•)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œcolwidth”Kuh1j”hj‘ubhŒtbody”“”)�”}”(hhh]”(hŒrow”“”)�”}”(hhh]”(hŒentry”“”)�”}”(hhh]”hÞ)�”}”(hŒ31 28 24 20 16”h]”hŒ31 28 24 20 16”…”�”}”(hj¹h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kòhj¶ubah}”(h]”h ]”h"]”h$]”h&]”uh1j´hj±ubjµ)�”}”(hhh]”hÞ)�”}”(hŒ15 12 8 4 0”h]”hŒ15 12 8 4 0”…”�”}”(hjÐh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KòhjÍubah}”(h]”h ]”h"]”h$]”h&]”uh1j´hj±ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¯hj¬ubj°)�”}”(hhh]”(jµ)�”}”(hhh]”hÞ)�”}”(hŒoffset into packet payload”h]”hŒoffset into packet payload”…”�”}”(hjðh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kôhjíubah}”(h]”h ]”h"]”h$]”h&]”uh1j´hjêubjµ)�”}”(hhh]”hÞ)�”}”(hŒ2 bytes of flexible data”h]”hŒ2 bytes of flexible data”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Kôhjubah}”(h]”h ]”h"]”h$]”h&]”uh1j´hjêubeh}”(h]”h ]”h"]”h$]”h&]”uh1j¯hj¬ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jªhj‘ubeh}”(h]”h ]”h"]”h$]”h&]”Œcols”Kuh1j�hjŒubah}”(h]”h ]”h"]”h$]”h&]”uh1jŠhjYh²hh³hÇh´NubhÞ)�”}”(hŒ For example,”h]”hŒ For example,”…”�”}”(hj4h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´K÷hjYh²hubjû)�”}”(hŒ... user-def 0x4FFFF ...”h]”hŒ... user-def 0x4FFFF ...”…”�”}”hjBsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1júh³hÇh´KûhjYh²hubhÞ)�”}”(hŒµtells 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”h]”hŒµtells 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”…”�”}”(hjPh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´KýhjYh²hubjû)�”}”(hŒ'flow-type tcp4 ... user-def 0x8BEAF ...”h]”hŒ'flow-type tcp4 ... user-def 0x8BEAF ...”…”�”}”hj^sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1júh³hÇh´MhjYh²hubhÞ)�”}”(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.”…”�”}”(hjlh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjYh²hubhÞ)�”}”(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.”…”�”}”(hjzh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjYh²hubhÞ)�”}”(hŒÕThe 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]”hŒÕThe 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.”…”�”}”(hjˆh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M hjYh²hubhÞ)�”}”(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.”…”�”}”(hj–h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjYh²hubhÞ)�”}”(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:”…”�”}”(hj¤h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjYh²hubjû)�”}”(hŒ... action 0x800000002 ...”h]”hŒ... action 0x800000002 ...”…”�”}”hj²sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1júh³hÇh´MhjYh²hubhÞ)�”}”(hŒVspecifies to direct traffic to Virtual Function 7 (8 minus 1) into queue 2 of that VF.”h]”hŒVspecifies to direct traffic to Virtual Function 7 (8 minus 1) into queue 2 of that VF.”…”�”}”(hjÀh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MhjYh²hubhÞ)�”}”(hŒ¤Note 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]”hŒ¤Note 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.”…”�”}”(hjÎh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M hjYh²hubeh}”(h]”Œsideband-perfect-filters”ah ]”h"]”Œsideband perfect filters”ah$]”h&]”uh1hÈhj¼h²hh³hÇh´KºubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ+Setting the link-down-on-close Private Flag”h]”hŒ+Setting the link-down-on-close Private Flag”…”�”}”(hjçh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjäh²hh³hÇh´M%ubhÞ)�”}”(hŒžWhen 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]”hŒ¤When 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.”…”�”}”(hjõh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M&hjäh²hubhÞ)�”}”(hŒ is the interface number::”h]”hŒvUse the ifconfig command to increase the MTU size. For example, enter the following where is the interface number:”…”�”}”(hjÌh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MIhj­h²hubjû)�”}”(hŒifconfig eth mtu 9000 up”h]”hŒifconfig eth mtu 9000 up”…”�”}”hjÚsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1júh³hÇh´MLhj­h²hubhÞ)�”}”(hŒ6Alternatively, you can use the ip command as follows::”h]”hŒ5Alternatively, you can use the ip command as follows:”…”�”}”(hjèh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MNhj­h²hubjû)�”}”(hŒ9ip link set mtu 9000 dev eth ip link set up dev eth”h]”hŒ9ip link set mtu 9000 dev eth ip link set up dev eth”…”�”}”hjösbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1júh³hÇh´MPhj­h²hubhÞ)�”}”(hŒuThis setting is not saved across reboots. The setting change can be made permanent by adding 'MTU=9000' to the file::”h]”hŒxThis setting is not saved across reboots. The setting change can be made permanent by adding ‘MTU=9000’ to the file:”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MShj­h²hubjû)�”}”(hŒh/etc/sysconfig/network-scripts/ifcfg-eth // for RHEL /etc/sysconfig/network/ // for SLES”h]”hŒh/etc/sysconfig/network-scripts/ifcfg-eth // for RHEL /etc/sysconfig/network/ // for SLES”…”�”}”hj sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1júh³hÇh´MVhj­h²hubhÞ)�”}”(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 h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MYhj­h²hubhÞ)�”}”(hŒ³NOTE: 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]”hŒ³NOTE: 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. h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M\hj­h²hubeh}”(h]”Œ jumbo-frames”ah ]”h"]”Œ jumbo frames”ah$]”h&]”uh1hÈhj¼h²hh³hÇh´MEubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒethtool”h]”hŒethtool”…”�”}”(hjG h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjD h²hh³hÇh´MaubhÞ)�”}”(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]”(hŒÒThe 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: ”…”�”}”(hjU h²hh³Nh´Nubje)�”}”(hŒ4https://www.kernel.org/pub/software/network/ethtool/”h]”hŒ4https://www.kernel.org/pub/software/network/ethtool/”…”�”}”(hj] h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j_ uh1jdhjU ubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MbhjD h²hubeh}”(h]”Œethtool”ah ]”h"]”Œethtool”ah$]”h&]”uh1hÈhj¼h²hh³hÇh´MaubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ4Supported ethtool Commands and Options for Filtering”h]”hŒ4Supported ethtool Commands and Options for Filtering”…”�”}”(hj} h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjz h²hh³hÇh´Mhubj‡)�”}”(hhh]”(jŒ)�”}”(hŒP-n --show-nfc Retrieves the receive network flow classification configurations. ”h]”(j’)�”}”(hŒ -n --show-nfc”h]”hŒ -n --show-nfc”…”�”}”(hj’ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j‘h³hÇh´MjhjŽ ubj¢)�”}”(hhh]”hÞ)�”}”(hŒARetrieves the receive network flow classification configurations.”h]”hŒARetrieves the receive network flow classification configurations.”…”�”}”(hj£ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mjhj  ubah}”(h]”h ]”h"]”h$]”h&]”uh1j¡hjŽ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j‹h³hÇh´Mjhj‹ ubjŒ)�”}”(hŒ‚rx-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|sctp6”h]”hŒ>rx-flow-hash tcp4|udp4|ah4|esp4|sctp4|tcp6|udp6|ah6|esp6|sctp6”…”�”}”(hjÁ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j‘h³hÇh´Mmhj½ ubj¢)�”}”(hhh]”hÞ)�”}”(hŒBRetrieves the hash options for the specified network traffic type.”h]”hŒBRetrieves the hash options for the specified network traffic type.”…”�”}”(hjÒ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MmhjÏ ubah}”(h]”h ]”h"]”h$]”h&]”uh1j¡hj½ ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j‹h³hÇh´Mmhj‹ h²hubjŒ)�”}”(hŒD-N --config-nfc Configures the receive network flow classification. ”h]”(j’)�”}”(hŒ-N --config-nfc”h]”hŒ-N --config-nfc”…”�”}”(hjð h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j‘h³hÇh´Mphjì ubj¢)�”}”(hhh]”hÞ)�”}”(hŒ3Configures the receive network flow classification.”h]”hŒ3Configures the receive network flow classification.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mphjþ ubah}”(h]”h ]”h"]”h$]”h&]”uh1j¡hjì ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j‹h³hÇh´Mphj‹ h²hubjŒ)�”}”(hŒ–rx-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’)�”}”(hŒQrx-flow-hash tcp4|udp4|ah4|esp4|sctp4|tcp6|udp6|ah6|esp6|sctp6 m|v|t|s|d|f|n|r...”h]”hŒQrx-flow-hash tcp4|udp4|ah4|esp4|sctp4|tcp6|udp6|ah6|esp6|sctp6 m|v|t|s|d|f|n|r...”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j‘h³hÇh´Mshj ubj¢)�”}”(hhh]”hÞ)�”}”(hŒCConfigures the hash options for the specified network traffic type.”h]”hŒCConfigures the hash options for the specified network traffic type.”…”�”}”(hj0 h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mshj- ubah}”(h]”h ]”h"]”h$]”h&]”uh1j¡hj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j‹h³hÇh´Mshj‹ h²hubeh}”(h]”h ]”h"]”h$]”h&]”uh1j†hjz h²hh³hÇh´NubhÞ)�”}”(hŒ%udp4 UDP over IPv4 udp6 UDP over IPv6”h]”hŒ%udp4 UDP over IPv4 udp6 UDP over IPv6”…”�”}”(hjP h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Muhjz h²hubhÞ)�”}”(hŒf 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]”hŒf 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.”…”�”}”(hj^ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´Mxhjz h²hubeh}”(h]”Œ4supported-ethtool-commands-and-options-for-filtering”ah ]”h"]”Œ4supported ethtool commands and options for filtering”ah$]”h&]”uh1hÈhj¼h²hh³hÇh´MhubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒSpeed and Duplex Configuration”h]”hŒSpeed and Duplex Configuration”…”�”}”(hjw h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjt h²hh³hÇh´M|ubhÞ)�”}”(hŒ„In addressing speed and duplex configuration issues, you need to distinguish between copper-based adapters and fiber-based adapters.”h]”hŒ„In addressing speed and duplex configuration issues, you need to distinguish between copper-based adapters and fiber-based adapters.”…”�”}”(hj… h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M}hjt h²hubhÞ)�”}”(hXÝIn 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]”hXÝIn 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“ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M€hjt h²hubhÞ)�”}”(hŒoNOTE: You cannot set the speed for devices based on the Intel(R) Ethernet Network Adapter XXV710 based devices.”h]”hŒoNOTE: You cannot set the speed for devices based on the Intel(R) Ethernet Network Adapter XXV710 based devices.”…”�”}”(hj¡ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M‹hjt h²hubhÞ)�”}”(hŒZSpeed, duplex, and autonegotiation advertising are configured through the ethtool utility.”h]”hŒZSpeed, duplex, and autonegotiation advertising are configured through the ethtool utility.”…”�”}”(hj¯ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MŽhjt h²hubhÞ)�”}”(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½ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M‘hjt h²hubhÞ)�”}”(hŒÖAn 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]”hŒÖAn 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Ë h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M—hjt h²hubeh}”(h]”Œspeed-and-duplex-configuration”ah ]”h"]”Œspeed and duplex configuration”ah$]”h&]”uh1hÈhj¼h²hh³hÇh´M|ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒNAPI”h]”hŒNAPI”…”�”}”(hjä h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjá h²hh³hÇh´MœubhÞ)�”}”(hŒ7NAPI (Rx polling mode) is supported in the i40e driver.”h]”hŒ7NAPI (Rx polling mode) is supported in the i40e driver.”…”�”}”(hjò h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M�hjá h²hubhÞ)�”}”(hŒISee :ref:`Documentation/networking/napi.rst ` for more information.”h]”(hŒSee ”…”�”}”(hj h²hh³Nh´Nubh)�”}”(hŒ/:ref:`Documentation/networking/napi.rst `”h]”hŒinline”“”)�”}”(hj h]”hŒ!Documentation/networking/napi.rst”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”(Œxref”Œstd”Œstd-ref”eh"]”h$]”h&]”uh1j hj ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”Œ-networking/device_drivers/ethernet/intel/i40e”Œ refdomain”j Œreftype”Œref”Œ refexplicit”ˆŒrefwarn”ˆŒ reftarget”Œnapi”uh1hh³hÇh´MŸhj ubhŒ for more information.”…”�”}”(hj h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MŸhjá h²hubeh}”(h]”Œnapi”ah ]”h"]”Œnapi”ah$]”h&]”uh1hÈhj¼h²hh³hÇh´MœubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ Flow Control”h]”hŒ Flow Control”…”�”}”(hjB h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj? h²hh³hÇh´M¢ubhÞ)�”}”(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.”…”�”}”(hjP h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M£hj? h²hubhÞ)�”}”(hŒ8NOTE: You must have a flow control capable link partner.”h]”hŒ8NOTE: You must have a flow control capable link partner.”…”�”}”(hj^ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M©hj? h²hubhÞ)�”}”(hŒFlow Control is on by default.”h]”hŒFlow Control is on by default.”…”�”}”(hjl h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M«hj? h²hubhÞ)�”}”(hŒ0Use ethtool to change the flow control settings.”h]”hŒ0Use ethtool to change the flow control settings.”…”�”}”(hjz h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M­hj? h²hubhÞ)�”}”(hŒ,To enable or disable Rx or Tx Flow Control::”h]”hŒ+To enable or disable Rx or Tx Flow Control:”…”�”}”(hjˆ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M¯hj? h²hubjû)�”}”(hŒ'ethtool -A eth? rx tx ”h]”hŒ'ethtool -A eth? rx tx ”…”�”}”hj– sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1júh³hÇh´M±hj? h²hubhÞ)�”}”(hŒÎNote: 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]”hŒÎNote: 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¤ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M³hj? h²hubhÞ)�”}”(hŒ'To enable or disable auto-negotiation::”h]”hŒ&To enable or disable auto-negotiation:”…”�”}”(hj² h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M·hj? h²hubjû)�”}”(hŒ ethtool -s eth? autoneg ”h]”hŒ ethtool -s eth? autoneg ”…”�”}”hjÀ sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1júh³hÇh´M¹hj? h²hubhÞ)�”}”(hŒ›Note: 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]”hŒ›Note: 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Î h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´M»hj? h²hubeh}”(h]”Œ flow-control”ah ]”h"]”Œ flow control”ah$]”h&]”uh1hÈhj¼h²hh³hÇh´M¢ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ RSS Hash Flow”h]”hŒ RSS Hash Flow”…”�”}”(hjç h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjä h²hh³hÇh´M¿ubhÞ)�”}”(hŒ‘Allows 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]”hŒ‘Allows 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õ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝh³hÇh´MÀhjä h²hubjû)�”}”(hŒ/# ethtool -N rx-flow-hash