net driver updates for .27
Subsystems (5)
PATCH 1/1 net driver updates for .27
Please pull from 'davem-next' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git davem-next
to receive the following updates:
Documentation/networking/ixgb.txt | 419 ++++++++++---- drivers/net/Kconfig | 59 +-- drivers/net/Makefile | 1 - drivers/net/chelsio/cxgb2.c | 2 - drivers/net/chelsio/sge.c | 70 +-- drivers/net/cxgb3/cxgb3_ctl_defs.h | 5 +- drivers/net/cxgb3/cxgb3_offload.c | 11 + drivers/net/cxgb3/regs.h | 10 +- drivers/net/cxgb3/t3_cpl.h | 40 ++ drivers/net/cxgb3/t3cdev.h | 1 + drivers/net/gianfar.c | 76 +--- drivers/net/gianfar.h | 11 - drivers/net/igb/e1000_82575.c | 208 ++++++- drivers/net/igb/e1000_82575.h | 22 + drivers/net/igb/e1000_defines.h | 10 + drivers/net/igb/e1000_hw.h | 8 + drivers/net/igb/e1000_mac.c | 3 +- drivers/net/igb/e1000_mac.h | 1 + drivers/net/igb/e1000_regs.h | 9 +- drivers/net/igb/igb.h | 47 ++- drivers/net/igb/igb_ethtool.c | 203 +++++-- drivers/net/igb/igb_main.c | 1032 ++++++++++++++++++++++++--------- drivers/net/ixgb/Makefile | 2 +- drivers/net/ixgb/ixgb.h | 21 +- drivers/net/ixgb/ixgb_ee.c | 28 +- drivers/net/ixgb/ixgb_ee.h | 12 +- drivers/net/ixgb/ixgb_ethtool.c | 120 ++-- drivers/net/ixgb/ixgb_hw.c | 40 +- drivers/net/ixgb/ixgb_hw.h | 2 +- drivers/net/ixgb/ixgb_ids.h | 10 +- drivers/net/ixgb/ixgb_main.c | 480 +++++++--------- drivers/net/ixgb/ixgb_osdep.h | 4 +- drivers/net/ixgb/ixgb_param.c | 44 +- drivers/net/phy/mdio-bitbang.c | 2 + drivers/net/s2io.c | 90 ++-- drivers/net/s2io.h | 1 + drivers/net/saa9730.c | 1139 ------------------------------------ drivers/net/saa9730.h | 384 ------------ drivers/net/ucc_geth.c | 29 +- drivers/net/via-rhine.c | 27 +- drivers/net/via-velocity.c | 158 ++--- drivers/net/via-velocity.h | 5 - drivers/net/virtio_net.c | 3 +- include/linux/netdevice.h | 13 + 44 files changed, 2071 insertions(+), 2791 deletions(-) delete mode 100644 drivers/net/saa9730.c delete mode 100644 drivers/net/saa9730.h
Alexander Duyck (9):
igb: update ethtool stats to support multiqueue
igb: add 82576 MAC support
igb: Add support for quad port WOL and feature flags
igb: add page recycling support
igb: add support for in kernel LRO
net: add netif_napi_del function to allow for removal of napistructs
igb: update suspend resume
igb: unused variable warning in igb remove
igb: Improve multiqueue AIM support
Auke Kok (2):
igb: reenable CRC stripping in hardware
igb: Increment driver version
Francois Romieu (8):
via-velocity: remove the bounce buffers
via-velocity: lean and clean velocity_init_rings
via-velocity: move residual free rx descriptors count register update
via-velocity: add velocity_set_rxbufsize helper
cxgb: delete non NAPI code from the driver.
via-rhine: delete non NAPI code from the driver.
gianfar: delete non NAPI code from the driver.
ucc_geth: delete non NAPI code from the driver.
Jeb Cramer (1):
igb: add DCA support
Jesse Brandeburg (25):
ixgb: maybe stop tx port missed a piece
ixgb: repeat 32 bit ioremap cleanup
ixgb: fix bug in descriptor ring due to prefetch corruption
ixgb: leave room for extra hardware memory usage
ixgb: check down state before enable irq
ixgb: don't allow too small MTU
ixgb: move time stamp set before setting dma pointer
ixgb: fix race on rx_buffer_len in mtu change
ixgb: fix unload race with timers
ixgb: remove lltx support and update tx routine
ixgb: update readme text
ixgb: add copybreak parameter
ixgb: clean up un-necessary declarations
ixgb: format all if( to be if (
ixgb: cleanup space after while
ixgb: whitespace fixups
ixgb: fix spelling errors
ixgb: trivial fix space after for
ixgb: cleanup checkpatch suggestions that are relevant
ixgb: rx cleanup performance improvements
ixgb: clean up assignments inside if statements
ixgb: audit use of dev_kfree_skb_any
ixgb: cleanup header
ixgb: make NAPI the only option and the default
ixgb: update copyright dates and versions
Karen Xie (1):
cxgb3 - Add iscsi support
Mark McLoughlin (1):
virtio_net: Set VIRTIO_NET_F_GUEST_CSUM feature
Peter P Waskiewicz Jr (1):
igb: Introduce multiple TX queues with infrastructure
Ralf Baechle (1):
SAA9730: Remove driver
Sreenivasa Honnur (3):
S2io: Fix IOMMU overflow checking.
S2io: Enable msi-x link interrupts.
S2io: Version update for IOMMU overflow checking and enable msi-x link interrupts patches.
Takashi Iwai (1):
Fix missing exports for net/phy/mdio-bitbang.c
Documentation/networking/ixgb.txt +320 -99
@@ -1,7 +1,7 @@ -Linux* Base Driver for the Intel(R) PRO/10GbE Family of Adapters -================================================================ +Linux Base Driver for 10 Gigabit Intel(R) Network Connection +============================================================= -November 17, 2004 +October 9, 2007 Contents
@@ -9,94 +9,151 @@ Contents - In This Release - Identifying Your Adapter +- Building and Installation - Command Line Parameters - Improving Performance +- Additional Configurations +- Known Issues/Troubleshooting - Support + In This Release =============== -This file describes the Linux* Base Driver for the Intel(R) PRO/10GbE Family -of Adapters, version 1.0.x. +This file describes the ixgb Linux Base Driver for the 10 Gigabit Intel(R) +Network Connection. This driver includes support for Itanium(R)2-based +systems. + +For questions related to hardware requirements, refer to the documentation +supplied with your 10 Gigabit adapter. All hardware requirements listed apply +to use with Linux. + +The following features are available in this kernel: + - Native VLANs + - Channel Bonding (teaming) + - SNMP + +Channel Bonding documentation can be found in the Linux kernel source: +/Documentation/networking/bonding.txt + +The driver information previously displayed in the /proc filesystem is not +supported in this release. Alternatively, you can use ethtool (version 1.6 +or later), lspci, and ifconfig to obtain the same information. + +Instructions on updating ethtool can be found in the section "Additional +Configurations" later in this document. -For questions related to hardware requirements, refer to the documentation -supplied with your Intel PRO/10GbE adapter. All hardware requirements listed -apply to use with Linux. Identifying Your Adapter ======================== -To verify your Intel adapter is supported, find the board ID number on the -adapter. Look for a label that has a barcode and a number in the format -A12345-001. +The following Intel network adapters are compatible with the drivers in this +release: + +Controller Adapter Name Physical Layer +---------- ------------ -------------- +82597EX Intel(R) PRO/10GbE LR/SR/CX4 10G Base-LR (1310 nm optical fiber) + Server Adapters 10G Base-SR (850 nm optical fiber) + 10G Base-CX4(twin-axial copper cabling) + +For more information on how to identify your adapter, go to the Adapter & +Driver ID Guide at: + + http://support.intel.com/support/network/sb/CS-012904.htm + + +Building and Installation +========================= + +select m for "Intel(R) PRO/10GbE support" located at: + Location: + -> Device Drivers + -> Network device support (NETDEVICES [=y]) + -> Ethernet (10000 Mbit) (NETDEV_10000 [=y]) +1. make modules && make modules_install + +2. Load the module: + + modprobe ixgb <parameter>=<value> + + The insmod command can be used if the full + path to the driver module is specified. For example: + + insmod /lib/modules/<KERNEL VERSION>/kernel/drivers/net/ixgb/ixgb.ko + + With 2.6 based kernels also make sure that older ixgb drivers are + removed from the kernel, before loading the new module: -Use the above information and the Adapter & Driver ID Guide at: + rmmod ixgb; modprobe ixgb - http://support.intel.com/support/network/adapter/pro100/21397.htm +3. Assign an IP address to the interface by entering the following, where + x is the interface number: -For the latest Intel network drivers for Linux, go to: + ifconfig ethx <IP_address> + +4. Verify that the interface works. Enter the following, where <IP_address> + is the IP address for another machine on the same subnet as the interface + that is being tested: + + ping <IP_address> - http://downloadfinder.intel.com/scripts-df/support_intel.asp Command Line Parameters ======================= -If the driver is built as a module, the following optional parameters are -used by entering them on the command line with the modprobe or insmod command -using this syntax: +If the driver is built as a module, the following optional parameters are +used by entering them on the command line with the modprobe command using +this syntax: modprobe ixgb [<option>=<VAL1>,<VAL2>,...] - insmod ixgb [<option>=<VAL1>,<VAL2>,...] +For example, with two 10GbE PCI adapters, entering: -For example, with two PRO/10GbE PCI adapters, entering: + modprobe ixgb TxDescriptors=80,128 - insmod ixgb TxDescriptors=80,128 - -loads the ixgb driver with 80 TX resources for the first adapter and 128 TX +loads the ixgb driver with 80 TX resources for the first adapter and 128 TX resources for the second adapter. The default value for each parameter is generally the recommended setting, -unless otherwise noted. Also, if the driver is statically built into the -kernel, the driver is loaded with the default values for all the parameters. -Ethtool can be used to change some of the parameters at runtime. +unless otherwise noted. FlowControl Valid Range: 0-3 (0=none, 1=Rx only, 2=Tx only, 3=Rx&Tx) Default: Read from the EEPROM - If EEPROM is not detected, default is 3 - This parameter controls the automatic generation(Tx) and response(Rx) to - Ethernet PAUSE frames. + If EEPROM is not detected, default is 1 + This parameter controls the automatic generation(Tx) and response(Rx) to + Ethernet PAUSE frames. There are hardware bugs associated with enabling + Tx flow control so beware. RxDescriptors Valid Range: 64-512 Default Value: 512 - This value is the number of receive descriptors allocated by the driver. - Increasing this value allows the driver to buffer more incoming packets. - Each descriptor is 16 bytes. A receive buffer is also allocated for - each descriptor and can be either 2048, 4056, 8192, or 16384 bytes, - depending on the MTU setting. When the MTU size is 1500 or less, the + This value is the number of receive descriptors allocated by the driver. + Increasing this value allows the driver to buffer more incoming packets. + Each descriptor is 16 bytes. A receive buffer is also allocated for + each descriptor and can be either 2048, 4056, 8192, or 16384 bytes, + depending on the MTU setting. When the MTU size is 1500 or less, the receive buffer size is 2048 bytes. When the MTU is greater than 1500 the - receive buffer size will be either 4056, 8192, or 16384 bytes. The + receive buffer size will be either 4056, 8192, or 16384 bytes. The maximum MTU size is 16114. RxIntDelay Valid Range: 0-65535 (0=off) -Default Value: 6 - This value delays the generation of receive interrupts in units of - 0.8192 microseconds. Receive interrupt reduction can improve CPU - efficiency if properly tuned for specific network traffic. Increasing - this value adds extra latency to frame reception and can end up - decreasing the throughput of TCP traffic. If the system is reporting - dropped receives, this value may be set too high, causing the driver to +Default Value: 72 + This value delays the generation of receive interrupts in units of + 0.8192 microseconds. Receive interrupt reduction can improve CPU + efficiency if properly tuned for specific network traffic. Increasing + this value adds extra latency to frame reception and can end up + decreasing the throughput of TCP traffic. If the system is reporting + dropped receives, this value may be set too high, causing the driver to run out of available receive descriptors. TxDescriptors Valid Range: 64-4096 Default Value: 256 This value is the number of transmit descriptors allocated by the driver. - Increasing this value allows the driver to queue more transmits. Each + Increasing this value allows the driver to queue more transmits. Each descriptor is 16 bytes. XsumRX
@@ -105,51 +162,49 @@ Default Value: 1 A value of '1' indicates that the driver should enable IP checksum offload for received packets (both UDP and TCP) to the adapter hardware. -XsumTX -Valid Range: 0-1 -Default Value: 1 - A value of '1' indicates that the driver should enable IP checksum - offload for transmitted packets (both UDP and TCP) to the adapter - hardware. Improving Performance ===================== -With the Intel PRO/10 GbE adapter, the default Linux configuration will very -likely limit the total available throughput artificially. There is a set of -things that when applied together increase the ability of Linux to transmit -and receive data. The following enhancements were originally acquired from -settings published at http://www.spec.org/web99 for various submitted results -using Linux. +With the 10 Gigabit server adapters, the default Linux configuration will +very likely limit the total available throughput artificially. There is a set +of configuration changes that, when applied together, will increase the ability +of Linux to transmit and receive data. The following enhancements were +originally acquired from settings published at http://www.spec.org/web99/ for +various submitted results using Linux. -NOTE: These changes are only suggestions, and serve as a starting point for -tuning your network performance. +NOTE: These changes are only suggestions, and serve as a starting point for + tuning your network performance. The changes are made in three major ways, listed in order of greatest effect: -- Use ifconfig to modify the mtu (maximum transmission unit) and the txqueuelen +- Use ifconfig to modify the mtu (maximum transmission unit) and the txqueuelen parameter. - Use sysctl to modify /proc parameters (essentially kernel tuning) -- Use setpci to modify the MMRBC field in PCI-X configuration space to increase +- Use setpci to modify the MMRBC field in PCI-X configuration space to increase transmit burst lengths on the bus. -NOTE: setpci modifies the adapter's configuration registers to allow it to read -up to 4k bytes at a time (for transmits). However, for some systems the -behavior after modifying this register may be undefined (possibly errors of some -kind). A power-cycle, hard reset or explicitly setting the e6 register back to -22 (setpci -d 8086:1048 e6.b=22) may be required to get back to a stable -configuration. +NOTE: setpci modifies the adapter's configuration registers to allow it to read +up to 4k bytes at a time (for transmits). However, for some systems the +behavior after modifying this register may be undefined (possibly errors of +some kind). A power-cycle, hard reset or explicitly setting the e6 register +back to 22 (setpci -d 8086:1a48 e6.b=22) may be required to get back to a +stable configuration. - COPY these lines and paste them into ixgb_perf.sh: #!/bin/bash -echo "configuring network performance , edit this file to change the interface" +echo "configuring network performance , edit this file to change the interface +or device ID of 10GbE card" # set mmrbc to 4k reads, modify only Intel 10GbE device IDs -setpci -d 8086:1048 e6.b=2e -# set the MTU (max transmission unit) - it requires your switch and clients to change too! +# replace 1a48 with appropriate 10GbE device's ID installed on the system, +# if needed. +setpci -d 8086:1a48 e6.b=2e +# set the MTU (max transmission unit) - it requires your switch and clients +# to change as well. # set the txqueuelen # your ixgb adapter should be loaded as eth1 for this to work, change if needed ifconfig eth1 mtu 9000 txqueuelen 1000 up -# call the sysctl utility to modify /proc/sys entries -sysctl -p ./sysctl_ixgb.conf +# call the sysctl utility to modify /proc/sys entries +sysctl -p ./sysctl_ixgb.conf - END ixgb_perf.sh - COPY these lines and paste them into sysctl_ixgb.conf:
@@ -159,54 +214,220 @@ sysctl -p ./sysctl_ixgb.conf # several network benchmark tests, your mileage may vary ### IPV4 specific settings -net.ipv4.tcp_timestamps = 0 # turns TCP timestamp support off, default 1, reduces CPU use -net.ipv4.tcp_sack = 0 # turn SACK support off, default on -# on systems with a VERY fast bus -> memory interface this is the big gainer -net.ipv4.tcp_rmem = 10000000 10000000 10000000 # sets min/default/max TCP read buffer, default 4096 87380 174760 -net.ipv4.tcp_wmem = 10000000 10000000 10000000 # sets min/pressure/max TCP write buffer, default 4096 16384 131072 -net.ipv4.tcp_mem = 10000000 10000000 10000000 # sets min/pressure/max TCP buffer space, default 31744 32256 32768 +# turn TCP timestamp support off, default 1, reduces CPU use +net.ipv4.tcp_timestamps = 0 +# turn SACK support off, default on +# on systems with a VERY fast bus -> memory interface this is the big gainer +net.ipv4.tcp_sack = 0 +# set min/default/max TCP read buffer, default 4096 87380 174760 +net.ipv4.tcp_rmem = 10000000 10000000 10000000 +# set min/pressure/max TCP write buffer, default 4096 16384 131072 +net.ipv4.tcp_wmem = 10000000 10000000 10000000 +# set min/pressure/max TCP buffer space, default 31744 32256 32768 +net.ipv4.tcp_mem = 10000000 10000000 10000000 ### CORE settings (mostly for socket and UDP effect) -net.core.rmem_max = 524287 # maximum receive socket buffer size, default 131071 -net.core.wmem_max = 524287 # maximum send socket buffer size, default 131071 -net.core.rmem_default = 524287 # default receive socket buffer size, default 65535 -net.core.wmem_default = 524287 # default send socket buffer size, default 65535 -net.core.optmem_max = 524287 # maximum amount of option memory buffers, default 10240 -net.core.netdev_max_backlog = 300000 # number of unprocessed input packets before kernel starts dropping them, default 300 +# set maximum receive socket buffer size, default 131071 +net.core.rmem_max = 524287 +# set maximum send socket buffer size, default 131071 +net.core.wmem_max = 524287 +# set default receive socket buffer size, default 65535 +net.core.rmem_default = 524287 +# set default send socket buffer size, default 65535 +net.core.wmem_default = 524287 +# set maximum amount of option memory buffers, default 10240 +net.core.optmem_max = 524287 +# set number of unprocessed input packets before kernel starts dropping them; default 300 +net.core.netdev_max_backlog = 300000 - END sysctl_ixgb.conf -Edit the ixgb_perf.sh script if necessary to change eth1 to whatever interface -your ixgb driver is using. +Edit the ixgb_perf.sh script if necessary to change eth1 to whatever interface +your ixgb driver is using and/or replace '1a48' with appropriate 10GbE device's +ID installed on the system. -NOTE: Unless these scripts are added to the boot process, these changes will -only last only until the next system reboot. +NOTE: Unless these scripts are added to the boot process, these changes will + only last only until the next system reboot. Resolving Slow UDP Traffic -------------------------- +If your server does not seem to be able to receive UDP traffic as fast as it +can receive TCP traffic, it could be because Linux, by default, does not set +the network stack buffers as large as they need to be to support high UDP +transfer rates. One way to alleviate this problem is to allow more memory to +be used by the IP stack to store incoming data. -If your server does not seem to be able to receive UDP traffic as fast as it -can receive TCP traffic, it could be because Linux, by default, does not set -the network stack buffers as large as they need to be to support high UDP -transfer rates. One way to alleviate this problem is to allow more memory to -be used by the IP stack to store incoming data. - -For instance, use the commands: +For instance, use the commands: sysctl -w net.core.rmem_max=262143 and sysctl -w net.core.rmem_default=262143 -to increase the read buffer memory max and default to 262143 (256k - 1) from -defaults of max=131071 (128k - 1) and default=65535 (64k - 1). These variables -will increase the amount of memory used by the network stack for receives, and +to increase the read buffer memory max and default to 262143 (256k - 1) from +defaults of max=131071 (128k - 1) and default=65535 (64k - 1). These variables +will increase the amount of memory used by the network stack for receives, and can be increased significantly more if necessary for your application. + +Additional Configurations +========================= + + Configuring the Driver on Different Distributions + ------------------------------------------------- + Configuring a network driver to load properly when the system is started is + distribution dependent. Typically, the configuration process involves adding + an alias line to /etc/modprobe.conf as well as editing other system startup + scripts and/or configuration files. Many popular Linux distributions ship + with tools to make these changes for you. To learn the proper way to + configure a network device for your system, refer to your distribution + documentation. If during this process you are asked for the driver or module + name, the name for the Linux Base Driver for the Intel 10GbE Family of + Adapters is ixgb. + + Viewing Link Messages + --------------------- + Link messages will not be displayed to the console if the distribution is + restricting system messages. In order to see network driver link messages on + your console, set dmesg to eight by entering the following: + + dmesg -n 8 + + NOTE: This setting is not saved across reboots. + + + Jumbo Frames + ------------ + The driver supports Jumbo Frames for all adapters. Jumbo Frames support is + enabled by changing the MTU to a value larger than the default of 1500. + The maximum value for the MTU is 16114. Use the ifconfig command to + increase the MTU size. For example: + + ifconfig ethx mtu 9000 up + + The maximum MTU setting for Jumbo Frames is 16114. This value coincides + with the maximum Jumbo Frames size of 16128. + + + Ethtool + ------- + The driver utilizes the ethtool interface for driver configuration and + diagnostics, as well as displaying statistical information. Ethtool + version 1.6 or later is required for this functionality. + + The latest release of ethtool can be found from + http://sourceforge.net/projects/gkernel + + NOTE: Ethtool 1.6 only supports a limited set of ethtool options. Support + for a more complete ethtool feature set can be enabled by upgrading + to the latest version. + + + NAPI + ---- + + NAPI (Rx polling mode) is supported in the ixgb driver. NAPI is enabled + or disabled based on the configuration of the kernel. see CONFIG_IXGB_NAPI + + See www.cyberus.ca/~hadi/usenix-paper.tgz for more information on NAPI. + + +Known Issues/Troubleshooting +============================ + + NOTE: After installing the driver, if your Intel Network Connection is not + working, verify in the "In This Release" section of the readme that you have + installed the correct driver. + + Intel(R) PRO/10GbE CX4 Server Adapter Cable Interoperability Issue with + Fujitsu XENPAK Module in SmartBits Chassis + --------------------------------------------------------------------- + Excessive CRC errors may be observed if the Intel(R) PRO/10GbE CX4 + Server adapter is connected to a Fujitsu XENPAK CX4 module in a SmartBits + chassis using 15 m/24AWG cable assemblies manufactured by Fujitsu or Leoni. + The CRC errors may be received either by the Intel(R) PRO/10GbE CX4 + Server adapter or the SmartBits. If this situation occurs using a different + cable assembly may resolve the issue. + + CX4 Server Adapter Cable Interoperability Issues with HP Procurve 3400cl + Switch Port + ------------------------------------------------------------------------ + Excessive CRC errors may be observed if the Intel(R) PRO/10GbE CX4 Server + adapter is connected to an HP Procurve 3400cl switch port using short cables + (1 m or shorter). If this situation occurs, using a longer cable may resolve + the issue. + + Excessive CRC errors may be observed using Fujitsu 24AWG cable assemblies that + Are 10 m or longer or where using a Leoni 15 m/24AWG cable assembly. The CRC + errors may be received either by the CX4 Server adapter or at the switch. If + this situation occurs, using a different cable assembly may resolve the issue. + + + Jumbo Frames System Requirement + ------------------------------- + Memory allocation failures have been observed on Linux systems with 64 MB + of RAM or less that are running Jumbo Frames. If you are using Jumbo + Frames, your system may require more than the advertised minimum + requirement of 64 MB of system memory. + + + Performance Degradation with Jumbo Frames + ----------------------------------------- + Degradation in throughput performance may be observed in some Jumbo frames + environments. If this is observed, increasing the application's socket buffer + size and/or increasing the /proc/sys/net/ipv4/tcp_*mem entry values may help. + See the specific application manual and /usr/src/linux*/Documentation/ + networking/ip-sysctl.txt for more details. + + + Allocating Rx Buffers when Using Jumbo Frames + --------------------------------------------- + Allocating Rx buffers when using Jumbo Frames on 2.6.x kernels may fail if + the available memory is heavily fragmented. This issue may be seen with PCI-X + adapters or with packet split disabled. This can be reduced or eliminated + by changing the amount of available memory for receive buffer allocation, by + increasing /proc/sys/vm/min_free_kbytes. + + + Multiple Interfaces on Same Ethernet Broadcast Network + ------------------------------------------------------ + Due to the default ARP behavior on Linux, it is not possible to have + one system on two IP networks in the same Ethernet broadcast domain + (non-partitioned switch) behave as expected. All Ethernet interfaces + will respond to IP traffic for any IP address assigned to the system. + This results in unbalanced receive traffic. + + If you have multiple interfaces in a server, do either of the following: + + - Turn on ARP filtering by entering: + echo 1 > /proc/sys/net/ipv4/conf/all/arp_filter + + - Install the interfaces in separate broadcast domains - either in + different switches or in a switch partitioned to VLANs. + + + UDP Stress Test Dropped Packet Issue + -------------------------------------- + Under small packets UDP stress test with 10GbE driver, the Linux system + may drop UDP packets due to the fullness of socket buffers. You may want + to change the driver's Flow Control variables to the minimum value for + controlling packet reception. + + + Tx Hangs Possible Under Stress + ------------------------------ + Under stress conditions, if TX hangs occur, turning off TSO + "ethtool -K eth0 tso off" may resolve the problem. + + Support ======= -For general information and support, go to the Intel support website at: +For general information, go to the Intel support website at: http://support.intel.com +or the Intel Wired Networking project hosted by Sourceforge at: + + http://sourceforge.net/projects/e1000 + If an issue is identified with the released source code on the supported -kernel with a supported adapter, email the specific information related to -the issue to [email protected]. +kernel with a supported adapter, email the specific information related +to the issue to [email protected]
drivers/net/Kconfig +9 -50
95 lines not on this page · raw message
drivers/net/Makefile +0 -1
@@ -166,7 +166,6 @@ obj-$(CONFIG_EEXPRESS_PRO) += eepro.o obj-$(CONFIG_8139CP) += 8139cp.o obj-$(CONFIG_8139TOO) += 8139too.o obj-$(CONFIG_ZNET) += znet.o -obj-$(CONFIG_LAN_SAA9730) += saa9730.o obj-$(CONFIG_CPMAC) += cpmac.o obj-$(CONFIG_DEPCA) += depca.o obj-$(CONFIG_EWRK3) += ewrk3.o
drivers/net/chelsio/cxgb2.c +0 -2
@@ -1153,9 +1153,7 @@ static int __devinit init_one(struct pci_dev *pdev,#ifdef CONFIG_NET_POLL_CONTROLLER netdev->poll_controller = t1_netpoll;#endif -#ifdef CONFIG_CHELSIO_T1_NAPI netif_napi_add (netdev, &adapter->napi, t1_poll,64 ); -#endif SET_ETHTOOL_OPS (netdev, &t1_ethtool_ops); }
drivers/net/chelsio/sge.c +5 -65
101 lines not on this page · raw message
drivers/net/cxgb3/cxgb3_ctl_defs.h +1 -4
@@ -110,10 +110,7 @@ struct ulp_iscsi_info {unsigned int llimit;unsigned int ulimit;unsigned int tagmask; -unsigned int pgsz3; -unsigned int pgsz2; -unsigned int pgsz1; -unsigned int pgsz0; +u8 pgsz_factor[4 ];unsigned int max_rxsz;unsigned int max_txsz;struct pci_dev *pdev;
drivers/net/cxgb3/cxgb3_offload.c +11 -0
@@ -207,6 +207,17 @@ static int cxgb_ulp_iscsi_ctl(struct adapter *adapter, unsigned int req,break ;case ULP_ISCSI_SET_PARAMS :t3_write_reg (adapter,A_ULPRX_ISCSI_TAGMASK , uiip->tagmask); +/* set MaxRxData and MaxCoalesceSize to 16224 */ +t3_write_reg (adapter,A_TP_PARA_REG2 ,0x3f603f60 ); +/* program the ddp page sizes */ + { +int i; +unsigned int val =0 ; +for (i =0 ; i <4 ; i++) + val |= (uiip->pgsz_factor[i] &0xF ) << (8 * i); +if (val) +t3_write_reg (adapter,A_ULPRX_ISCSI_PSZ , val); + }break ;default : ret = -EOPNOTSUPP ;
drivers/net/cxgb3/regs.h +6 -4
@@ -1517,16 +1517,18 @@#define A_ULPRX_ISCSI_TAGMASK 0x514 -#define S_HPZ0 0 -#define M_HPZ0 0xf -#define V_HPZ0 (x) ((x) << S_HPZ0) -#define G_HPZ0 (x) (((x) >> S_HPZ0) & M_HPZ0) +#define A_ULPRX_ISCSI_PSZ 0x518#define A_ULPRX_TDDP_LLIMIT 0x51c#define A_ULPRX_TDDP_ULIMIT 0x520#define A_ULPRX_TDDP_PSZ 0x528 +#define S_HPZ0 0 +#define M_HPZ0 0xf +#define V_HPZ0 (x) ((x) << S_HPZ0) +#define G_HPZ0 (x) (((x) >> S_HPZ0) & M_HPZ0) +#define A_ULPRX_STAG_LLIMIT 0x52c#define A_ULPRX_STAG_ULIMIT 0x530
drivers/net/cxgb3/t3_cpl.h +40 -0
@@ -191,6 +191,9 @@ union opcode_tid {#define G_OPCODE (x) (((x) >> S_OPCODE) & 0xFF)#define G_TID (x) ((x) & 0xFFFFFF) +#define S_QNUM 0 +#define G_QNUM (x) (((x) >> S_QNUM) & 0xFFFF) +#define S_HASHTYPE 22#define M_HASHTYPE 0x3#define G_HASHTYPE (x) (((x) >> S_HASHTYPE) & M_HASHTYPE)
@@ -779,6 +782,12 @@ struct tx_data_wr {__be32 param; }; +/* tx_data_wr.flags fields */ +#define S_TX_ACK_PAGES 21 +#define M_TX_ACK_PAGES 0x7 +#define V_TX_ACK_PAGES (x) ((x) << S_TX_ACK_PAGES) +#define G_TX_ACK_PAGES (x) (((x) >> S_TX_ACK_PAGES) & M_TX_ACK_PAGES) +/* tx_data_wr.param fields */ #define S_TX_PORT 0#define M_TX_PORT 0x7
@@ -1452,4 +1461,35 @@ struct cpl_rdma_terminate {#define M_TERM_TID 0xFFFFF#define V_TERM_TID (x) ((x) << S_TERM_TID)#define G_TERM_TID (x) (((x) >> S_TERM_TID) & M_TERM_TID) + +/* ULP_TX opcodes */ +enum {ULP_MEM_READ =2 ,ULP_MEM_WRITE =3 ,ULP_TXPKT =4 }; + +#define S_ULPTX_CMD 28 +#define M_ULPTX_CMD 0xF +#define V_ULPTX_CMD (x) ((x) << S_ULPTX_CMD) + +#define S_ULPTX_NFLITS 0 +#define M_ULPTX_NFLITS 0xFF +#define V_ULPTX_NFLITS (x) ((x) << S_ULPTX_NFLITS) + +struct ulp_mem_io { +WR_HDR ; +__be32 cmd_lock_addr; +__be32 len; +}; + +/* ulp_mem_io.cmd_lock_addr fields */ +#define S_ULP_MEMIO_ADDR 0 +#define M_ULP_MEMIO_ADDR 0x7FFFFFF +#define V_ULP_MEMIO_ADDR (x) ((x) << S_ULP_MEMIO_ADDR) +#define S_ULP_MEMIO_LOCK 27 +#define V_ULP_MEMIO_LOCK (x) ((x) << S_ULP_MEMIO_LOCK) +#define F_ULP_MEMIO_LOCK V_ULP_MEMIO_LOCK(1U) + +/* ulp_mem_io.len fields */ +#define S_ULP_MEMIO_DATA_LEN 28 +#define M_ULP_MEMIO_DATA_LEN 0xF +#define V_ULP_MEMIO_DATA_LEN (x) ((x) << S_ULP_MEMIO_DATA_LEN) +#endif /* T3_CPL_H */
drivers/net/cxgb3/t3cdev.h +1 -0
@@ -64,6 +64,7 @@ struct t3cdev {void *l3opt;/* optional layer 3 data */ void *l4opt;/* optional layer 4 data */ void *ulp;/* ulp stuff */ + void *ulp_iscsi; /* ulp iscsi */ };#endif /* _T3CDEV_H_ */
drivers/net/gianfar.c +6 -70
182 lines not on this page · raw message
drivers/net/gianfar.h +0 -11
@@ -77,13 +77,8 @@ extern const char gfar_driver_name[];extern const char gfar_driver_version[];/* These need to be powers of 2 for this driver */ -#ifdef CONFIG_GFAR_NAPI #define DEFAULT_TX_RING_SIZE 256#define DEFAULT_RX_RING_SIZE 256 -#else -#define DEFAULT_TX_RING_SIZE 64 -#define DEFAULT_RX_RING_SIZE 64 -#endif #define GFAR_RX_MAX_RING_SIZE 256#define GFAR_TX_MAX_RING_SIZE 256
@@ -128,14 +123,8 @@ extern const char gfar_driver_version[];#define DEFAULT_RXTIME 21 -/* Non NAPI Case */ -#ifndef CONFIG_GFAR_NAPI -#define DEFAULT_RX_COALESCE 1 -#define DEFAULT_RXCOUNT 16 -#else #define DEFAULT_RX_COALESCE 0#define DEFAULT_RXCOUNT 0 -#endif /* CONFIG_GFAR_NAPI */ #define MIIMCFG_INIT_VALUE 0x00000007#define MIIMCFG_RESET 0x80000000
drivers/net/igb/e1000_82575.c +195 -13
271 lines not on this page · raw message
drivers/net/igb/e1000_82575.h +22 -0
@@ -28,9 +28,13 @@#ifndef _E1000_82575_H_#define _E1000_82575_H_ +u32 igb_translate_register_82576 (u32 reg); +void igb_update_mc_addr_list_82575 (struct e1000_hw *,u8 *,u32 ,u32 ,u32 ); +extern void igb_shutdown_fiber_serdes_link_82575 (struct e1000_hw *hw);extern void igb_rx_fifo_flush_82575 (struct e1000_hw *hw);#define E1000_RAR_ENTRIES_82575 16 +#define E1000_RAR_ENTRIES_82576 24/* SRRCTL bit definitions */ #define E1000_SRRCTL_BSIZEPKT_SHIFT 10/* Shift _right_ */
@@ -95,6 +99,8 @@ union e1000_adv_rx_desc {/* RSS Hash results */ /* RSS Packet Types as indicated in the receive descriptor */ +#define E1000_RXDADV_PKTTYPE_IPV4 0x00000010/* IPV4 hdr present */ +#define E1000_RXDADV_PKTTYPE_TCP 0x00000100/* TCP hdr present */ /* Transmit Descriptor - Advanced */ union e1000_adv_tx_desc {
@@ -144,9 +150,25 @@ struct e1000_adv_tx_context_desc {#define E1000_RXDCTL_QUEUE_ENABLE 0x02000000/* Enable specific Rx Queue */ /* Direct Cache Access (DCA) definitions */ +#define E1000_DCA_CTRL_DCA_ENABLE 0x00000000/* DCA Enable */ +#define E1000_DCA_CTRL_DCA_DISABLE 0x00000001/* DCA Disable */ +#define E1000_DCA_CTRL_DCA_MODE_CB1 0x00/* DCA Mode CB1 */ +#define E1000_DCA_CTRL_DCA_MODE_CB2 0x02/* DCA Mode CB2 */ +#define E1000_DCA_RXCTRL_CPUID_MASK 0x0000001F/* Rx CPUID Mask */ +#define E1000_DCA_RXCTRL_DESC_DCA_EN (1 << 5)/* DCA Rx Desc enable */ +#define E1000_DCA_RXCTRL_HEAD_DCA_EN (1 << 6)/* DCA Rx Desc header enable */ +#define E1000_DCA_RXCTRL_DATA_DCA_EN (1 << 7)/* DCA Rx Desc payload enable */ +#define E1000_DCA_TXCTRL_CPUID_MASK 0x0000001F/* Tx CPUID Mask */ +#define E1000_DCA_TXCTRL_DESC_DCA_EN (1 << 5)/* DCA Tx Desc enable */ #define E1000_DCA_TXCTRL_TX_WB_RO_EN (1 << 11)/* Tx Desc writeback RO bit */ +/* Additional DCA related definitions, note change in position of CPUID */ +#define E1000_DCA_TXCTRL_CPUID_MASK_82576 0xFF000000/* Tx CPUID Mask */ +#define E1000_DCA_RXCTRL_CPUID_MASK_82576 0xFF000000/* Rx CPUID Mask */ +#define E1000_DCA_TXCTRL_CPUID_SHIFT 24/* Tx CPUID now in the last byte */ +#define E1000_DCA_RXCTRL_CPUID_SHIFT 24/* Rx CPUID now in the last byte */ +#endif
drivers/net/igb/e1000_defines.h +10 -0
@@ -90,6 +90,11 @@#define E1000_I2CCMD_ERROR 0x80000000#define E1000_MAX_SGMII_PHY_REG_ADDR 255#define E1000_I2CCMD_PHY_TIMEOUT 200 +#define E1000_IVAR_VALID 0x80 +#define E1000_GPIE_NSICR 0x00000001 +#define E1000_GPIE_MSIX_MODE 0x00000010 +#define E1000_GPIE_EIAME 0x40000000 +#define E1000_GPIE_PBA 0x80000000/* Receive Descriptor bit definitions */ #define E1000_RXD_STAT_DD 0x01/* Descriptor Done */
@@ -213,6 +218,7 @@/* Device Control */ #define E1000_CTRL_FD 0x00000001/* Full duplex.0=half; 1=full */ #define E1000_CTRL_GIO_MASTER_DISABLE 0x00000004/*Blocks new Master requests */ +#define E1000_CTRL_LRST 0x00000008/* Link reset. 0=normal,1=reset */ #define E1000_CTRL_ASDE 0x00000020/* Auto-speed detect enable */ #define E1000_CTRL_SLU 0x00000040/* Set link up (Force Link) */ #define E1000_CTRL_ILOS 0x00000080/* Invert Loss-Of Signal */
@@ -244,6 +250,7 @@*/ #define E1000_CONNSW_ENRGSRC 0x4 +#define E1000_PCS_CFG_PCS_EN 8#define E1000_PCS_LCTL_FLV_LINK_UP 1#define E1000_PCS_LCTL_FSV_100 2#define E1000_PCS_LCTL_FSV_1000 4
@@ -253,6 +260,7 @@#define E1000_PCS_LCTL_AN_ENABLE 0x10000#define E1000_PCS_LCTL_AN_RESTART 0x20000#define E1000_PCS_LCTL_AN_TIMEOUT 0x40000 +#define E1000_ENABLE_SERDES_LOOPBACK 0x0410#define E1000_PCS_LSTS_LINK_OK 1#define E1000_PCS_LSTS_SPEED_100 2
@@ -360,6 +368,7 @@#define E1000_PBA_16K 0x0010/* 16KB, default TX allocation */ #define E1000_PBA_24K 0x0018#define E1000_PBA_34K 0x0022 +#define E1000_PBA_64K 0x0040/* 64KB */ #define IFS_MAX 80#define IFS_MIN 40
@@ -528,6 +537,7 @@/* PHY Control Register */ #define MII_CR_FULL_DUPLEX 0x0100/* FDX =1, half duplex =0 */ #define MII_CR_RESTART_AUTO_NEG 0x0200/* Restart auto negotiation */ +#define MII_CR_POWER_DOWN 0x0800/* Power down */ #define MII_CR_AUTO_NEG_EN 0x1000/* Auto Neg Enable */ #define MII_CR_LOOPBACK 0x4000/* 0 = normal, 1 = loopback */ #define MII_CR_RESET 0x8000/* 0 = normal, 1 = PHY reset */
drivers/net/igb/e1000_hw.h +8 -0
@@ -38,6 +38,10 @@struct e1000_hw ; +#define E1000_DEV_ID_82576 0x10C9 +#define E1000_DEV_ID_82576_FIBER 0x10E6 +#define E1000_DEV_ID_82576_SERDES 0x10E7 +#define E1000_DEV_ID_82576_QUAD_COPPER 0x10E8#define E1000_DEV_ID_82575EB_COPPER 0x10A7#define E1000_DEV_ID_82575EB_FIBER_SERDES 0x10A9#define E1000_DEV_ID_82575GB_QUAD_COPPER 0x10D6
@@ -50,6 +54,7 @@ struct e1000_hw;enum e1000_mac_type { e1000_undefined =0 , e1000_82575, + e1000_82576, e1000_num_macs/* List is 1-based, so subtract 1 for true count. */ };
@@ -410,14 +415,17 @@ struct e1000_mac_operations {s32 (*check_for_link)(struct e1000_hw *);s32 (*reset_hw)(struct e1000_hw *);s32 (*init_hw)(struct e1000_hw *); +bool (*check_mng_mode)(struct e1000_hw *);s32 (*setup_physical_interface)(struct e1000_hw *);void (*rar_set)(struct e1000_hw *,u8 *,u32 );s32 (*read_mac_addr)(struct e1000_hw *);s32 (*get_speed_and_duplex)(struct e1000_hw *,u16 *,u16 *); +void (*mta_set)(struct e1000_hw *,u32 ); };struct e1000_phy_operations {s32 (*acquire_phy)(struct e1000_hw *); +s32 (*check_reset_block)(struct e1000_hw *);s32 (*force_speed_duplex)(struct e1000_hw *);s32 (*get_cfg_done)(struct e1000_hw *hw);s32 (*get_cable_length)(struct e1000_hw *);
drivers/net/igb/e1000_mac.c +1 -2
@@ -36,7 +36,6 @@static s32 igb_set_default_fc (struct e1000_hw *hw);static s32 igb_set_fc_watermarks (struct e1000_hw *hw); -static u32 igb_hash_mc_addr (struct e1000_hw *hw,u8 *mc_addr);/** * igb_remove_device - Free device specific structure
@@ -360,7 +359,7 @@ void igb_update_mc_addr_list(struct e1000_hw *hw,* the multicast filter table array address and new table value. See * igb_mta_set() **/ -static u32 igb_hash_mc_addr (struct e1000_hw *hw,u8 *mc_addr) +u32 igb_hash_mc_addr (struct e1000_hw *hw,u8 *mc_addr) {u32 hash_value, hash_mask;u8 bit_shift =0 ;
drivers/net/igb/e1000_mac.h +1 -0
@@ -94,5 +94,6 @@ enum e1000_mng_mode {#define E1000_HICR_C 0x02extern void e1000_init_function_pointers_82575 (struct e1000_hw *hw); +extern u32 igb_hash_mc_addr (struct e1000_hw *hw,u8 *mc_addr);#endif
drivers/net/igb/e1000_regs.h +8 -1
@@ -56,6 +56,9 @@#define E1000_EIMC 0x01528/* Ext. Interrupt Mask Clear - WO */ #define E1000_EIAC 0x0152C/* Ext. Interrupt Auto Clear - RW */ #define E1000_EIAM 0x01530/* Ext. Interrupt Ack Auto Clear Mask - RW */ +#define E1000_GPIE 0x01514/* General Purpose Interrupt Enable - RW */ +#define E1000_IVAR0 0x01700/* Interrupt Vector Allocation (array) - RW */ +#define E1000_IVAR_MISC 0x01740/* IVAR for "other" causes - RW */ #define E1000_TCTL 0x00400/* TX Control - RW */ #define E1000_TCTL_EXT 0x00404/* Extended TX Control - RW */ #define E1000_TIPG 0x00410/* TX Inter-packet gap -RW */
@@ -217,6 +220,7 @@#define E1000_RFCTL 0x05008/* Receive Filter Control*/ #define E1000_MTA 0x05200/* Multicast Table Array - RW Array */ #define E1000_RA 0x05400/* Receive Address - RW Array */ +#define E1000_RA2 0x054E0/* 2nd half of receive address array - RW Array */ #define E1000_VFTA 0x05600/* VLAN Filter Table Array - RW Array */ #define E1000_VMD_CTL 0x0581C/* VMDq Control - RW */ #define E1000_WUC 0x05800/* Wakeup Control - RW */
@@ -235,6 +239,8 @@#define E1000_FACTPS 0x05B30/* Function Active and Power State to MNG */ #define E1000_SWSM 0x05B50/* SW Semaphore */ #define E1000_FWSM 0x05B54/* FW Semaphore */ +#define E1000_DCA_ID 0x05B70/* DCA Requester ID Information - RO */ +#define E1000_DCA_CTRL 0x05B74/* DCA Control - RW */ #define E1000_HICR 0x08F00/* Host Inteface Control */ /* RSS registers */
@@ -256,7 +262,8 @@#define E1000_RETA (_i) (0x05C00 + ((_i) * 4))#define E1000_RSSRK (_i) (0x05C80 + ((_i) * 4))/* RSS Random Key - RW Array */ -#define E1000_REGISTER (a, reg) reg +#define E1000_REGISTER (a, reg) (((a)->mac.type < e1000_82576) \ + ? reg : e1000_translate_register_82576(reg))#define wr32 (reg, value) (writel(value, hw->hw_addr + reg))#define rd32 (reg) (readl(hw->hw_addr + reg))
drivers/net/igb/igb.h +37 -10
101 lines not on this page · raw message
drivers/net/igb/igb_ethtool.c +157 -46
308 lines not on this page · raw message
drivers/net/igb/igb_main.c +756 -276
1,080 lines not on this page · raw message
drivers/net/ixgb/ixgb_ethtool.c +59 -61
120 lines not on this page · raw message
drivers/net/ixgb/ixgb_main.c +203 -277
480 lines not on this page · raw message
drivers/net/ixgb/ixgb_param.c +22 -22
44 lines not on this page · raw message
drivers/net/s2io.c +53 -37
90 lines not on this page · raw message
drivers/net/saa9730.c deleted +0 -1139
1,139 lines not on this page · raw message
drivers/net/saa9730.h deleted +0 -384
384 lines not on this page · raw message
drivers/net/via-velocity.c +61 -97
158 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.
David Miller
maintainerFrom: Jeff Garzik <[email protected]>
Date: Fri, 11 Jul 2008 01:27:59 -0400
Quoted 4 lines
Please pull from 'davem-next' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git davem-next
to receive the following updates:
Pulled and pushed back out to net-next-2.6, thanks!