aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c
diff options
context:
space:
mode:
authorYunsheng Lin <linyunsheng@huawei.com>2019-06-13 17:12:31 +0800
committerDavid S. Miller <davem@davemloft.net>2019-06-14 19:26:16 -0700
commit3a30964a2eef6aabd3ab18b979ea0eacf1147731 (patch)
tree45380eeb1562f54c1884feceab2f079a2d3b8a18 /drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c
parentnet: hns3: fix for skb leak when doing selftest (diff)
downloadlinux-dev-3a30964a2eef6aabd3ab18b979ea0eacf1147731.tar.xz
linux-dev-3a30964a2eef6aabd3ab18b979ea0eacf1147731.zip
net: hns3: delay ring buffer clearing during reset
The driver may not be able to disable the ring through firmware when downing the netdev during reset process, which may cause hardware accessing freed buffer problem. This patch delays the ring buffer clearing to reset uninit process because hardware will not access the ring buffer after hardware reset is completed. Fixes: bb6b94a896d4 ("net: hns3: Add reset interface implementation in client") Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com> Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c')
0 files changed, 0 insertions, 0 deletions