diff options
author | Yi Zou <yi.zou@intel.com> | 2009-02-27 17:07:31 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-03-13 16:15:48 -0400 |
commit | 07c00ec449d4d94042063a6900d7d04fdc9f8e62 (patch) | |
tree | 2aaf918675bbcaef8f1cc086fced688c4b776fd3 | |
parent | e05620073625935290120be93a6214b1b52ae34f (diff) |
[SCSI] fcoe: fcoe fc crc offload indication by skb->ip_summed
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>
-rw-r--r-- | drivers/scsi/fcoe/libfcoe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/fcoe/libfcoe.c b/drivers/scsi/fcoe/libfcoe.c index 5dae823057ae..0d6f5beb7f9e 100644 --- a/drivers/scsi/fcoe/libfcoe.c +++ b/drivers/scsi/fcoe/libfcoe.c | |||
@@ -633,7 +633,7 @@ int fcoe_percpu_receive_thread(void *arg) | |||
633 | * it's solicited data, in which case, the FCP layer would | 633 | * it's solicited data, in which case, the FCP layer would |
634 | * check it during the copy. | 634 | * check it during the copy. |
635 | */ | 635 | */ |
636 | if (lp->crc_offload) | 636 | if (lp->crc_offload && skb->ip_summed == CHECKSUM_UNNECESSARY) |
637 | fr_flags(fp) &= ~FCPHF_CRC_UNCHECKED; | 637 | fr_flags(fp) &= ~FCPHF_CRC_UNCHECKED; |
638 | else | 638 | else |
639 | fr_flags(fp) |= FCPHF_CRC_UNCHECKED; | 639 | fr_flags(fp) |= FCPHF_CRC_UNCHECKED; |