diff options
author | Shahed Shaikh <shahed.shaikh@qlogic.com> | 2013-01-30 16:47:12 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-31 05:34:49 +0400 |
commit | 069048f18bc51fbfd08d2e08a9003c2681ce44dd (patch) | |
tree | e9f02a2ffc56d80b7c011e8d6e7c1992f5c119a9 | |
parent | 409cc1f8a4149c26bbb8e5d3bacb36541ad371e2 (diff) | |
download | linux-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.c | 2 |
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; |