net: hns3: add a check for devcie's verion in hns3_tunnel_csum_bug()
authorHuazhong Tan <tanhuazhong@huawei.com>
Sat, 28 Nov 2020 03:51:49 +0000 (11:51 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 1 Dec 2020 23:16:31 +0000 (15:16 -0800)
commitade36ccef1d7d830a17bbe7eba3a6223e81cdc80
tree05782b69c80d71722ffca1211ab70c7b36fdc621
parentb1533ada7480237be6ffac86092495450f3de3a4
net: hns3: add a check for devcie's verion in hns3_tunnel_csum_bug()

For the device whose version is above V3(include V3), the hardware
can do checksum offload for the non-tunnel udp packet, who has
a dest port as the IANA assigned. So add a check for devcie's verion
in hns3_tunnel_csum_bug().

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c