e1000.rst 17 KB

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