aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-03-16 19:27:08 -0500
committerJeff Garzik <jeff@garzik.org>2006-03-16 19:27:08 -0500
commitabc71c46dc0a12ab7fddc18cfe4f4aa26808c79b (patch)
treeb0c846052b994d57d58713a0cc8da30a22baaf1c /drivers/net/e1000
parent30dcbf29cc6d92d70fa262e79e84011fe6913bed (diff)
parent232a347a444e687b5f8cf0f6485704db1c6024d3 (diff)
Merge branch 'upstream-fixes'
Diffstat (limited to 'drivers/net/e1000')
-rw-r--r--drivers/net/e1000/e1000_main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c
index 4400117eb6c7..f39de16e6b97 100644
--- a/drivers/net/e1000/e1000_main.c
+++ b/drivers/net/e1000/e1000_main.c
@@ -3600,7 +3600,7 @@ e1000_clean_rx_irq(struct e1000_adapter *adapter,
3600 e1000_rx_checksum(adapter, 3600 e1000_rx_checksum(adapter,
3601 (uint32_t)(status) | 3601 (uint32_t)(status) |
3602 ((uint32_t)(rx_desc->errors) << 24), 3602 ((uint32_t)(rx_desc->errors) << 24),
3603 rx_desc->csum, skb); 3603 le16_to_cpu(rx_desc->csum), skb);
3604 3604
3605 skb->protocol = eth_type_trans(skb, netdev); 3605 skb->protocol = eth_type_trans(skb, netdev);
3606#ifdef CONFIG_E1000_NAPI 3606#ifdef CONFIG_E1000_NAPI
@@ -3773,11 +3773,11 @@ e1000_clean_rx_irq_ps(struct e1000_adapter *adapter,
3773 3773
3774copydone: 3774copydone:
3775 e1000_rx_checksum(adapter, staterr, 3775 e1000_rx_checksum(adapter, staterr,
3776 rx_desc->wb.lower.hi_dword.csum_ip.csum, skb); 3776 le16_to_cpu(rx_desc->wb.lower.hi_dword.csum_ip.csum), skb);
3777 skb->protocol = eth_type_trans(skb, netdev); 3777 skb->protocol = eth_type_trans(skb, netdev);
3778 3778
3779 if (likely(rx_desc->wb.upper.header_status & 3779 if (likely(rx_desc->wb.upper.header_status &
3780 E1000_RXDPS_HDRSTAT_HDRSP)) 3780 cpu_to_le16(E1000_RXDPS_HDRSTAT_HDRSP)))
3781 adapter->rx_hdr_split++; 3781 adapter->rx_hdr_split++;
3782#ifdef CONFIG_E1000_NAPI 3782#ifdef CONFIG_E1000_NAPI
3783 if (unlikely(adapter->vlgrp && (staterr & E1000_RXD_STAT_VP))) { 3783 if (unlikely(adapter->vlgrp && (staterr & E1000_RXD_STAT_VP))) {
@@ -3799,7 +3799,7 @@ copydone:
3799 netdev->last_rx = jiffies; 3799 netdev->last_rx = jiffies;
3800 3800
3801next_desc: 3801next_desc:
3802 rx_desc->wb.middle.status_error &= ~0xFF; 3802 rx_desc->wb.middle.status_error &= cpu_to_le32(~0xFF);
3803 buffer_info->skb = NULL; 3803 buffer_info->skb = NULL;
3804 3804
3805 /* return some buffers to hardware, one at a time is too slow */ 3805 /* return some buffers to hardware, one at a time is too slow */