]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
qlcnic: Fix sparse check endian warnings
authorShahed Shaikh <shahed.shaikh@qlogic.com>
Wed, 30 Jan 2013 12:47:12 +0000 (12:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Jan 2013 01:34:49 +0000 (20:34 -0500)
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>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c

index fdf34836ef41a224a7b3141cec5c1c217bf83003..d00f628327422b761216a36ca9701ae73924146f 100644 (file)
@@ -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;