Skip to content

Commit b9046e8

Browse files
lxinkuba-moo
authored andcommitted
net: hns3: replace skb->csum_not_inet with skb_csum_is_sctp
Commit fa82117 ("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: Jakub Kicinski <[email protected]> Signed-off-by: Xin Long <[email protected]> Link: https://lore.kernel.org/r/3ad3c22c08beb0947f5978e790bd98d2aa063df9.1611307861.git.lucien.xin@gmail.com Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 07fe179 commit b9046e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3_enet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,7 @@ static bool hns3_check_hw_tx_csum(struct sk_buff *skb)
10701070
* HW checksum of the non-IP packets and GSO packets is handled at
10711071
* different place in the following code
10721072
*/
1073-
if (skb->csum_not_inet || skb_is_gso(skb) ||
1073+
if (skb_csum_is_sctp(skb) || skb_is_gso(skb) ||
10741074
!test_bit(HNS3_NIC_STATE_HW_TX_CSUM_ENABLE, &priv->state))
10751075
return false;
10761076

0 commit comments

Comments
 (0)