aboutsummaryrefslogtreecommitdiff
path: root/drivers/net
AgeCommit message (Collapse)AuthorFilesLines
2011-03-07ixgbe: fix setting and reporting of advertised speedsEmil Tantilov1-21/+20
Add the ability to set 100/F on x540. Fix reporting of advertised modes by adding check for phy.autoneg_advertised Signed-off-by: Emil Tantilov <[email protected]> Tested-by: Stephen Ko <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
2011-03-07ixgbe: fix spelling errorsEmil Tantilov1-2/+2
Signed-off-by: Emil Tantilov <[email protected]> Tested-by: Stephen Ko <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
2011-03-07ixgbe: improve logic in ixgbe_init_mbx_params_pfEmil Tantilov1-15/+12
Use if/then instead of an all-inclusive case statement. Signed-off-by: Emil Tantilov <[email protected]> Tested-by: Stephen Ko <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
2011-03-07ixgbe: add function descriptionEmil Tantilov1-3/+6
Add description for ixgbe_init_eeprom_params_X540 and whitespace fix. Signed-off-by: Emil Tantilov <[email protected]> Tested-by: Stephen Ko <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
2011-03-07ixgbe: Enable flow control pause parameter auto-negotiation supportEmil Tantilov6-199/+281
This patch enables flow control pause parameters auto-negotiation support to 82599 based 10G Base-T, backplane devices and multi-speed fiber optics modules at 1G speed Signed-off-by: Emil Tantilov <[email protected]> Tested-by: Stephen Ko <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
2011-03-07ixgbe: Add x540 statistic counter definitionsEmil Tantilov2-0/+14
Add defines to accumulate and display x540 PHY statistic counters on transmit/receive. Signed-off-by: Emil Tantilov <[email protected]> Tested-by: Stephen Ko <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
2011-03-07ixgbe: clear correct counters for flow control on 82599Emil Tantilov2-7/+29
The 82599 was not correctly having some of it's counters cleared for flow control. This change corrects that. Signed-off-by: Emil Tantilov <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
2011-03-07ixgbe: cleanup PHY initEmil Tantilov3-59/+114
This change cleans up several situations in which we were either stepping over possible errors, or calling initialization routines multiple times. Also includes whitespace fixes where applicable. Signed-off-by: Emil Tantilov <[email protected]> Tested-by: Stephen Ko <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
2011-03-07ixgbe: add support to FCoE DDP in target modeYi Zou4-12/+81
Add support to the ndo_fcoe_ddp_target() to allow the Intel 82599 device to also provide DDP offload capability when the upper FCoE protocol stack is operating as a target. Signed-off-by: Yi Zou <[email protected]> Signed-off-by: Kiran Patil <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
2011-03-07ixgbe: fix missing function pointer conversionDon Skidmore1-1/+1
In the previous commit: commit 5e655105e3e19d746f9e95c514b014c11c3d1b6a Author: Don Skidmore <[email protected]> Date: Fri Feb 25 01:58:04 2011 +0000 ixgbe: add function pointer for semaphore function there was one release of the semaphore function call which did not get converted to a function pointer. Signed-off-by: Jeff Kirsher <[email protected]>
2011-03-07igb: Add stats output for OS2BMC feature on i350 devicesCarolyn Wyborny5-1/+29
This patch adds statistics output for OS2BMC feature which is configured by eeprom on capable devices. Signed-off-by: Carolyn Wyborny <[email protected]> Tested-by: Aaron Brown <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
2011-03-07e1000e: fix build issue due to undefined reference to crc32_leEmil Tantilov1-0/+1
kernel build fails with: drivers/built-in.o: In function `e1000_lv_jumbo_workaround_ich8lan': (.text+0x3e7a8): undefined reference to `crc32_le' when CONFIG_CRC32 is not set or does not match the CONFIG_E1000E selection. Signed-off-by: Emil Tantilov <[email protected]> Reviewed-by: Bruce Allan <[email protected]> Tested-by: Jeff Pieper <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
2011-03-07bonding 802.3ad: Rename rx_machine_lock to state_machine_lockNils Carlson2-13/+14
Rename the rx_machine_lock to state_machine_lock as this makes more sense in light of it now protecting all the state machines against concurrency. Signed-off-by: Nils Carlson <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-07bonding 802.3ad: Fix the state machine locking v2Nils Carlson1-5/+11
Changes since v1: * Clarify an unclear comment * Move a (possible) name change to a separate patch The ad_rx_machine, ad_periodic_machine and ad_port_selection_logic functions all inspect and alter common fields within the port structure. Previous to this patch, only the ad_rx_machines were mutexed, and the periodic and port_selection could run unmutexed against an ad_rx_machine trigged by an arriving LACPDU. This patch remedies the situation by protecting all the state machines from concurrency. This is accomplished by locking around all the state machines for a given port, which are executed at regular intervals; and the ad_rx_machine when handling an incoming LACPDU. Signed-off-by: Nils Carlson <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-07drivers/net/macvtap: fix error checkNicolas Kaiser1-1/+2
'len' is unsigned of type size_t and can't be negative. Signed-off-by: Nicolas Kaiser <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-07s2io: fix uninitialized compile warningShan Wei1-1/+1
drivers/net/s2io.c:7559: warning: ‘tcp_len’ may be used uninitialized in this function Signed-off-by: Shan Wei <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-07bonding: COW before overwriting the destination MAC addressChangli Gao1-2/+6
When there is a ptype handler holding a clone of this skb, whose destination MAC addresse is overwritten, the owner of this handler may get a corrupted packet. Signed-off-by: Changli Gao <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-07bonding: remove the unused dummy functions when net poll controller isn't ↵Changli Gao1-8/+0
enabled These two functions are only used when net poll controller is enabled. Signed-off-by: Changli Gao <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-07Merge branch 'davem-next.r8169' of ↵David S. Miller2-103/+178
git://git.kernel.org/pub/scm/linux/kernel/git/romieu/netdev-2.6
2011-03-07be2net: Add multicast filter capability for LancerPadmanabh Ratnakar2-2/+5
Lancer requires multicast capability flag set during IFACE_CREATE for adding multicast filters. Signed-off-by: Padmanabh Ratnakar <[email protected]> Signed-off-by: Sathya Perla <[email protected]> Signed-off-by: Subramanian Seetharaman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-07be2net: Disarm CQ and EQ to disable interrupt in LancerPadmanabh Ratnakar1-5/+12
For Lancer disable interrupts in close by disarming CQs and EQs. Change the order of calls in be_close to achieve the correct result. Signed-off-by: Padmanabh Ratnakar <[email protected]> Signed-off-by: Sathya Perla <[email protected]> Signed-off-by: Subramanian Seetharaman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-07be2net: Remove TX Queue stop in closePadmanabh Ratnakar1-1/+0
Remove TX Queue stop in close Signed-off-by: Padmanabh Ratnakar <[email protected]> Signed-off-by: Sathya Perla <[email protected]> Signed-off-by: Subramanian Seetharaman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-07be2net: Change f/w command versions for LancerPadmanabh Ratnakar2-2/+8
Change f/w command versions for Lancer Signed-off-by: Padmanabh Ratnakar <[email protected]> Signed-off-by: Sathya Perla <[email protected]> Signed-off-by: Subramanian Seetharaman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-07be2net: Add error recovery during load for LancerPadmanabh Ratnakar2-0/+68
Add error recovery during load for Lancer Signed-off-by: Padmanabh Ratnakar <[email protected]> Signed-off-by: Sathya Perla <[email protected]> Signed-off-by: Subramanian Seetharaman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-07be2net: Checksum field valid only for TCP/UDPPadmanabh Ratnakar1-3/+6
L4 checksum field is valid only for TCP/UDP packets in Lancer Signed-off-by: Padmanabh Ratnakar <[email protected]> Signed-off-by: Sathya Perla <[email protected]> Signed-off-by: Subramanian Seetharaman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-07be2net: Remove ERR compl workaround for LancerPadmanabh Ratnakar2-26/+9
Workaround added for Lancer in handling RX ERR completion received when no RX buffers are posted is not needed. Signed-off-by: Padmanabh Ratnakar <[email protected]> Signed-off-by: Sathya Perla <[email protected]> Signed-off-by: Subramanian Seetharaman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-07net/smsc911x.c: Set the VLAN1 register to fix VLAN MTU problemGöran Weinholt1-0/+5
The smsc911x driver would drop frames longer than 1518 bytes, which is a problem for networks with VLAN tagging. The VLAN1 tag register is used to increase the legal frame size to 1522 when a VLAN tag is identified. Signed-off-by: Göran Weinholt <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-07b43: trivial: update B43_PHY_N description (PHY support)Rafał Miłecki1-1/+1
Signed-off-by: Rafał Miłecki <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2011-03-07p54spi: Update kconfig help textMichael Buesch1-3/+2
This updates the p54spi Kconfig help text. The driver works well on n8x0, so remove the words "experimental" and "untested". Signed-off-by: Michael Buesch <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2011-03-07iwlwifi: fix iwl-rx.c compilationStanislaw Gruszka1-0/+1
My commit 466a19a003f3b45a755bc85f967c21da947f9a00 "iwlwifi: move rx handlers code to iwl-rx.c" breaks compilation on 32 bits. Fix that. Reported-by: Guy, Wey-Yi <[email protected]> Reported-by: Daniel Halperin <[email protected]> Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2011-03-07wireless:ath: use resource_size() help functionShan Wei2-2/+2
Signed-off-by: Shan Wei <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2011-03-07ath5k: Put hardware in PROMISC mode if there is more than 1 stations.Ben Greear3-31/+53
It seems ath5k has issues receiving broadcast packets (ARPs) when using multiple STA interfaces associated with multiple APs. This patch ensures the NIC is always in PROMISC mode if there are more than 1 stations associated. Signed-off-by: Ben Greear <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2011-03-06bnx2x: fix MaxBW configurationDmitry Kravkov1-2/+2
Increase resolution of MaxBW algorithm to suit Min Bandwidth configuration. Signed-off-by: Dmitry Kravkov <[email protected]> Signed-off-by: Eilon Greenstein <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-06bnx2x: (NPAR) prevent HW access in D3 stateDmitry Kravkov4-10/+40
Changing speed setting in NPAR requires HW access, this patch delays the access to D0 state when performed in D3. Signed-off-by: Dmitry Kravkov <[email protected]> Signed-off-by: Eilon Greenstein <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-06bnx2x: fix link notificationDmitry Kravkov1-7/+7
Report link to OS and other PFs after HW is fully reconfigured according to new link parameters. (Affected only Multi Function modes). Signed-off-by: Dmitry Kravkov <[email protected]> Signed-off-by: Eilon Greenstein <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-06bnx2x: fix non-pmf device load flowDmitry Kravkov1-2/+3
Remove port MAX BW configuration from non-pmf functions, which caused reconfigure of HW according to 10G (fake) link. Signed-off-by: Dmitry Kravkov <[email protected]> Signed-off-by: Eilon Greenstein <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2011-03-05appletalk: remove the BKLArnd Bergmann1-1/+0
This changes appletalk to use lock_sock instead of lock_kernel for serialization. I tried to make sure that we don't hold the socket lock during sleeping functions, but I did not try to prove whether the locks are necessary in the first place. Compile-tested only. Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: David S. Miller <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: David Miller <[email protected]> Cc: [email protected]
2011-03-05r8169: convert to new VLAN model.Francois Romieu2-70/+49
Signed-off-by: Francois Romieu <[email protected]> Reviewed-by: Jesse Gross <[email protected]>
2011-03-05r8169: support control of advertising.Oliver Neukum1-17/+37
This allows "ethtool advertise" to control the speed and duplex features the device offers the switch. Signed-off-by: Oliver Neukum <[email protected]> Signed-off-by: Francois Romieu <[email protected]>
2011-03-05r8169: support the new chips for RTL8105E.Hayes Wang1-2/+90
Signed-off-by: Hayes Wang <[email protected]> Acked-by: Francois Romieu <[email protected]>
2011-03-04Merge branch 'for-davem' of ↵David S. Miller181-3103/+34317
ssh://master.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6
2011-03-04Merge branch 'master' of ↵John W. Linville181-3103/+34317
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem
2011-03-04iwlwifi: avoid too frequent recover from statisticsStanislaw Gruszka3-22/+30
Usually H/W generate statistics notify once per about 100ms, but sometimes we can receive notify in shorter time, even 2 ms. This can be problem for plcp health and ack health checking. I.e. with 2 plcp errors happens randomly in 2 ms duration, we exceed plcp delta threshold equal to 100 (2*100/2). Also checking ack's in short time, can results not necessary false positive and firmware reset, for example when channel is noised and we do not receive ACKs frames or when remote device does not send ACKs at the moment. Patch change code to do statistic check and possible recovery only if 99ms elapsed from last check. Forced delay should assure we have good statistic data to estimate hardware state. Signed-off-by: Stanislaw Gruszka <[email protected]> Acked-by: Wey-Yi Guy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2011-03-04iwlwifi: cleanup iwl_good_plcp_healthStanislaw Gruszka1-70/+45
Make iwl_good_plcp_health code easiest to read. Signed-off-by: Stanislaw Gruszka <[email protected]> Acked-by: Wey-Yi Guy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2011-03-04iwlwifi: move rx handlers code to iwl-rx.cStanislaw Gruszka6-528/+500
Put generic rx_handlers (except iwlagn_rx_reply_compressed_ba) to iwl-rx.c . Make functions static and change prefix from iwlagn_ to iwl_ . Beautify iwl_setup_rx_handlers and do some other minor coding style changes. Signed-off-by: Stanislaw Gruszka <[email protected]> Acked-by: Wey-Yi Guy <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2011-03-04ath9k: Fix txq memory address printing in debugfs.Ben Greear1-4/+4
No use printing addresses of pointers, just print the pointers themselves. Signed-off-by: Ben Greear <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2011-03-04rt2x00: Remove unused rt2x00queue_get_queue function.Gertjan van Wingerde2-27/+0
Now that all accesses to the data_queue structures is done via the specialized rt2x00queue_get_tx_queue function or via direct accesses, there is no need for the rt2x00queue_get_queue function anymore, so remove it. Signed-off-by: Gertjan van Wingerde <[email protected]> Acked-by: Helmut Schaa <[email protected]> Signed-off-by: Ivo van Doorn <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2011-03-04rt2x00: Optimize getting the beacon queue structure.Gertjan van Wingerde2-2/+2
In the spirit of optimizing the code to get the queue structure of TX queues, also optimize the code to get beacon queues. We can simply use the bcn queue field of the rt2x00_dev structure instead of using the rt2x00queue_get_queue function. Signed-off-by: Gertjan van Wingerde <[email protected]> Acked-by: Helmut Schaa <[email protected]> Signed-off-by: Ivo van Doorn <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2011-03-04rt2x00: Include ATIM queue support in rt2x00queue_get_tx_queue.Gertjan van Wingerde4-6/+9
The ATIM queue is considered to be a TX queue by the drivers that support the queue. Therefore include support for the ATIM queue to the rt2x00queue_get_tx_queue function so that the drivers that support the ATIM queue can also use that function. Add the support in such a way that drivers that do not support the ATIM queue are not penalized in their efficiency. Signed-off-by: Gertjan van Wingerde <[email protected]> Acked-by: Helmut Schaa <[email protected]> Signed-off-by: Ivo van Doorn <[email protected]> Signed-off-by: John W. Linville <[email protected]>
2011-03-04rt2x00: Don't treat ATIM queue as second beacon queue.Gertjan van Wingerde4-20/+16
Current code for the atim queue is strange, as it is considered in the rt2x00_dev structure as a second beacon queue. Normalize this by letting the atim queue have its own struct data_queue pointer in the rt2x00_dev structure. Signed-off-by: Gertjan van Wingerde <[email protected]> Acked-by: Helmut Schaa <[email protected]> Signed-off-by: Ivo van Doorn <[email protected]> Signed-off-by: John W. Linville <[email protected]>