diff options
Diffstat (limited to 'drivers/net/3c59x.c')
-rw-r--r-- | drivers/net/3c59x.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/3c59x.c b/drivers/net/3c59x.c index 975e25b19ebe..78b7167a8ce3 100644 --- a/drivers/net/3c59x.c +++ b/drivers/net/3c59x.c | |||
@@ -1942,8 +1942,8 @@ vortex_error(struct net_device *dev, int status) | |||
1942 | if (status & TxComplete) { /* Really "TxError" for us. */ | 1942 | if (status & TxComplete) { /* Really "TxError" for us. */ |
1943 | tx_status = ioread8(ioaddr + TxStatus); | 1943 | tx_status = ioread8(ioaddr + TxStatus); |
1944 | /* Presumably a tx-timeout. We must merely re-enable. */ | 1944 | /* Presumably a tx-timeout. We must merely re-enable. */ |
1945 | if (vortex_debug > 2 | 1945 | if (vortex_debug > 2 || |
1946 | || (tx_status != 0x88 && vortex_debug > 0)) { | 1946 | (tx_status != 0x88 && vortex_debug > 0)) { |
1947 | pr_err("%s: Transmit error, Tx status register %2.2x.\n", | 1947 | pr_err("%s: Transmit error, Tx status register %2.2x.\n", |
1948 | dev->name, tx_status); | 1948 | dev->name, tx_status); |
1949 | if (tx_status == 0x82) { | 1949 | if (tx_status == 0x82) { |
@@ -2560,7 +2560,7 @@ boomerang_rx(struct net_device *dev) | |||
2560 | struct sk_buff *skb; | 2560 | struct sk_buff *skb; |
2561 | entry = vp->dirty_rx % RX_RING_SIZE; | 2561 | entry = vp->dirty_rx % RX_RING_SIZE; |
2562 | if (vp->rx_skbuff[entry] == NULL) { | 2562 | if (vp->rx_skbuff[entry] == NULL) { |
2563 | skb = netdev_alloc_skb(dev, PKT_BUF_SZ + NET_IP_ALIGN); | 2563 | skb = netdev_alloc_skb_ip_align(dev, PKT_BUF_SZ); |
2564 | if (skb == NULL) { | 2564 | if (skb == NULL) { |
2565 | static unsigned long last_jif; | 2565 | static unsigned long last_jif; |
2566 | if (time_after(jiffies, last_jif + 10 * HZ)) { | 2566 | if (time_after(jiffies, last_jif + 10 * HZ)) { |
@@ -2572,7 +2572,6 @@ boomerang_rx(struct net_device *dev) | |||
2572 | break; /* Bad news! */ | 2572 | break; /* Bad news! */ |
2573 | } | 2573 | } |
2574 | 2574 | ||
2575 | skb_reserve(skb, NET_IP_ALIGN); | ||
2576 | vp->rx_ring[entry].addr = cpu_to_le32(pci_map_single(VORTEX_PCI(vp), skb->data, PKT_BUF_SZ, PCI_DMA_FROMDEVICE)); | 2575 | vp->rx_ring[entry].addr = cpu_to_le32(pci_map_single(VORTEX_PCI(vp), skb->data, PKT_BUF_SZ, PCI_DMA_FROMDEVICE)); |
2577 | vp->rx_skbuff[entry] = skb; | 2576 | vp->rx_skbuff[entry] = skb; |
2578 | } | 2577 | } |