Commit a87b5fe8 authored by Yi Li's avatar Yi Li Committed by Yang Yingliang
Browse files

net: hns3: Fix for geneve tx checksum bug



mainline inclusion
from mainline-v5.9-rc4
commit a156998f
category: bugfix
bugzilla: NA
CVE: NA

----------------------------

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: default avatarLi Bing <libing@winhong.com>
Signed-off-by: default avatarYi Li <yili@winhong.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarYonglong Liu <liuyonglong@huawei.com>
Reviewed-by: default avatarJunxin Chen <chenjunxin1@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 64eceed7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment