From: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, sony.chacko@qlogic.com,
Dept_NX_Linux_NIC_Driver@qlogic.com,
Shahed Shaikh <shahed.shaikh@qlogic.com>
Subject: [net-next PATCH 1/8] qlcnic: Fix sparse check endian warnings
Date: Wed, 30 Jan 2013 17:47:12 -0500 [thread overview]
Message-ID: <1359586039-19051-2-git-send-email-jitendra.kalsaria@qlogic.com> (raw)
In-Reply-To: <1359586039-19051-1-git-send-email-jitendra.kalsaria@qlogic.com>
From: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: Jitendra Kalsaria <jitendra.kalsaria@qlogic.com>
---
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 fdf3483..d00f628 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;
--
1.7.1
next prev parent reply other threads:[~2013-01-30 23:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-30 22:47 [net-next PATCH 0/8] qlcnic: bug fixes Jitendra Kalsaria
2013-01-30 22:47 ` Jitendra Kalsaria [this message]
2013-01-30 22:47 ` [net-next PATCH 2/8] qlcnic: Fix bug in reading HW reset template Jitendra Kalsaria
2013-01-30 22:47 ` [net-next PATCH 3/8] qlcnic: Free irq for mailbox interrupts Jitendra Kalsaria
2013-01-30 22:47 ` [net-next PATCH 4/8] qlcnic: driver LRO bug fix Jitendra Kalsaria
2013-01-30 22:47 ` [net-next PATCH 5/8] qlcnic: Fix minidump in NPAR mode Jitendra Kalsaria
2013-01-30 22:47 ` [net-next PATCH 6/8] qlcnic: Fix RX/TX checksum setting for some adapter types Jitendra Kalsaria
2013-01-30 22:47 ` [net-next PATCH 7/8] qlcnic: make pci_error_handlers const Jitendra Kalsaria
2013-01-30 22:47 ` [net-next PATCH 8/8] qlcnic: Bump up the version to 5.1.33 Jitendra Kalsaria
2013-01-31 1:35 ` [net-next PATCH 0/8] qlcnic: bug fixes David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1359586039-19051-2-git-send-email-jitendra.kalsaria@qlogic.com \
--to=jitendra.kalsaria@qlogic.com \
--cc=Dept_NX_Linux_NIC_Driver@qlogic.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=shahed.shaikh@qlogic.com \
--cc=sony.chacko@qlogic.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).