]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5f764bd57525cd6a4a3b301c43383425386a9fd7
tree8171b65c1617da02a00c217c3b366e81a608a418
parentaacb6ed4225d443adc4051afee1ef0ae2efb7cb1
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