From: Tom Herbert Date: Mon, 14 Dec 2015 19:19:42 +0000 (-0800) Subject: fcoe: Use CHECKSUM_PARTIAL to indicate CRC offload X-Git-Tag: v4.14-rc1~3609^2~475^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=253aab0597d9e16014888639f801ff89df6949c3;p=platform%2Fkernel%2Flinux-rpi.git fcoe: Use CHECKSUM_PARTIAL to indicate CRC offload When setting up CRC offload set ip_summed to CHECKSUM_PARTIAL instead of CHECKSUM_UNNECESSARY. This is consistent with the definition of CHECKSUM_PARTIAL. The only driver that seems to be advertising NETIF_F_FCOE_CRC is ixgbe. AFICT the driver does not look at ip_summed for FCOE and just assumes that CRC is being offloaded. Signed-off-by: Tom Herbert Signed-off-by: David S. Miller --- diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index f442406..0efe711 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c @@ -1625,7 +1625,7 @@ static int fcoe_xmit(struct fc_lport *lport, struct fc_frame *fp) /* crc offload */ if (likely(lport->crc_offload)) { - skb->ip_summed = CHECKSUM_UNNECESSARY; + skb->ip_summed = CHECKSUM_PARTIAL; skb->csum_start = skb_headroom(skb); skb->csum_offset = skb->len; crc = 0;