* [PATCH net-next] net: hns3: replace skb->csum_not_inet with skb_csum_is_sctp
@ 2021-01-22 9:31 Xin Long
2021-01-23 3:40 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Xin Long @ 2021-01-22 9:31 UTC (permalink / raw)
To: network dev
Cc: Marcelo Ricardo Leitner, davem, Jakub Kicinski, Yisen Zhuang,
Salil Mehta, Alexander Duyck
Commit fa8211701043 ("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 <kuba@kernel.org>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
---
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
index 405e490..5120806 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
+++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
@@ -1070,7 +1070,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
* 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))
return false;
--
2.1.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] net: hns3: replace skb->csum_not_inet with skb_csum_is_sctp
2021-01-22 9:31 [PATCH net-next] net: hns3: replace skb->csum_not_inet with skb_csum_is_sctp Xin Long
@ 2021-01-23 3:40 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-01-23 3:40 UTC (permalink / raw)
To: Xin Long
Cc: netdev, marcelo.leitner, davem, kuba, yisen.zhuang, salil.mehta,
alexander.duyck
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
On Fri, 22 Jan 2021 17:31:01 +0800 you wrote:
> Commit fa8211701043 ("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 <kuba@kernel.org>
> Signed-off-by: Xin Long <lucien.xin@gmail.com>
>
> [...]
Here is the summary with links:
- [net-next] net: hns3: replace skb->csum_not_inet with skb_csum_is_sctp
https://git.kernel.org/netdev/net-next/c/b9046e88f6be
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-23 3:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-22 9:31 [PATCH net-next] net: hns3: replace skb->csum_not_inet with skb_csum_is_sctp Xin Long
2021-01-23 3:40 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).