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)
commita156998fc92d3859c8e820f1583f6d0541d643c3
tree8171b65c1617da02a00c217c3b366e81a608a418
parent0a3445b82e0d66520345b7ef2b82df341a8c6db0
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