commit | d394d33bee22421b39a0bcdc51ca6d68ba308625 | [log] [tgz] |
---|---|---|
author | Jian Shen <shenjian15@huawei.com> | Wed Mar 06 11:26:37 2019 +0800 |
committer | David S. Miller <davem@davemloft.net> | Fri Mar 08 14:42:37 2019 -0800 |
tree | 11e4c9faa587ce162314f53b255e79f423735d8b | |
parent | 161e613755e93c45cc47e75ab046f0f8de9e6d49 [diff] |
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>