net: hns3: fix miss L3E checking for rx packet
authorJian Shen <shenjian15@huawei.com>
Thu, 22 Dec 2022 06:43:42 +0000 (14:43 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 23 Dec 2022 20:00:08 +0000 (12:00 -0800)
commit7d89b53cea1a702f97117fb4361523519bb1e52c
tree7ea999ba4d6175d8eee81e5e1ca21df26817fc4a
parent09e6b30eeb254f1818a008cace3547159e908dfd
net: hns3: fix miss L3E checking for rx packet

For device supports RXD advanced layout, the driver will
return directly if the hardware finish the checksum
calculate. It cause missing L3E checking for ip packets.
Fixes it.

Fixes: 1ddc028ac849 ("net: hns3: refactor out RX completion checksum")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Hao Lan <lanhao@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c