提交 986ac499 编写于 作者: X Xin Long 提交者: Zheng Zengkai

net: hns3: replace skb->csum_not_inet with skb_csum_is_sctp

mainline inclusion
from mainline-v5.12-rc1-dontuse
commit b9046e88
category: feature
bugzilla: 173966
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b9046e88f6be56f420052822a3a7ac80e3c4d98a

----------------------------------------------------------------------

Commit fa821170 ("net: add inline function skb_csum_is_sctp")
missed replacing skb->csum_not_inet check in hns3. This patch is
to replace it with skb_csum_is_sctp().
Reported-by: NJakub Kicinski <kuba@kernel.org>
Signed-off-by: NXin Long <lucien.xin@gmail.com>
Link: https://lore.kernel.org/r/3ad3c22c08beb0947f5978e790bd98d2aa063df9.1611307861.git.lucien.xin@gmail.comSigned-off-by: NJakub Kicinski <kuba@kernel.org>
Reviewed-by: NYongxin Li <liyongxin1@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 9d44472f
...@@ -1067,7 +1067,7 @@ static bool hns3_check_hw_tx_csum(struct sk_buff *skb) ...@@ -1067,7 +1067,7 @@ static bool hns3_check_hw_tx_csum(struct sk_buff *skb)
* HW checksum of the non-IP packets and GSO packets is handled at * HW checksum of the non-IP packets and GSO packets is handled at
* different place in the following code * different place in the following code
*/ */
if (skb->csum_not_inet || skb_is_gso(skb) || if (skb_csum_is_sctp(skb) || skb_is_gso(skb) ||
!test_bit(HNS3_NIC_STATE_HW_TX_CSUM_ENABLE, &priv->state)) !test_bit(HNS3_NIC_STATE_HW_TX_CSUM_ENABLE, &priv->state))
return false; return false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册