]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Fix for geneve tx checksum bug
authorYi Li <yili@winhong.com>
Wed, 26 Aug 2020 05:11:50 +0000 (13:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Aug 2020 14:26:41 +0000 (07:26 -0700)
commit8f70662a285352543cf01557b6faebb8b55155cf
tree8171b65c1617da02a00c217c3b366e81a608a418
parentdafc56dd1509ea44795cc165a035dfc4e63407c6
net: hns3: Fix for geneve tx checksum bug

when skb->encapsulation is 0, skb->ip_summed is CHECKSUM_PARTIAL
and it is udp packet, which has a dest port as the IANA assigned.
the hardware is expected to do the checksum offload, but the
hardware will not do the checksum offload when udp dest port is
6081.

This patch fixes it by doing the checksum in software.

Reported-by: Li Bing <libing@winhong.com>
Signed-off-by: Yi Li <yili@winhong.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c