e1000.txt 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  1. Linux* Base Driver for the Intel(R) PRO/1000 Family of Adapters
  2. ===============================================================
  3. November 17, 2004
  4. Contents
  5. ========
  6. - In This Release
  7. - Identifying Your Adapter
  8. - Command Line Parameters
  9. - Speed and Duplex Configuration
  10. - Additional Configurations
  11. - Known Issues
  12. - Support
  13. In This Release
  14. ===============
  15. This file describes the Linux* Base Driver for the Intel(R) PRO/1000 Family
  16. of Adapters, version 5.x.x.
  17. For questions related to hardware requirements, refer to the documentation
  18. supplied with your Intel PRO/1000 adapter. All hardware requirements listed
  19. apply to use with Linux.
  20. Native VLANs are now available with supported kernels.
  21. Identifying Your Adapter
  22. ========================
  23. For more information on how to identify your adapter, go to the Adapter &
  24. Driver ID Guide at:
  25. http://support.intel.com/support/network/adapter/pro100/21397.htm
  26. For the latest Intel network drivers for Linux, refer to the following
  27. website. In the search field, enter your adapter name or type, or use the
  28. networking link on the left to search for your adapter:
  29. http://downloadfinder.intel.com/scripts-df/support_intel.asp
  30. Command Line Parameters
  31. =======================
  32. If the driver is built as a module, the following optional parameters are
  33. used by entering them on the command line with the modprobe or insmod command
  34. using this syntax:
  35. modprobe e1000 [<option>=<VAL1>,<VAL2>,...]
  36. insmod e1000 [<option>=<VAL1>,<VAL2>,...]
  37. For example, with two PRO/1000 PCI adapters, entering:
  38. insmod e1000 TxDescriptors=80,128
  39. loads the e1000 driver with 80 TX descriptors for the first adapter and 128 TX
  40. descriptors for the second adapter.
  41. The default value for each parameter is generally the recommended setting,
  42. unless otherwise noted. Also, if the driver is statically built into the
  43. kernel, the driver is loaded with the default values for all the parameters.
  44. Ethtool can be used to change some of the parameters at runtime.
  45. NOTES: For more information about the AutoNeg, Duplex, and Speed
  46. parameters, see the "Speed and Duplex Configuration" section in
  47. this document.
  48. For more information about the InterruptThrottleRate, RxIntDelay,
  49. TxIntDelay, RxAbsIntDelay, and TxAbsIntDelay parameters, see the
  50. application note at:
  51. http://www.intel.com/design/network/applnots/ap450.htm
  52. A descriptor describes a data buffer and attributes related to the
  53. data buffer. This information is accessed by the hardware.
  54. AutoNeg (adapters using copper connections only)
  55. Valid Range: 0x01-0x0F, 0x20-0x2F
  56. Default Value: 0x2F
  57. This parameter is a bit mask that specifies which speed and duplex
  58. settings the board advertises. When this parameter is used, the Speed and
  59. Duplex parameters must not be specified.
  60. NOTE: Refer to the Speed and Duplex section of this readme for more
  61. information on the AutoNeg parameter.
  62. Duplex (adapters using copper connections only)
  63. Valid Range: 0-2 (0=auto-negotiate, 1=half, 2=full)
  64. Default Value: 0
  65. Defines the direction in which data is allowed to flow. Can be either one
  66. or two-directional. If both Duplex and the link partner are set to auto-
  67. negotiate, the board auto-detects the correct duplex. If the link partner
  68. is forced (either full or half), Duplex defaults to half-duplex.
  69. FlowControl
  70. Valid Range: 0-3 (0=none, 1=Rx only, 2=Tx only, 3=Rx&Tx)
  71. Default: Read flow control settings from the EEPROM
  72. This parameter controls the automatic generation(Tx) and response(Rx) to
  73. Ethernet PAUSE frames.
  74. InterruptThrottleRate
  75. Valid Range: 100-100000 (0=off, 1=dynamic)
  76. Default Value: 8000
  77. This value represents the maximum number of interrupts per second the
  78. controller generates. InterruptThrottleRate is another setting used in
  79. interrupt moderation. Dynamic mode uses a heuristic algorithm to adjust
  80. InterruptThrottleRate based on the current traffic load.
  81. Un-supported Adapters: InterruptThrottleRate is NOT supported by 82542, 82543
  82. or 82544-based adapters.
  83. NOTE: InterruptThrottleRate takes precedence over the TxAbsIntDelay and
  84. RxAbsIntDelay parameters. In other words, minimizing the receive
  85. and/or transmit absolute delays does not force the controller to
  86. generate more interrupts than what the Interrupt Throttle Rate
  87. allows.
  88. CAUTION: If you are using the Intel PRO/1000 CT Network Connection
  89. (controller 82547), setting InterruptThrottleRate to a value
  90. greater than 75,000, may hang (stop transmitting) adapters under
  91. certain network conditions. If this occurs a NETDEV WATCHDOG
  92. message is logged in the system event log. In addition, the
  93. controller is automatically reset, restoring the network
  94. connection. To eliminate the potential for the hang, ensure
  95. that InterruptThrottleRate is set no greater than 75,000 and is
  96. not set to 0.
  97. NOTE: When e1000 is loaded with default settings and multiple adapters are
  98. in use simultaneously, the CPU utilization may increase non-linearly.
  99. In order to limit the CPU utilization without impacting the overall
  100. throughput, we recommend that you load the driver as follows:
  101. insmod e1000.o InterruptThrottleRate=3000,3000,3000
  102. This sets the InterruptThrottleRate to 3000 interrupts/sec for the
  103. first, second, and third instances of the driver. The range of 2000 to
  104. 3000 interrupts per second works on a majority of systems and is a
  105. good starting point, but the optimal value will be platform-specific.
  106. If CPU utilization is not a concern, use RX_POLLING (NAPI) and default
  107. driver settings.
  108. RxDescriptors
  109. Valid Range: 80-256 for 82542 and 82543-based adapters
  110. 80-4096 for all other supported adapters
  111. Default Value: 256
  112. This value is the number of receive descriptors allocated by the driver.
  113. Increasing this value allows the driver to buffer more incoming packets.
  114. Each descriptor is 16 bytes. A receive buffer is allocated for each
  115. descriptor and can either be 2048 or 4096 bytes long, depending on the MTU
  116. setting. An incoming packet can span one or more receive descriptors.
  117. The maximum MTU size is 16110.
  118. NOTE: MTU designates the frame size. It only needs to be set for Jumbo
  119. Frames.
  120. NOTE: Depending on the available system resources, the request for a
  121. higher number of receive descriptors may be denied. In this case,
  122. use a lower number.
  123. RxIntDelay
  124. Valid Range: 0-65535 (0=off)
  125. Default Value: 0
  126. This value delays the generation of receive interrupts in units of 1.024
  127. microseconds. Receive interrupt reduction can improve CPU efficiency if
  128. properly tuned for specific network traffic. Increasing this value adds
  129. extra latency to frame reception and can end up decreasing the throughput
  130. of TCP traffic. If the system is reporting dropped receives, this value
  131. may be set too high, causing the driver to run out of available receive
  132. descriptors.
  133. CAUTION: When setting RxIntDelay to a value other than 0, adapters may
  134. hang (stop transmitting) under certain network conditions. If
  135. this occurs a NETDEV WATCHDOG message is logged in the system
  136. event log. In addition, the controller is automatically reset,
  137. restoring the network connection. To eliminate the potential for
  138. the hang ensure that RxIntDelay is set to 0.
  139. RxAbsIntDelay (82540, 82545 and later adapters only)
  140. Valid Range: 0-65535 (0=off)
  141. Default Value: 128
  142. This value, in units of 1.024 microseconds, limits the delay in which a
  143. receive interrupt is generated. Useful only if RxIntDelay is non-zero,
  144. this value ensures that an interrupt is generated after the initial
  145. packet is received within the set amount of time. Proper tuning,
  146. along with RxIntDelay, may improve traffic throughput in specific network
  147. conditions.
  148. Speed (adapters using copper connections only)
  149. Valid Settings: 0, 10, 100, 1000
  150. Default Value: 0 (auto-negotiate at all supported speeds)
  151. Speed forces the line speed to the specified value in megabits per second
  152. (Mbps). If this parameter is not specified or is set to 0 and the link
  153. partner is set to auto-negotiate, the board will auto-detect the correct
  154. speed. Duplex should also be set when Speed is set to either 10 or 100.
  155. TxDescriptors
  156. Valid Range: 80-256 for 82542 and 82543-based adapters
  157. 80-4096 for all other supported adapters
  158. Default Value: 256
  159. This value is the number of transmit descriptors allocated by the driver.
  160. Increasing this value allows the driver to queue more transmits. Each
  161. descriptor is 16 bytes.
  162. NOTE: Depending on the available system resources, the request for a
  163. higher number of transmit descriptors may be denied. In this case,
  164. use a lower number.
  165. TxIntDelay
  166. Valid Range: 0-65535 (0=off)
  167. Default Value: 64
  168. This value delays the generation of transmit interrupts in units of
  169. 1.024 microseconds. Transmit interrupt reduction can improve CPU
  170. efficiency if properly tuned for specific network traffic. If the
  171. system is reporting dropped transmits, this value may be set too high
  172. causing the driver to run out of available transmit descriptors.
  173. TxAbsIntDelay (82540, 82545 and later adapters only)
  174. Valid Range: 0-65535 (0=off)
  175. Default Value: 64
  176. This value, in units of 1.024 microseconds, limits the delay in which a
  177. transmit interrupt is generated. Useful only if TxIntDelay is non-zero,
  178. this value ensures that an interrupt is generated after the initial
  179. packet is sent on the wire within the set amount of time. Proper tuning,
  180. along with TxIntDelay, may improve traffic throughput in specific
  181. network conditions.
  182. XsumRX (not available on the 82542-based adapter)
  183. Valid Range: 0-1
  184. Default Value: 1
  185. A value of '1' indicates that the driver should enable IP checksum
  186. offload for received packets (both UDP and TCP) to the adapter hardware.
  187. Speed and Duplex Configuration
  188. ==============================
  189. Three keywords are used to control the speed and duplex configuration. These
  190. keywords are Speed, Duplex, and AutoNeg.
  191. If the board uses a fiber interface, these keywords are ignored, and the
  192. fiber interface board only links at 1000 Mbps full-duplex.
  193. For copper-based boards, the keywords interact as follows:
  194. The default operation is auto-negotiate. The board advertises all supported
  195. speed and duplex combinations, and it links at the highest common speed and
  196. duplex mode IF the link partner is set to auto-negotiate.
  197. If Speed = 1000, limited auto-negotiation is enabled and only 1000 Mbps is
  198. advertised (The 1000BaseT spec requires auto-negotiation.)
  199. If Speed = 10 or 100, then both Speed and Duplex should be set. Auto-
  200. negotiation is disabled, and the AutoNeg parameter is ignored. Partner SHOULD
  201. also be forced.
  202. The AutoNeg parameter is used when more control is required over the auto-
  203. negotiation process. When this parameter is used, Speed and Duplex parameters
  204. must not be specified. The following table describes supported values for the
  205. AutoNeg parameter:
  206. Speed (Mbps) 1000 100 100 10 10
  207. Duplex Full Full Half Full Half
  208. Value (in base 16) 0x20 0x08 0x04 0x02 0x01
  209. Example: insmod e1000 AutoNeg=0x03, loads e1000 and specifies (10 full duplex,
  210. 10 half duplex) for negotiation with the peer.
  211. Note that setting AutoNeg does not guarantee that the board will link at the
  212. highest specified speed or duplex mode, but the board will link at the
  213. highest possible speed/duplex of the link partner IF the link partner is also
  214. set to auto-negotiate. If the link partner is forced speed/duplex, the
  215. adapter MUST be forced to the same speed/duplex.
  216. Additional Configurations
  217. =========================
  218. Configuring the Driver on Different Distributions
  219. -------------------------------------------------
  220. Configuring a network driver to load properly when the system is started is
  221. distribution dependent. Typically, the configuration process involves adding
  222. an alias line to /etc/modules.conf as well as editing other system startup
  223. scripts and/or configuration files. Many popular Linux distributions ship
  224. with tools to make these changes for you. To learn the proper way to
  225. configure a network device for your system, refer to your distribution
  226. documentation. If during this process you are asked for the driver or module
  227. name, the name for the Linux Base Driver for the Intel PRO/1000 Family of
  228. Adapters is e1000.
  229. As an example, if you install the e1000 driver for two PRO/1000 adapters
  230. (eth0 and eth1) and set the speed and duplex to 10full and 100half, add the
  231. following to modules.conf:
  232. alias eth0 e1000
  233. alias eth1 e1000
  234. options e1000 Speed=10,100 Duplex=2,1
  235. Viewing Link Messages
  236. ---------------------
  237. Link messages will not be displayed to the console if the distribution is
  238. restricting system messages. In order to see network driver link messages on
  239. your console, set dmesg to eight by entering the following:
  240. dmesg -n 8
  241. NOTE: This setting is not saved across reboots.
  242. Jumbo Frames
  243. ------------
  244. The driver supports Jumbo Frames for all adapters except 82542-based
  245. adapters. Jumbo Frames support is enabled by changing the MTU to a value
  246. larger than the default of 1500. Use the ifconfig command to increase the
  247. MTU size. For example:
  248. ifconfig ethx mtu 9000 up
  249. The maximum MTU setting for Jumbo Frames is 16110. This value coincides
  250. with the maximum Jumbo Frames size of 16128.
  251. NOTE: Jumbo Frames are supported at 1000 Mbps only. Using Jumbo Frames at
  252. 10 or 100 Mbps may result in poor performance or loss of link.
  253. NOTE: MTU designates the frame size. To enable Jumbo Frames, increase the
  254. MTU size on the interface beyond 1500.
  255. Ethtool
  256. -------
  257. The driver utilizes the ethtool interface for driver configuration and
  258. diagnostics, as well as displaying statistical information. Ethtool
  259. version 1.6 or later is required for this functionality.
  260. The latest release of ethtool can be found from
  261. http://sf.net/projects/gkernel.
  262. NOTE: Ethtool 1.6 only supports a limited set of ethtool options. Support
  263. for a more complete ethtool feature set can be enabled by upgrading
  264. ethtool to ethtool-1.8.1.
  265. Enabling Wake on LAN* (WoL)
  266. ---------------------------
  267. WoL is configured through the Ethtool* utility. Ethtool is included with
  268. all versions of Red Hat after Red Hat 7.2. For other Linux distributions,
  269. download and install Ethtool from the following website:
  270. http://sourceforge.net/projects/gkernel.
  271. For instructions on enabling WoL with Ethtool, refer to the website listed
  272. above.
  273. WoL will be enabled on the system during the next shut down or reboot.
  274. For this driver version, in order to enable WoL, the e1000 driver must be
  275. loaded when shutting down or rebooting the system.
  276. NAPI
  277. ----
  278. NAPI (Rx polling mode) is supported in the e1000 driver. NAPI is enabled
  279. or disabled based on the configuration of the kernel.
  280. See www.cyberus.ca/~hadi/usenix-paper.tgz for more information on NAPI.
  281. Known Issues
  282. ============
  283. Jumbo Frames System Requirement
  284. -------------------------------
  285. Memory allocation failures have been observed on Linux systems with 64 MB
  286. of RAM or less that are running Jumbo Frames. If you are using Jumbo Frames,
  287. your system may require more than the advertised minimum requirement of 64 MB
  288. of system memory.
  289. Support
  290. =======
  291. For general information, go to the Intel support website at:
  292. http://support.intel.com
  293. If an issue is identified with the released source code on the supported
  294. kernel with a supported adapter, email the specific information related to
  295. the issue to linux.nics@intel.com.
  296. License
  297. =======
  298. This software program is released under the terms of a license agreement
  299. between you ('Licensee') and Intel. Do not use or load this software or any
  300. associated materials (collectively, the 'Software') until you have carefully
  301. read the full terms and conditions of the LICENSE located in this software
  302. package. By loading or using the Software, you agree to the terms of this
  303. Agreement. If you do not agree with the terms of this Agreement, do not
  304. install or use the Software.
  305. * Other names and brands may be claimed as the property of others.