]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
[SCSI] fcoe: fcoe fc crc offload indication by skb->ip_summed
authorYi Zou <yi.zou@intel.com>
Fri, 27 Feb 2009 22:07:31 +0000 (14:07 -0800)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 13 Mar 2009 20:15:48 +0000 (15:15 -0500)
If LLD supports FCCRC offload, it should set ip_summed to be
CHECKSUM_UNNECESSARY so we don't have to do CRC check again.

Signed-off-by: Yi Zou <yi.zou@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/fcoe/libfcoe.c

index 5dae823057ae164cd3082ac54bfd4f894de7dc9b..0d6f5beb7f9ece99e7d532513d225cc3b5e49204 100644 (file)
@@ -633,7 +633,7 @@ int fcoe_percpu_receive_thread(void *arg)
                 * it's solicited data, in which case, the FCP layer would
                 * check it during the copy.
                 */
-               if (lp->crc_offload)
+               if (lp->crc_offload && skb->ip_summed == CHECKSUM_UNNECESSARY)
                        fr_flags(fp) &= ~FCPHF_CRC_UNCHECKED;
                else
                        fr_flags(fp) |= FCPHF_CRC_UNCHECKED;