e1000.rst 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458
  1. .. SPDX-License-Identifier: GPL-2.0+
  2. ==========================================================
  3. Linux Base Driver for Intel(R) Ethernet Network Connection
  4. ==========================================================
  5. Intel Gigabit Linux driver.
  6. Copyright(c) 1999 - 2013 Intel Corporation.
  7. Contents
  8. ========
  9. - Identifying Your Adapter
  10. - Command Line Parameters
  11. - Speed and Duplex Configuration
  12. - Additional Configurations
  13. - Support
  14. Identifying Your Adapter
  15. ========================
  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/go/network/adapter/idguide.htm
  19. For the latest Intel network drivers for Linux, refer to the following
  20. website. In the search field, enter your adapter name or type, or use the
  21. networking link on the left to search for your adapter:
  22. http://support.intel.com/support/go/network/adapter/home.htm
  23. Command Line Parameters
  24. =======================
  25. The default value for each parameter is generally the recommended setting,
  26. unless otherwise noted.
  27. NOTES:
  28. For more information about the AutoNeg, Duplex, and Speed
  29. parameters, see the "Speed and Duplex Configuration" section in
  30. this document.
  31. For more information about the InterruptThrottleRate,
  32. RxIntDelay, TxIntDelay, RxAbsIntDelay, and TxAbsIntDelay
  33. parameters, see the application note at:
  34. http://www.intel.com/design/network/applnots/ap450.htm
  35. AutoNeg
  36. -------
  37. (Supported only on adapters with copper connections)
  38. :Valid Range: 0x01-0x0F, 0x20-0x2F
  39. :Default Value: 0x2F
  40. This parameter is a bit-mask that specifies the speed and duplex settings
  41. advertised by the adapter. When this parameter is used, the Speed and
  42. Duplex parameters must not be specified.
  43. NOTE:
  44. Refer to the Speed and Duplex section of this readme for more
  45. information on the AutoNeg parameter.
  46. Duplex
  47. ------
  48. (Supported only on adapters with copper connections)
  49. :Valid Range: 0-2 (0=auto-negotiate, 1=half, 2=full)
  50. :Default Value: 0
  51. This defines the direction in which data is allowed to flow. Can be
  52. either one or two-directional. If both Duplex and the link partner are
  53. set to auto-negotiate, the board auto-detects the correct duplex. If the
  54. link partner is forced (either full or half), Duplex defaults to half-
  55. duplex.
  56. FlowControl
  57. -----------
  58. :Valid Range: 0-3 (0=none, 1=Rx only, 2=Tx only, 3=Rx&Tx)
  59. :Default Value: Reads flow control settings from the EEPROM
  60. This parameter controls the automatic generation(Tx) and response(Rx)
  61. to Ethernet PAUSE frames.
  62. InterruptThrottleRate
  63. ---------------------
  64. (not supported on Intel(R) 82542, 82543 or 82544-based adapters)
  65. :Valid Range:
  66. 0,1,3,4,100-100000 (0=off, 1=dynamic, 3=dynamic conservative,
  67. 4=simplified balancing)
  68. :Default Value: 3
  69. The driver can limit the amount of interrupts per second that the adapter
  70. will generate for incoming packets. It does this by writing a value to the
  71. adapter that is based on the maximum amount of interrupts that the adapter
  72. will generate per second.
  73. Setting InterruptThrottleRate to a value greater or equal to 100
  74. will program the adapter to send out a maximum of that many interrupts
  75. per second, even if more packets have come in. This reduces interrupt
  76. load on the system and can lower CPU utilization under heavy load,
  77. but will increase latency as packets are not processed as quickly.
  78. The default behaviour of the driver previously assumed a static
  79. InterruptThrottleRate value of 8000, providing a good fallback value for
  80. all traffic types,but lacking in small packet performance and latency.
  81. The hardware can handle many more small packets per second however, and
  82. for this reason an adaptive interrupt moderation algorithm was implemented.
  83. Since 7.3.x, the driver has two adaptive modes (setting 1 or 3) in which
  84. it dynamically adjusts the InterruptThrottleRate value based on the traffic
  85. that it receives. After determining the type of incoming traffic in the last
  86. timeframe, it will adjust the InterruptThrottleRate to an appropriate value
  87. for that traffic.
  88. The algorithm classifies the incoming traffic every interval into
  89. classes. Once the class is determined, the InterruptThrottleRate value is
  90. adjusted to suit that traffic type the best. There are three classes defined:
  91. "Bulk traffic", for large amounts of packets of normal size; "Low latency",
  92. for small amounts of traffic and/or a significant percentage of small
  93. packets; and "Lowest latency", for almost completely small packets or
  94. minimal traffic.
  95. In dynamic conservative mode, the InterruptThrottleRate value is set to 4000
  96. for traffic that falls in class "Bulk traffic". If traffic falls in the "Low
  97. latency" or "Lowest latency" class, the InterruptThrottleRate is increased
  98. stepwise to 20000. This default mode is suitable for most applications.
  99. For situations where low latency is vital such as cluster or
  100. grid computing, the algorithm can reduce latency even more when
  101. InterruptThrottleRate is set to mode 1. In this mode, which operates
  102. the same as mode 3, the InterruptThrottleRate will be increased stepwise to
  103. 70000 for traffic in class "Lowest latency".
  104. In simplified mode the interrupt rate is based on the ratio of TX and
  105. RX traffic. If the bytes per second rate is approximately equal, the
  106. interrupt rate will drop as low as 2000 interrupts per second. If the
  107. traffic is mostly transmit or mostly receive, the interrupt rate could
  108. be as high as 8000.
  109. Setting InterruptThrottleRate to 0 turns off any interrupt moderation
  110. and may improve small packet latency, but is generally not suitable
  111. for bulk throughput traffic.
  112. NOTE:
  113. InterruptThrottleRate takes precedence over the TxAbsIntDelay and
  114. RxAbsIntDelay parameters. In other words, minimizing the receive
  115. and/or transmit absolute delays does not force the controller to
  116. generate more interrupts than what the Interrupt Throttle Rate
  117. allows.
  118. CAUTION:
  119. If you are using the Intel(R) PRO/1000 CT Network Connection
  120. (controller 82547), setting InterruptThrottleRate to a value
  121. greater than 75,000, may hang (stop transmitting) adapters
  122. under certain network conditions. If this occurs a NETDEV
  123. WATCHDOG message is logged in the system event log. In
  124. addition, the controller is automatically reset, restoring
  125. the network connection. To eliminate the potential for the
  126. hang, ensure that InterruptThrottleRate is set no greater
  127. than 75,000 and is not set to 0.
  128. NOTE:
  129. When e1000 is loaded with default settings and multiple adapters
  130. are in use simultaneously, the CPU utilization may increase non-
  131. linearly. In order to limit the CPU utilization without impacting
  132. the overall throughput, we recommend that you load the driver as
  133. follows::
  134. modprobe e1000 InterruptThrottleRate=3000,3000,3000
  135. This sets the InterruptThrottleRate to 3000 interrupts/sec for
  136. the first, second, and third instances of the driver. The range
  137. of 2000 to 3000 interrupts per second works on a majority of
  138. systems and is a good starting point, but the optimal value will
  139. be platform-specific. If CPU utilization is not a concern, use
  140. RX_POLLING (NAPI) and default driver settings.
  141. RxDescriptors
  142. -------------
  143. :Valid Range:
  144. - 48-256 for 82542 and 82543-based adapters
  145. - 48-4096 for all other supported adapters
  146. :Default Value: 256
  147. This value specifies the number of receive buffer descriptors allocated
  148. by the driver. Increasing this value allows the driver to buffer more
  149. incoming packets, at the expense of increased system memory utilization.
  150. Each descriptor is 16 bytes. A receive buffer is also allocated for each
  151. descriptor and can be either 2048, 4096, 8192, or 16384 bytes, depending
  152. on the MTU setting. The maximum MTU size is 16110.
  153. NOTE:
  154. MTU designates the frame size. It only needs to be set for Jumbo
  155. Frames. Depending on the available system resources, the request
  156. for a higher number of receive descriptors may be denied. In this
  157. case, use a lower number.
  158. RxIntDelay
  159. ----------
  160. :Valid Range: 0-65535 (0=off)
  161. :Default Value: 0
  162. This value delays the generation of receive interrupts in units of 1.024
  163. microseconds. Receive interrupt reduction can improve CPU efficiency if
  164. properly tuned for specific network traffic. Increasing this value adds
  165. extra latency to frame reception and can end up decreasing the throughput
  166. of TCP traffic. If the system is reporting dropped receives, this value
  167. may be set too high, causing the driver to run out of available receive
  168. descriptors.
  169. CAUTION:
  170. When setting RxIntDelay to a value other than 0, adapters may
  171. hang (stop transmitting) under certain network conditions. If
  172. this occurs a NETDEV WATCHDOG message is logged in the system
  173. event log. In addition, the controller is automatically reset,
  174. restoring the network connection. To eliminate the potential
  175. for the hang ensure that RxIntDelay is set to 0.
  176. RxAbsIntDelay
  177. -------------
  178. (This parameter is supported only on 82540, 82545 and later adapters.)
  179. :Valid Range: 0-65535 (0=off)
  180. :Default Value: 128
  181. This value, in units of 1.024 microseconds, limits the delay in which a
  182. receive interrupt is generated. Useful only if RxIntDelay is non-zero,
  183. this value ensures that an interrupt is generated after the initial
  184. packet is received within the set amount of time. Proper tuning,
  185. along with RxIntDelay, may improve traffic throughput in specific network
  186. conditions.
  187. Speed
  188. -----
  189. (This parameter is supported only on adapters with copper connections.)
  190. :Valid Settings: 0, 10, 100, 1000
  191. :Default Value: 0 (auto-negotiate at all supported speeds)
  192. Speed forces the line speed to the specified value in megabits per second
  193. (Mbps). If this parameter is not specified or is set to 0 and the link
  194. partner is set to auto-negotiate, the board will auto-detect the correct
  195. speed. Duplex should also be set when Speed is set to either 10 or 100.
  196. TxDescriptors
  197. -------------
  198. :Valid Range:
  199. - 48-256 for 82542 and 82543-based adapters
  200. - 48-4096 for all other supported adapters
  201. :Default Value: 256
  202. This value is the number of transmit descriptors allocated by the driver.
  203. Increasing this value allows the driver to queue more transmits. Each
  204. descriptor is 16 bytes.
  205. NOTE:
  206. Depending on the available system resources, the request for a
  207. higher number of transmit descriptors may be denied. In this case,
  208. use a lower number.
  209. TxIntDelay
  210. ----------
  211. :Valid Range: 0-65535 (0=off)
  212. :Default Value: 8
  213. This value delays the generation of transmit interrupts in units of
  214. 1.024 microseconds. Transmit interrupt reduction can improve CPU
  215. efficiency if properly tuned for specific network traffic. If the
  216. system is reporting dropped transmits, this value may be set too high
  217. causing the driver to run out of available transmit descriptors.
  218. TxAbsIntDelay
  219. -------------
  220. (This parameter is supported only on 82540, 82545 and later adapters.)
  221. :Valid Range: 0-65535 (0=off)
  222. :Default Value: 32
  223. This value, in units of 1.024 microseconds, limits the delay in which a
  224. transmit interrupt is generated. Useful only if TxIntDelay is non-zero,
  225. this value ensures that an interrupt is generated after the initial
  226. packet is sent on the wire within the set amount of time. Proper tuning,
  227. along with TxIntDelay, may improve traffic throughput in specific
  228. network conditions.
  229. XsumRX
  230. ------
  231. (This parameter is NOT supported on the 82542-based adapter.)
  232. :Valid Range: 0-1
  233. :Default Value: 1
  234. A value of '1' indicates that the driver should enable IP checksum
  235. offload for received packets (both UDP and TCP) to the adapter hardware.
  236. Copybreak
  237. ---------
  238. :Valid Range: 0-xxxxxxx (0=off)
  239. :Default Value: 256
  240. :Usage: modprobe e1000.ko copybreak=128
  241. Driver copies all packets below or equaling this size to a fresh RX
  242. buffer before handing it up the stack.
  243. This parameter is different than other parameters, in that it is a
  244. single (not 1,1,1 etc.) parameter applied to all driver instances and
  245. it is also available during runtime at
  246. /sys/module/e1000/parameters/copybreak
  247. SmartPowerDownEnable
  248. --------------------
  249. :Valid Range: 0-1
  250. :Default Value: 0 (disabled)
  251. Allows PHY to turn off in lower power states. The user can turn off
  252. this parameter in supported chipsets.
  253. Speed and Duplex Configuration
  254. ==============================
  255. Three keywords are used to control the speed and duplex configuration.
  256. These keywords are Speed, Duplex, and AutoNeg.
  257. If the board uses a fiber interface, these keywords are ignored, and the
  258. fiber interface board only links at 1000 Mbps full-duplex.
  259. For copper-based boards, the keywords interact as follows:
  260. - The default operation is auto-negotiate. The board advertises all
  261. supported speed and duplex combinations, and it links at the highest
  262. common speed and duplex mode IF the link partner is set to auto-negotiate.
  263. - If Speed = 1000, limited auto-negotiation is enabled and only 1000 Mbps
  264. is advertised (The 1000BaseT spec requires auto-negotiation.)
  265. - If Speed = 10 or 100, then both Speed and Duplex should be set. Auto-
  266. negotiation is disabled, and the AutoNeg parameter is ignored. Partner
  267. SHOULD also be forced.
  268. The AutoNeg parameter is used when more control is required over the
  269. auto-negotiation process. It should be used when you wish to control which
  270. speed and duplex combinations are advertised during the auto-negotiation
  271. process.
  272. The parameter may be specified as either a decimal or hexadecimal value as
  273. determined by the bitmap below.
  274. ============== ====== ====== ======= ======= ====== ====== ======= ======
  275. Bit position 7 6 5 4 3 2 1 0
  276. Decimal Value 128 64 32 16 8 4 2 1
  277. Hex value 80 40 20 10 8 4 2 1
  278. Speed (Mbps) N/A N/A 1000 N/A 100 100 10 10
  279. Duplex Full Full Half Full Half
  280. ============== ====== ====== ======= ======= ====== ====== ======= ======
  281. Some examples of using AutoNeg::
  282. modprobe e1000 AutoNeg=0x01 (Restricts autonegotiation to 10 Half)
  283. modprobe e1000 AutoNeg=1 (Same as above)
  284. modprobe e1000 AutoNeg=0x02 (Restricts autonegotiation to 10 Full)
  285. modprobe e1000 AutoNeg=0x03 (Restricts autonegotiation to 10 Half or 10 Full)
  286. modprobe e1000 AutoNeg=0x04 (Restricts autonegotiation to 100 Half)
  287. modprobe e1000 AutoNeg=0x05 (Restricts autonegotiation to 10 Half or 100
  288. Half)
  289. modprobe e1000 AutoNeg=0x020 (Restricts autonegotiation to 1000 Full)
  290. modprobe e1000 AutoNeg=32 (Same as above)
  291. Note that when this parameter is used, Speed and Duplex must not be specified.
  292. If the link partner is forced to a specific speed and duplex, then this
  293. parameter should not be used. Instead, use the Speed and Duplex parameters
  294. previously mentioned to force the adapter to the same speed and duplex.
  295. Additional Configurations
  296. =========================
  297. Jumbo Frames
  298. ------------
  299. Jumbo Frames support is enabled by changing the MTU to a value larger than
  300. the default of 1500. Use the ifconfig command to increase the MTU size.
  301. For example::
  302. ifconfig eth<x> mtu 9000 up
  303. This setting is not saved across reboots. It can be made permanent if
  304. you add::
  305. MTU=9000
  306. to the file /etc/sysconfig/network-scripts/ifcfg-eth<x>. This example
  307. applies to the Red Hat distributions; other distributions may store this
  308. setting in a different location.
  309. Notes:
  310. Degradation in throughput performance may be observed in some Jumbo frames
  311. environments. If this is observed, increasing the application's socket buffer
  312. size and/or increasing the /proc/sys/net/ipv4/tcp_*mem entry values may help.
  313. See the specific application manual and /usr/src/linux*/Documentation/
  314. networking/ip-sysctl.txt for more details.
  315. - The maximum MTU setting for Jumbo Frames is 16110. This value coincides
  316. with the maximum Jumbo Frames size of 16128.
  317. - Using Jumbo frames at 10 or 100 Mbps is not supported and may result in
  318. poor performance or loss of link.
  319. - Adapters based on the Intel(R) 82542 and 82573V/E controller do not
  320. support Jumbo Frames. These correspond to the following product names::
  321. Intel(R) PRO/1000 Gigabit Server Adapter
  322. Intel(R) PRO/1000 PM Network Connection
  323. ethtool
  324. -------
  325. The driver utilizes the ethtool interface for driver configuration and
  326. diagnostics, as well as displaying statistical information. The ethtool
  327. version 1.6 or later is required for this functionality.
  328. The latest release of ethtool can be found from
  329. https://www.kernel.org/pub/software/network/ethtool/
  330. Enabling Wake on LAN (WoL)
  331. --------------------------
  332. WoL is configured through the ethtool utility.
  333. WoL will be enabled on the system during the next shut down or reboot.
  334. For this driver version, in order to enable WoL, the e1000 driver must be
  335. loaded when shutting down or rebooting the system.
  336. Support
  337. =======
  338. For general information, go to the Intel support website at:
  339. http://support.intel.com
  340. If an issue is identified with the released source code on the supported
  341. kernel with a supported adapter, email the specific information related
  342. to the issue to intel-wired-lan@lists.osuosl.org.