diff options
author | Ron Mercer <ron.mercer@qlogic.com> | 2010-07-05 08:19:40 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-05 22:41:21 -0400 |
commit | 6d29b1ef311d96e737084032a4b080653015aedf (patch) | |
tree | 42c2393707dc7aad439b09b903893dd172949554 /drivers/net/qlge | |
parent | 3b11d36ec25cdd69929b8abe867984c8ab2b50a4 (diff) |
qlge: Fix possible endian issue for rx UDP csum.
Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlge')
-rw-r--r-- | drivers/net/qlge/qlge_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c index e39451b5196e..a41b6b564042 100644 --- a/drivers/net/qlge/qlge_main.c +++ b/drivers/net/qlge/qlge_main.c | |||
@@ -1677,7 +1677,7 @@ static void ql_process_mac_rx_skb(struct ql_adapter *qdev, | |||
1677 | /* Unfragmented ipv4 UDP frame. */ | 1677 | /* Unfragmented ipv4 UDP frame. */ |
1678 | struct iphdr *iph = (struct iphdr *) skb->data; | 1678 | struct iphdr *iph = (struct iphdr *) skb->data; |
1679 | if (!(iph->frag_off & | 1679 | if (!(iph->frag_off & |
1680 | cpu_to_be16(IP_MF|IP_OFFSET))) { | 1680 | ntohs(IP_MF|IP_OFFSET))) { |
1681 | skb->ip_summed = CHECKSUM_UNNECESSARY; | 1681 | skb->ip_summed = CHECKSUM_UNNECESSARY; |
1682 | netif_printk(qdev, rx_status, KERN_DEBUG, | 1682 | netif_printk(qdev, rx_status, KERN_DEBUG, |
1683 | qdev->ndev, | 1683 | qdev->ndev, |
@@ -1997,7 +1997,7 @@ static void ql_process_mac_split_rx_intr(struct ql_adapter *qdev, | |||
1997 | /* Unfragmented ipv4 UDP frame. */ | 1997 | /* Unfragmented ipv4 UDP frame. */ |
1998 | struct iphdr *iph = (struct iphdr *) skb->data; | 1998 | struct iphdr *iph = (struct iphdr *) skb->data; |
1999 | if (!(iph->frag_off & | 1999 | if (!(iph->frag_off & |
2000 | cpu_to_be16(IP_MF|IP_OFFSET))) { | 2000 | ntohs(IP_MF|IP_OFFSET))) { |
2001 | skb->ip_summed = CHECKSUM_UNNECESSARY; | 2001 | skb->ip_summed = CHECKSUM_UNNECESSARY; |
2002 | netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, | 2002 | netif_printk(qdev, rx_status, KERN_DEBUG, qdev->ndev, |
2003 | "TCP checksum done!\n"); | 2003 | "TCP checksum done!\n"); |