]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
net: hns3: fix for vxlan gpe tx checksum bug
authorHao Chen <chenhao288@hisilicon.com>
Fri, 30 Apr 2021 09:06:19 +0000 (17:06 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 18 Jun 2021 09:07:17 +0000 (11:07 +0200)
commitb6b8d51957777f4110b8deab7d60f6ab335f8eb8
treee94c5509444afcdf29d4e29694a5a796f91b87a2
parent8d8054dd48f5eee5bba2870576bac289d7318d81
net: hns3: fix for vxlan gpe tx checksum bug

BugLink: https://bugs.launchpad.net/bugs/1931292
[ Upstream commit 905416f18fe74bdd4de91bf94ef5a790a36e4b99 ]

When skb->ip_summed is CHECKSUM_PARTIAL, for non-tunnel udp packet,
which has a dest port as the IANA assigned, the hardware is expected
to do the checksum offload, but the hardware whose version is below
V3 will not do the checksum offload when udp dest port is 4790.

So fixes it by doing the checksum in software for this case.

Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC")
Signed-off-by: Hao Chen <chenhao288@hisilicon.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c