]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: hns3: add dma_rmb() for rx description
authorJian Shen <shenjian15@huawei.com>
Wed, 6 Mar 2019 03:26:37 +0000 (11:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Mar 2019 12:11:52 +0000 (13:11 +0100)
commit788935326cfb073965c16c55fd9a82e5c514ebae
tree43fdc668e8457146bddc829eafd004c4a52bde69
parentd63735ae628df1fbed5ae0b962a443b7fa535ac9
net: hns3: add dma_rmb() for rx description

[ Upstream commit d394d33bee22421b39a0bcdc51ca6d68ba308625 ]

HW can not guarantee complete write desc->rx.size, even though
HNS3_RXD_VLD_B has been set. Driver needs to add dma_rmb()
instruction to make sure desc->rx.size is always valid.

Fixes: e55970950556 ("net: hns3: Add handling of GRO Pkts not fully RX'ed in NAPI poll")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c