Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Tom Herbert and committed by
David S. Miller
253aab05 53692b1d

+1 -1
+1 -1
drivers/scsi/fcoe/fcoe.c
··· 1625 1625 1626 1626 /* crc offload */ 1627 1627 if (likely(lport->crc_offload)) { 1628 - skb->ip_summed = CHECKSUM_UNNECESSARY; 1628 + skb->ip_summed = CHECKSUM_PARTIAL; 1629 1629 skb->csum_start = skb_headroom(skb); 1630 1630 skb->csum_offset = skb->len; 1631 1631 crc = 0;