e1000.txt 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571
  1. Linux* Base Driver for the Intel(R) PRO/1000 Family of Adapters
  2. ===============================================================
  3. November 15, 2005
  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. This driver includes support for Itanium(R)2-based systems.
  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. The following features are now available in supported kernels:
  21. - Native VLANs
  22. - Channel Bonding (teaming)
  23. - SNMP
  24. Channel Bonding documentation can be found in the Linux kernel source:
  25. /Documentation/networking/bonding.txt
  26. The driver information previously displayed in the /proc filesystem is not
  27. supported in this release. Alternatively, you can use ethtool (version 1.6
  28. or later), lspci, and ifconfig to obtain the same information.
  29. Instructions on updating ethtool can be found in the section "Additional
  30. Configurations" later in this document.
  31. Identifying Your Adapter
  32. ========================
  33. For more information on how to identify your adapter, go to the Adapter &
  34. Driver ID Guide at:
  35. http://support.intel.com/support/network/adapter/pro100/21397.htm
  36. For the latest Intel network drivers for Linux, refer to the following
  37. website. In the search field, enter your adapter name or type, or use the
  38. networking link on the left to search for your adapter:
  39. http://downloadfinder.intel.com/scripts-df/support_intel.asp
  40. Command Line Parameters =======================
  41. If the driver is built as a module, the following optional parameters
  42. are used by entering them on the command line with the modprobe or insmod
  43. command using this syntax:
  44. modprobe e1000 [<option>=<VAL1>,<VAL2>,...]
  45. insmod e1000 [<option>=<VAL1>,<VAL2>,...]
  46. For example, with two PRO/1000 PCI adapters, entering:
  47. insmod e1000 TxDescriptors=80,128
  48. loads the e1000 driver with 80 TX descriptors for the first adapter and 128
  49. TX descriptors for the second adapter.
  50. The default value for each parameter is generally the recommended setting,
  51. unless otherwise noted.
  52. NOTES: For more information about the AutoNeg, Duplex, and Speed
  53. parameters, see the "Speed and Duplex Configuration" section in
  54. this document.
  55. For more information about the InterruptThrottleRate,
  56. RxIntDelay, TxIntDelay, RxAbsIntDelay, and TxAbsIntDelay
  57. parameters, see the application note at:
  58. http://www.intel.com/design/network/applnots/ap450.htm
  59. A descriptor describes a data buffer and attributes related to
  60. the data buffer. This information is accessed by the hardware.
  61. AutoNeg
  62. -------
  63. (Supported only on adapters with copper connections)
  64. Valid Range: 0x01-0x0F, 0x20-0x2F
  65. Default Value: 0x2F
  66. This parameter is a bit mask that specifies which speed and duplex
  67. settings the board advertises. When this parameter is used, the Speed
  68. and Duplex parameters must not be specified.
  69. NOTE: Refer to the Speed and Duplex section of this readme for more
  70. information on the AutoNeg parameter.
  71. Duplex
  72. ------
  73. (Supported only on adapters with copper connections)
  74. Valid Range: 0-2 (0=auto-negotiate, 1=half, 2=full)
  75. Default Value: 0
  76. Defines the direction in which data is allowed to flow. Can be either
  77. one or two-directional. If both Duplex and the link partner are set to
  78. auto-negotiate, the board auto-detects the correct duplex. If the link
  79. partner is forced (either full or half), Duplex defaults to half-duplex.
  80. FlowControl
  81. ----------
  82. Valid Range: 0-3 (0=none, 1=Rx only, 2=Tx only, 3=Rx&Tx)
  83. Default Value: Reads flow control settings from the EEPROM
  84. This parameter controls the automatic generation(Tx) and response(Rx)
  85. to Ethernet PAUSE frames.
  86. InterruptThrottleRate
  87. ---------------------
  88. (not supported on Intel 82542, 82543 or 82544-based adapters)
  89. Valid Range: 100-100000 (0=off, 1=dynamic)
  90. Default Value: 8000
  91. This value represents the maximum number of interrupts per second the
  92. controller generates. InterruptThrottleRate is another setting used in
  93. interrupt moderation. Dynamic mode uses a heuristic algorithm to adjust
  94. InterruptThrottleRate based on the current traffic load.
  95. NOTE: InterruptThrottleRate takes precedence over the TxAbsIntDelay and
  96. RxAbsIntDelay parameters. In other words, minimizing the receive
  97. and/or transmit absolute delays does not force the controller to
  98. generate more interrupts than what the Interrupt Throttle Rate
  99. allows.
  100. CAUTION: If you are using the Intel PRO/1000 CT Network Connection
  101. (controller 82547), setting InterruptThrottleRate to a value
  102. greater than 75,000, may hang (stop transmitting) adapters
  103. under certain network conditions. If this occurs a NETDEV
  104. WATCHDOG message is logged in the system event log. In
  105. addition, the controller is automatically reset, restoring
  106. the network connection. To eliminate the potential for the
  107. hang, ensure that InterruptThrottleRate is set no greater
  108. than 75,000 and is not set to 0.
  109. NOTE: When e1000 is loaded with default settings and multiple adapters
  110. are in use simultaneously, the CPU utilization may increase non-
  111. linearly. In order to limit the CPU utilization without impacting
  112. the overall throughput, we recommend that you load the driver as
  113. follows:
  114. insmod e1000.o InterruptThrottleRate=3000,3000,3000
  115. This sets the InterruptThrottleRate to 3000 interrupts/sec for
  116. the first, second, and third instances of the driver. The range
  117. of 2000 to 3000 interrupts per second works on a majority of
  118. systems and is a good starting point, but the optimal value will
  119. be platform-specific. If CPU utilization is not a concern, use
  120. RX_POLLING (NAPI) and default driver settings.
  121. RxDescriptors
  122. -------------
  123. Valid Range: 80-256 for 82542 and 82543-based adapters
  124. 80-4096 for all other supported adapters
  125. Default Value: 256
  126. This value specifies the number of receive descriptors allocated by the
  127. driver. Increasing this value allows the driver to buffer more incoming
  128. packets. Each descriptor is 16 bytes. A receive buffer is also
  129. allocated for each descriptor and is 2048.
  130. RxIntDelay
  131. ----------
  132. Valid Range: 0-65535 (0=off)
  133. Default Value: 0
  134. This value delays the generation of receive interrupts in units of 1.024
  135. microseconds. Receive interrupt reduction can improve CPU efficiency if
  136. properly tuned for specific network traffic. Increasing this value adds
  137. extra latency to frame reception and can end up decreasing the throughput
  138. of TCP traffic. If the system is reporting dropped receives, this value
  139. may be set too high, causing the driver to run out of available receive
  140. descriptors.
  141. CAUTION: When setting RxIntDelay to a value other than 0, adapters may
  142. hang (stop transmitting) under certain network conditions. If
  143. this occurs a NETDEV WATCHDOG message is logged in the system
  144. event log. In addition, the controller is automatically reset,
  145. restoring the network connection. To eliminate the potential
  146. for the hang ensure that RxIntDelay is set to 0.
  147. RxAbsIntDelay
  148. -------------
  149. (This parameter is supported only on 82540, 82545 and later adapters.)
  150. Valid Range: 0-65535 (0=off)
  151. Default Value: 128
  152. This value, in units of 1.024 microseconds, limits the delay in which a
  153. receive interrupt is generated. Useful only if RxIntDelay is non-zero,
  154. this value ensures that an interrupt is generated after the initial
  155. packet is received within the set amount of time. Proper tuning,
  156. along with RxIntDelay, may improve traffic throughput in specific network
  157. conditions.
  158. Speed
  159. -----
  160. (This parameter is supported only on adapters with copper connections.)
  161. Valid Settings: 0, 10, 100, 1000
  162. Default Value: 0 (auto-negotiate at all supported speeds)
  163. Speed forces the line speed to the specified value in megabits per second
  164. (Mbps). If this parameter is not specified or is set to 0 and the link
  165. partner is set to auto-negotiate, the board will auto-detect the correct
  166. speed. Duplex should also be set when Speed is set to either 10 or 100.
  167. TxDescriptors
  168. -------------
  169. Valid Range: 80-256 for 82542 and 82543-based adapters
  170. 80-4096 for all other supported adapters
  171. Default Value: 256
  172. This value is the number of transmit descriptors allocated by the driver.
  173. Increasing this value allows the driver to queue more transmits. Each
  174. descriptor is 16 bytes.
  175. NOTE: Depending on the available system resources, the request for a
  176. higher number of transmit descriptors may be denied. In this case,
  177. use a lower number.
  178. TxIntDelay
  179. ----------
  180. Valid Range: 0-65535 (0=off)
  181. Default Value: 64
  182. This value delays the generation of transmit interrupts in units of
  183. 1.024 microseconds. Transmit interrupt reduction can improve CPU
  184. efficiency if properly tuned for specific network traffic. If the
  185. system is reporting dropped transmits, this value may be set too high
  186. causing the driver to run out of available transmit descriptors.
  187. TxAbsIntDelay
  188. -------------
  189. (This parameter is supported only on 82540, 82545 and later adapters.)
  190. Valid Range: 0-65535 (0=off)
  191. Default Value: 64
  192. This value, in units of 1.024 microseconds, limits the delay in which a
  193. transmit interrupt is generated. Useful only if TxIntDelay is non-zero,
  194. this value ensures that an interrupt is generated after the initial
  195. packet is sent on the wire within the set amount of time. Proper tuning,
  196. along with TxIntDelay, may improve traffic throughput in specific
  197. network conditions.
  198. XsumRX
  199. ------
  200. (This parameter is NOT supported on the 82542-based adapter.)
  201. Valid Range: 0-1
  202. Default Value: 1
  203. A value of '1' indicates that the driver should enable IP checksum
  204. offload for received packets (both UDP and TCP) to the adapter hardware.
  205. Speed and Duplex Configuration
  206. ==============================
  207. Three keywords are used to control the speed and duplex configuration.
  208. These keywords are Speed, Duplex, and AutoNeg.
  209. If the board uses a fiber interface, these keywords are ignored, and the
  210. fiber interface board only links at 1000 Mbps full-duplex.
  211. For copper-based boards, the keywords interact as follows:
  212. The default operation is auto-negotiate. The board advertises all
  213. supported speed and duplex combinations, and it links at the highest
  214. common speed and duplex mode IF the link partner is set to auto-negotiate.
  215. If Speed = 1000, limited auto-negotiation is enabled and only 1000 Mbps
  216. is advertised (The 1000BaseT spec requires auto-negotiation.)
  217. If Speed = 10 or 100, then both Speed and Duplex should be set. Auto-
  218. negotiation is disabled, and the AutoNeg parameter is ignored. Partner
  219. SHOULD also be forced.
  220. The AutoNeg parameter is used when more control is required over the
  221. auto-negotiation process. It should be used when you wish to control which
  222. speed and duplex combinations are advertised during the auto-negotiation
  223. process.
  224. The parameter may be specified as either a decimal or hexidecimal value as
  225. determined by the bitmap below.
  226. Bit position 7 6 5 4 3 2 1 0
  227. Decimal Value 128 64 32 16 8 4 2 1
  228. Hex value 80 40 20 10 8 4 2 1
  229. Speed (Mbps) N/A N/A 1000 N/A 100 100 10 10
  230. Duplex Full Full Half Full Half
  231. Some examples of using AutoNeg:
  232. modprobe e1000 AutoNeg=0x01 (Restricts autonegotiation to 10 Half)
  233. modprobe e1000 AutoNeg=1 (Same as above)
  234. modprobe e1000 AutoNeg=0x02 (Restricts autonegotiation to 10 Full)
  235. modprobe e1000 AutoNeg=0x03 (Restricts autonegotiation to 10 Half or 10 Full)
  236. modprobe e1000 AutoNeg=0x04 (Restricts autonegotiation to 100 Half)
  237. modprobe e1000 AutoNeg=0x05 (Restricts autonegotiation to 10 Half or 100
  238. Half)
  239. modprobe e1000 AutoNeg=0x020 (Restricts autonegotiation to 1000 Full)
  240. modprobe e1000 AutoNeg=32 (Same as above)
  241. Note that when this parameter is used, Speed and Duplex must not be specified.
  242. If the link partner is forced to a specific speed and duplex, then this
  243. parameter should not be used. Instead, use the Speed and Duplex parameters
  244. previously mentioned to force the adapter to the same speed and duplex.
  245. Additional Configurations
  246. =========================
  247. Configuring the Driver on Different Distributions
  248. -------------------------------------------------
  249. Configuring a network driver to load properly when the system is started
  250. is distribution dependent. Typically, the configuration process involves
  251. adding an alias line to /etc/modules.conf or /etc/modprobe.conf as well
  252. as editing other system startup scripts and/or configuration files. Many
  253. popular Linux distributions ship with tools to make these changes for you.
  254. To learn the proper way to configure a network device for your system,
  255. refer to your distribution documentation. If during this process you are
  256. asked for the driver or module name, the name for the Linux Base Driver
  257. for the Intel PRO/1000 Family of Adapters is e1000.
  258. As an example, if you install the e1000 driver for two PRO/1000 adapters
  259. (eth0 and eth1) and set the speed and duplex to 10full and 100half, add
  260. the following to modules.conf or modprobe.conf:
  261. alias eth0 e1000
  262. alias eth1 e1000
  263. options e1000 Speed=10,100 Duplex=2,1
  264. Viewing Link Messages
  265. ---------------------
  266. Link messages will not be displayed to the console if the distribution is
  267. restricting system messages. In order to see network driver link messages
  268. on your console, set dmesg to eight by entering the following:
  269. dmesg -n 8
  270. NOTE: This setting is not saved across reboots.
  271. Jumbo Frames
  272. ------------
  273. The driver supports Jumbo Frames for all adapters except 82542 and
  274. 82573-based adapters. Jumbo Frames support is enabled by changing the
  275. MTU to a value larger than the default of 1500. Use the ifconfig command
  276. to increase the MTU size. For example:
  277. ifconfig eth<x> mtu 9000 up
  278. This setting is not saved across reboots. It can be made permanent if
  279. you add:
  280. MTU=9000
  281. to the file /etc/sysconfig/network-scripts/ifcfg-eth<x>. This example
  282. applies to the Red Hat distributions; other distributions may store this
  283. setting in a different location.
  284. Notes:
  285. - To enable Jumbo Frames, increase the MTU size on the interface beyond
  286. 1500.
  287. - The maximum MTU setting for Jumbo Frames is 16110. This value coincides
  288. with the maximum Jumbo Frames size of 16128.
  289. - Using Jumbo Frames at 10 or 100 Mbps may result in poor performance or
  290. loss of link.
  291. - Some Intel gigabit adapters that support Jumbo Frames have a frame size
  292. limit of 9238 bytes, with a corresponding MTU size limit of 9216 bytes.
  293. The adapters with this limitation are based on the Intel 82571EB and
  294. 82572EI controllers, which correspond to these product names:
  295. Intel® PRO/1000 PT Dual Port Server Adapter
  296. Intel® PRO/1000 PF Dual Port Server Adapter
  297. Intel® PRO/1000 PT Server Adapter
  298. Intel® PRO/1000 PT Desktop Adapter
  299. Intel® PRO/1000 PF Server Adapter
  300. - The Intel PRO/1000 PM Network Connection does not support jumbo frames.
  301. Ethtool
  302. -------
  303. The driver utilizes the ethtool interface for driver configuration and
  304. diagnostics, as well as displaying statistical information. Ethtool
  305. version 1.6 or later is required for this functionality.
  306. The latest release of ethtool can be found from
  307. http://sourceforge.net/projects/gkernel.
  308. NOTE: Ethtool 1.6 only supports a limited set of ethtool options. Support
  309. for a more complete ethtool feature set can be enabled by upgrading
  310. ethtool to ethtool-1.8.1.
  311. Enabling Wake on LAN* (WoL)
  312. ---------------------------
  313. WoL is configured through the Ethtool* utility. Ethtool is included with
  314. all versions of Red Hat after Red Hat 7.2. For other Linux distributions,
  315. download and install Ethtool from the following website:
  316. http://sourceforge.net/projects/gkernel.
  317. For instructions on enabling WoL with Ethtool, refer to the website listed
  318. above.
  319. WoL will be enabled on the system during the next shut down or reboot.
  320. For this driver version, in order to enable WoL, the e1000 driver must be
  321. loaded when shutting down or rebooting the system.
  322. NAPI
  323. ----
  324. NAPI (Rx polling mode) is supported in the e1000 driver. NAPI is enabled
  325. or disabled based on the configuration of the kernel. To override
  326. the default, use the following compile-time flags.
  327. To enable NAPI, compile the driver module, passing in a configuration option:
  328. make CFLAGS_EXTRA=-DE1000_NAPI install
  329. To disable NAPI, compile the driver module, passing in a configuration option:
  330. make CFLAGS_EXTRA=-DE1000_NO_NAPI install
  331. See www.cyberus.ca/~hadi/usenix-paper.tgz for more information on NAPI.
  332. Known Issues
  333. ============
  334. Jumbo Frames System Requirement
  335. -------------------------------
  336. Memory allocation failures have been observed on Linux systems with 64 MB
  337. of RAM or less that are running Jumbo Frames. If you are using Jumbo
  338. Frames, your system may require more than the advertised minimum
  339. requirement of 64 MB of system memory.
  340. Performance Degradation with Jumbo Frames
  341. -----------------------------------------
  342. Degradation in throughput performance may be observed in some Jumbo frames
  343. environments. If this is observed, increasing the application's socket
  344. buffer size and/or increasing the /proc/sys/net/ipv4/tcp_*mem entry values
  345. may help. See the specific application manual and
  346. /usr/src/linux*/Documentation/
  347. networking/ip-sysctl.txt for more details.
  348. Jumbo frames on Foundry BigIron 8000 switch
  349. -------------------------------------------
  350. There is a known issue using Jumbo frames when connected to a Foundry
  351. BigIron 8000 switch. This is a 3rd party limitation. If you experience
  352. loss of packets, lower the MTU size.
  353. Multiple Interfaces on Same Ethernet Broadcast Network
  354. ------------------------------------------------------
  355. Due to the default ARP behavior on Linux, it is not possible to have
  356. one system on two IP networks in the same Ethernet broadcast domain
  357. (non-partitioned switch) behave as expected. All Ethernet interfaces
  358. will respond to IP traffic for any IP address assigned to the system.
  359. This results in unbalanced receive traffic.
  360. If you have multiple interfaces in a server, either turn on ARP
  361. filtering by entering:
  362. echo 1 > /proc/sys/net/ipv4/conf/all/arp_filter
  363. (this only works if your kernel's version is higher than 2.4.5),
  364. NOTE: This setting is not saved across reboots. The configuration
  365. change can be made permanent by adding the line:
  366. net.ipv4.conf.all.arp_filter = 1
  367. to the file /etc/sysctl.conf
  368. or,
  369. install the interfaces in separate broadcast domains (either in
  370. different switches or in a switch partitioned to VLANs).
  371. 82541/82547 can't link or are slow to link with some link partners
  372. -----------------------------------------------------------------
  373. There is a known compatibility issue with 82541/82547 and some
  374. low-end switches where the link will not be established, or will
  375. be slow to establish. In particular, these switches are known to
  376. be incompatible with 82541/82547:
  377. Planex FXG-08TE
  378. I-O Data ETG-SH8
  379. To workaround this issue, the driver can be compiled with an override
  380. of the PHY's master/slave setting. Forcing master or forcing slave
  381. mode will improve time-to-link.
  382. # make EXTRA_CFLAGS=-DE1000_MASTER_SLAVE=<n>
  383. Where <n> is:
  384. 0 = Hardware default
  385. 1 = Master mode
  386. 2 = Slave mode
  387. 3 = Auto master/slave
  388. Disable rx flow control with ethtool
  389. ------------------------------------
  390. In order to disable receive flow control using ethtool, you must turn
  391. off auto-negotiation on the same command line.
  392. For example:
  393. ethtool -A eth? autoneg off rx off
  394. Support
  395. =======
  396. For general information, go to the Intel support website at:
  397. http://support.intel.com
  398. or the Intel Wired Networking project hosted by Sourceforge at:
  399. http://sourceforge.net/projects/e1000
  400. If an issue is identified with the released source code on the supported
  401. kernel with a supported adapter, email the specific information related
  402. to the issue to e1000-devel@lists.sourceforge.net
  403. License
  404. =======
  405. This software program is released under the terms of a license agreement
  406. between you ('Licensee') and Intel. Do not use or load this software or any
  407. associated materials (collectively, the 'Software') until you have carefully
  408. read the full terms and conditions of the file COPYING located in this software
  409. package. By loading or using the Software, you agree to the terms of this
  410. Agreement. If you do not agree with the terms of this Agreement, do not
  411. install or use the Software.
  412. * Other names and brands may be claimed as the property of others.