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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2023 11:02:01 +0000 (12:02 +0100)
commitfc7f6dca10b2685f9a6d657518d504262a1d8480
treef74559835df8d883cb71cd669e3d45bab8195466
parent55d10ed4b50728efe31973a50b99e0e08d9b3812
net: hns3: fix miss L3E checking for rx packet

[ Upstream commit 7d89b53cea1a702f97117fb4361523519bb1e52c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c