]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Apr 2021 21:49:33 +0000 (14:49 -0700)
commit62850857b8d25ee08f23fa3d73e434a02d21e79b
treecbacc8dab151c9a4cf83020096371d77155d2482
parentda629452217634f980e30e1ed41cbc782f1b8f3c
net: hns3: fix for vxlan gpe tx checksum bug

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: 327a841d1dd9 ("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>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c