net: hns3: add dma_rmb() for rx description
authorJian Shen <shenjian15@huawei.com>
Wed, 6 Mar 2019 03:26:37 +0000 (11:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Mar 2019 22:42:37 +0000 (14:42 -0800)
commitd394d33bee22421b39a0bcdc51ca6d68ba308625
tree11e4c9faa587ce162314f53b255e79f423735d8b
parent161e613755e93c45cc47e75ab046f0f8de9e6d49
net: hns3: add dma_rmb() for rx description

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>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c