mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
[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>
This commit is contained in:
parent
e056200736
commit
07c00ec449
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue