i40e.txt 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. Linux Base Driver for the Intel(R) Ethernet Controller XL710 Family
  2. ===================================================================
  3. Intel i40e Linux driver.
  4. Copyright(c) 2013 Intel Corporation.
  5. Contents
  6. ========
  7. - Identifying Your Adapter
  8. - Additional Configurations
  9. - Performance Tuning
  10. - Known Issues
  11. - Support
  12. Identifying Your Adapter
  13. ========================
  14. The driver in this release is compatible with the Intel Ethernet
  15. Controller XL710 Family.
  16. For more information on how to identify your adapter, go to the Adapter &
  17. Driver ID Guide at:
  18. http://support.intel.com/support/network/sb/CS-012904.htm
  19. Enabling the driver
  20. ===================
  21. The driver is enabled via the standard kernel configuration system,
  22. using the make command:
  23. make config/oldconfig/menuconfig/etc.
  24. The driver is located in the menu structure at:
  25. -> Device Drivers
  26. -> Network device support (NETDEVICES [=y])
  27. -> Ethernet driver support
  28. -> Intel devices
  29. -> Intel(R) Ethernet Controller XL710 Family
  30. Additional Configurations
  31. =========================
  32. Generic Receive Offload (GRO)
  33. -----------------------------
  34. The driver supports the in-kernel software implementation of GRO. GRO has
  35. shown that by coalescing Rx traffic into larger chunks of data, CPU
  36. utilization can be significantly reduced when under large Rx load. GRO is
  37. an evolution of the previously-used LRO interface. GRO is able to coalesce
  38. other protocols besides TCP. It's also safe to use with configurations that
  39. are problematic for LRO, namely bridging and iSCSI.
  40. Ethtool
  41. -------
  42. The driver utilizes the ethtool interface for driver configuration and
  43. diagnostics, as well as displaying statistical information. The latest
  44. ethtool version is required for this functionality.
  45. The latest release of ethtool can be found from
  46. https://www.kernel.org/pub/software/network/ethtool
  47. Flow Director n-ntuple traffic filters (FDir)
  48. ---------------------------------------------
  49. The driver utilizes the ethtool interface for configuring ntuple filters,
  50. via "ethtool -N <device> <filter>".
  51. The sctp4, ip4, udp4, and tcp4 flow types are supported with the standard
  52. fields including src-ip, dst-ip, src-port and dst-port. The driver only
  53. supports fully enabling or fully masking the fields, so use of the mask
  54. fields for partial matches is not supported.
  55. Additionally, the driver supports using the action to specify filters for a
  56. Virtual Function. You can specify the action as a 64bit value, where the
  57. lower 32 bits represents the queue number, while the next 8 bits represent
  58. which VF. Note that 0 is the PF, so the VF identifier is offset by 1. For
  59. example:
  60. ... action 0x800000002 ...
  61. Would indicate to direct traffic for Virtual Function 7 (8 minus 1) on queue
  62. 2 of that VF.
  63. The driver also supports using the user-defined field to specify 2 bytes of
  64. arbitrary data to match within the packet payload in addition to the regular
  65. fields. The data is specified in the lower 32bits of the user-def field in
  66. the following way:
  67. +----------------------------+---------------------------+
  68. | 31 28 24 20 16 | 15 12 8 4 0|
  69. +----------------------------+---------------------------+
  70. | offset into packet payload | 2 bytes of flexible data |
  71. +----------------------------+---------------------------+
  72. As an example,
  73. ... user-def 0x4FFFF ....
  74. means to match the value 0xFFFF 4 bytes into the packet payload. Note that
  75. the offset is based on the beginning of the payload, and not the beginning
  76. of the packet. Thus
  77. flow-type tcp4 ... user-def 0x8BEAF ....
  78. would match TCP/IPv4 packets which have the value 0xBEAF 8bytes into the
  79. TCP/IPv4 payload.
  80. For ICMP, the hardware parses the ICMP header as 4 bytes of header and 4
  81. bytes of payload, so if you want to match an ICMP frames payload you may need
  82. to add 4 to the offset in order to match the data.
  83. Furthermore, the offset can only be up to a value of 64, as the hardware
  84. will only read up to 64 bytes of data from the payload. It must also be even
  85. as the flexible data is 2 bytes long and must be aligned to byte 0 of the
  86. packet payload.
  87. When programming filters, the hardware is limited to using a single input
  88. set for each flow type. This means that it is an error to program two
  89. different filters with the same type that don't match on the same fields.
  90. Thus the second of the following two commands will fail:
  91. ethtool -N <device> flow-type tcp4 src-ip 192.168.0.7 action 5
  92. ethtool -N <device> flow-type tcp4 dst-ip 192.168.15.18 action 1
  93. This is because the first filter will be accepted and reprogram the input
  94. set for TCPv4 filters, but the second filter will be unable to reprogram the
  95. input set until all the conflicting TCPv4 filters are first removed.
  96. Note that the user-defined flexible offset is also considered part of the
  97. input set and cannot be programmed separately for multiple filters of the
  98. same type. However, the flexible data is not part of the input set and
  99. multiple filters may use the same offset but match against different data.
  100. Data Center Bridging (DCB)
  101. --------------------------
  102. DCB configuration is not currently supported.
  103. FCoE
  104. ----
  105. The driver supports Fiber Channel over Ethernet (FCoE) and Data Center
  106. Bridging (DCB) functionality. Configuring DCB and FCoE is outside the scope
  107. of this driver doc. Refer to http://www.open-fcoe.org/ for FCoE project
  108. information and http://www.open-lldp.org/ or email list
  109. e1000-eedc@lists.sourceforge.net for DCB information.
  110. MAC and VLAN anti-spoofing feature
  111. ----------------------------------
  112. When a malicious driver attempts to send a spoofed packet, it is dropped by
  113. the hardware and not transmitted. An interrupt is sent to the PF driver
  114. notifying it of the spoof attempt.
  115. When a spoofed packet is detected the PF driver will send the following
  116. message to the system log (displayed by the "dmesg" command):
  117. Spoof event(s) detected on VF (n)
  118. Where n=the VF that attempted to do the spoofing.
  119. Performance Tuning
  120. ==================
  121. An excellent article on performance tuning can be found at:
  122. http://www.redhat.com/promo/summit/2008/downloads/pdf/Thursday/Mark_Wagner.pdf
  123. Known Issues
  124. ============
  125. Support
  126. =======
  127. For general information, go to the Intel support website at:
  128. http://support.intel.com
  129. or the Intel Wired Networking project hosted by Sourceforge at:
  130. http://e1000.sourceforge.net
  131. If an issue is identified with the released source code on the supported
  132. kernel with a supported adapter, email the specific information related
  133. to the issue to e1000-devel@lists.sourceforge.net and copy
  134. netdev@vger.kernel.org.