Yi Li 983efe173e net: hns3: Fix for geneve tx checksum bug
[ Upstream commit a156998fc92d3859c8e820f1583f6d0541d643c3 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-09-17 13:47:46 +02:00
..
2020-05-20 08:20:11 +02:00
2020-09-03 11:26:59 +02:00
2020-03-05 16:43:31 +01:00
2019-09-23 19:16:01 -07:00
2019-09-21 19:08:31 -07:00
2019-09-21 19:08:31 -07:00