Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1c8dbcf6 authored by Yi Zou's avatar Yi Zou Committed by James Bottomley
Browse files

[SCSI] net: add NETIF_F_FCOE_CRC to can_checksum_protocol



Add FC CRC offload check for ETH_P_FCOE.

Signed-off-by: default avatarYi Zou <yi.zou@intel.com>
Acked-by: default avatarDavid Miller <davem@davemloft.net>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent 01d5b2fc
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1457,7 +1457,9 @@ static bool can_checksum_protocol(unsigned long features, __be16 protocol)
		((features & NETIF_F_IP_CSUM) &&
		 protocol == htons(ETH_P_IP)) ||
		((features & NETIF_F_IPV6_CSUM) &&
		 protocol == htons(ETH_P_IPV6)));
		 protocol == htons(ETH_P_IPV6)) ||
		((features & NETIF_F_FCOE_CRC) &&
		 protocol == htons(ETH_P_FCOE)));
}

static bool dev_can_checksum(struct net_device *dev, struct sk_buff *skb)