summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShahed Shaikh <shahed.shaikh@qlogic.com>2013-01-30 16:47:12 +0400
committerDavid S. Miller <davem@davemloft.net>2013-01-31 05:34:49 +0400
commit069048f18bc51fbfd08d2e08a9003c2681ce44dd (patch)
treee9f02a2ffc56d80b7c011e8d6e7c1992f5c119a9
parent409cc1f8a4149c26bbb8e5d3bacb36541ad371e2 (diff)
downloadlinux-069048f18bc51fbfd08d2e08a9003c2681ce44dd.tar.xz
qlcnic: Fix sparse check endian warnings
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com> Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
index fdf34836ef41..d00f62832742 100644
--- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
+++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c
@@ -1018,7 +1018,7 @@ qlcnic_process_lro(struct qlcnic_adapter *adapter,
skb->protocol = eth_type_trans(skb, netdev);
- if (htons(skb->protocol) == ETH_P_IPV6) {
+ if (ntohs(skb->protocol) == ETH_P_IPV6) {
ipv6h = (struct ipv6hdr *)skb->data;
th = (struct tcphdr *)(skb->data + sizeof(struct ipv6hdr));
length = (th->doff << 2) + lro_length;