diff options
author | Yi Zou <yi.zou@intel.com> | 2012-03-16 23:08:12 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-19 17:37:35 -0400 |
commit | cf64bc8f093581d0697b65ea8dd04bdd27a676b0 (patch) | |
tree | 1ed362ce0741169c3b4f6f5e574334279283d92a | |
parent | cdbee74ce74cd66de42a6f6d0edfa74fa9a66f2a (diff) | |
download | linux-3.10-cf64bc8f093581d0697b65ea8dd04bdd27a676b0.tar.gz linux-3.10-cf64bc8f093581d0697b65ea8dd04bdd27a676b0.tar.bz2 linux-3.10-cf64bc8f093581d0697b65ea8dd04bdd27a676b0.zip |
fcoe: use CHECKSUM_UNNECESSARY instead of CHECKSUM_PARTIAL on tx
Fix a bug when using 'ethtool -K ethx tx off' to turn off tx ip checksum,
FCoE CRC offload should not be impacte. The skb_checksum_help() is needed
only if it's not FCoE traffic for ip checksum, regardless of ethtool toggling
the tx ip checksum on or off. Instead of using CHECKSUM_PARTIAL, we will
use CHECKSUM_UNNECESSARY as a proper indication to avoid sw ip checksum
on FCoE frames.
Ref. to original discussion thread:
http://patchwork.ozlabs.org/patch/146567/
CC: "James E.J. Bottomley" <JBottomley@parallels.com>
CC: Robert Love <robert.w.love@intel.com>
Signed-off-by: Yi Zou <yi.zou@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/scsi/fcoe/fcoe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index e9599600aa2..c164890224d 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c @@ -1498,7 +1498,7 @@ static int fcoe_xmit(struct fc_lport *lport, struct fc_frame *fp) /* crc offload */ if (likely(lport->crc_offload)) { - skb->ip_summed = CHECKSUM_PARTIAL; + skb->ip_summed = CHECKSUM_UNNECESSARY; skb->csum_start = skb_headroom(skb); skb->csum_offset = skb->len; crc = 0; |