]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SCSI] net: add NETIF_F_FCOE_CRC to can_checksum_protocol
authorYi Zou <yi.zou@intel.com>
Fri, 27 Feb 2009 22:06:54 +0000 (14:06 -0800)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 13 Mar 2009 20:11:38 +0000 (15:11 -0500)
Add FC CRC offload check for ETH_P_FCOE.

Signed-off-by: Yi Zou <yi.zou@intel.com>
Acked-by: David Miller <davem@davemloft.net>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
net/core/dev.c

index 72b0d26fd46d037e9a4016a810e06d940df5431a..3d3670640c2d59458b66f1af59605904eaf4b427 100644 (file)
@@ -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)