提交 1c8dbcf6 编写于 作者: Y Yi Zou 提交者: James Bottomley

[SCSI] net: add NETIF_F_FCOE_CRC to can_checksum_protocol

Add FC CRC offload check for ETH_P_FCOE.
Signed-off-by: NYi Zou <yi.zou@intel.com>
Acked-by: NDavid Miller <davem@davemloft.net>
Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
上级 01d5b2fc
...@@ -1457,7 +1457,9 @@ static bool can_checksum_protocol(unsigned long features, __be16 protocol) ...@@ -1457,7 +1457,9 @@ static bool can_checksum_protocol(unsigned long features, __be16 protocol)
((features & NETIF_F_IP_CSUM) && ((features & NETIF_F_IP_CSUM) &&
protocol == htons(ETH_P_IP)) || protocol == htons(ETH_P_IP)) ||
((features & NETIF_F_IPV6_CSUM) && ((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) static bool dev_can_checksum(struct net_device *dev, struct sk_buff *skb)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册