net driver fixes for .26
Subsystems (4)
PATCH 1/1 net driver fixes for .26
Please pull from 'davem-fixes' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git davem-fixes
to receive the following updates:
drivers/net/ehea/ehea.h | 8 ++++-- drivers/net/ehea/ehea_main.c | 42 +++++++++++++++++++++++---------------- drivers/net/forcedeth.c | 15 ++++++++++++- drivers/net/fs_enet/mac-fcc.c | 3 ++ drivers/net/ibm_newemac/core.c | 8 +++++++ drivers/net/pasemi_mac.c | 2 +- drivers/net/wan/hdlc_fr.c | 1 + 7 files changed, 56 insertions(+), 23 deletions(-)
Jan-Bernd Themann (3):
ehea: fix might sleep problem
ehea: add MODULE_DEVICE_TABLE
ehea: fix race condition
Krzysztof Halasa (1):
Add missing skb->dev assignment in Frame Relay RX code
Laurent Pinchart (1):
fs_enet: restore promiscuous and multicast settings in restart()
Roland Dreier (2):
ehea: Access iph->tot_len with correct endianness
pasemi_mac: Access iph->tot_len with correct endiannessSathya Narayanan (2):
ibm_newemac: Fixes kernel crashes when speed of cable connected changes
ibm_newemac: Fixes entry of short packets
Tobias Diedrich (1):
forcedeth: fix lockdep warning on ethtool -s
drivers/net/ehea/ehea.h +5 -3
@@ -40,7 +40,7 @@#include <asm/io.h> #define DRV_NAME "ehea" -#define DRV_VERSION "EHEA_0091" +#define DRV_VERSION "EHEA_0092"/* eHEA capability flags */ #define DLPAR_PORT_ADD_REM 1
@@ -452,7 +452,7 @@ struct ehea_bcmc_reg_entry {struct ehea_bcmc_reg_array {struct ehea_bcmc_reg_entry *arr;int num_entries; -struct mutex lock; +spinlock_t lock; };#define EHEA_PORT_UP 1
@@ -478,6 +478,7 @@ struct ehea_port {int num_add_tx_qps;int num_mcs;int resets; +u64 flags;u64 mac_addr;u32 logical_port_id;u32 port_speed;
@@ -501,7 +502,8 @@ struct port_res_cfg { };enum ehea_flag_bits { - __EHEA_STOP_XFER + __EHEA_STOP_XFER, + __EHEA_DISABLE_PORT_RESET };void ehea_set_ethtool_ops (struct net_device *netdev);
drivers/net/ehea/ehea_main.c +25 -17
162 lines not on this page · raw message
drivers/net/forcedeth.c +13 -2
@@ -4194,12 +4194,23 @@ static int nv_set_settings(struct net_device *dev, struct ethtool_cmd *ecmd)netif_carrier_off (dev);if (netif_running (dev)) { +unsigned long flags; +nv_disable_irq (dev);netif_tx_lock_bh (dev); -spin_lock (&np->lock); +/* with plain spinlock lockdep complains */ +spin_lock_irqsave (&np->lock, flags);/* stop engines */ +/* FIXME: +* this can take some time, and interrupts are disabled +* due to spin_lock_irqsave, but let's hope no daemon +* is going to change the settings very often... +* Worst case: +* NV_RXSTOP_DELAY1MAX + NV_TXSTOP_DELAY1MAX +* + some minor delays, which is up to a second approximately +*/ nv_stop_rxtx (dev); -spin_unlock (&np->lock); +spin_unlock_irqrestore (&np->lock, flags);netif_tx_unlock_bh (dev); }
drivers/net/fs_enet/mac-fcc.c +3 -0
@@ -463,6 +463,9 @@ static void restart(struct net_device *dev)else C32 (fccp, fcc_fpsmr,FCC_PSMR_FDE |FCC_PSMR_LPB ); +/* Restore multicast and promiscuous settings */ +set_multicast_list (dev); +S32 (fccp, fcc_gfmr,FCC_GFMR_ENR |FCC_GFMR_ENT ); }
drivers/net/ibm_newemac/core.c +8 -0
@@ -1636,6 +1636,12 @@ static int emac_poll_rx(void *param, int budget) goto next; } +if (len <ETH_HLEN ) { + ++dev->estats.rx_dropped_stack; +emac_recycle_rx_skb (dev, slot, len); + goto next; + } +if (len && len <EMAC_RX_COPY_THRESH ) {struct sk_buff *copy_skb =alloc_skb (len +EMAC_RX_SKB_HEADROOM +2 ,GFP_ATOMIC );
@@ -2719,6 +2725,8 @@ static int __devinit emac_probe(struct of_device *ofdev,/* Clean rings */ memset (dev->tx_desc,0 ,NUM_TX_BUFF *sizeof (struct mal_descriptor ));memset (dev->rx_desc,0 ,NUM_RX_BUFF *sizeof (struct mal_descriptor )); +memset (dev->tx_skb,0 ,NUM_TX_BUFF *sizeof (struct sk_buff *)); +memset (dev->rx_skb,0 ,NUM_RX_BUFF *sizeof (struct sk_buff *));/* Attach to ZMII, if needed */ if (emac_has_feature(dev, EMAC_FTR_HAS_ZMII) &&
drivers/net/pasemi_mac.c +1 -1
@@ -277,7 +277,7 @@ static int get_skb_hdr(struct sk_buff *skb, void **iphdr, *tcph =tcp_hdr (skb);/* check if ip header and tcp header are complete */ -if (iph->tot_len < ip_len +tcp_hdrlen (skb)) +if (ntohs (iph->tot_len) < ip_len +tcp_hdrlen (skb))return -1 ; *hdr_flags =LRO_IPV4 |LRO_TCP ;
drivers/net/wan/hdlc_fr.c +1 -0
@@ -1008,6 +1008,7 @@ static int fr_rx(struct sk_buff *skb) stats->rx_bytes += skb->len;if (pvc->state.becn) stats->rx_compressed++; + skb->dev = dev;netif_rx (skb);return NET_RX_SUCCESS ; }else {
David Miller
maintainerFrom: Jeff Garzik <[email protected]>
Date: Fri, 4 Jul 2008 08:54:22 -0400
Quoted 5 lines
Please pull from 'davem-fixes' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git davem-fixes
to receive the following updates:
Pulled and pushed back out to net-2.6, thanks Jeff.