aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c
diff options
context:
space:
mode:
authorHuazhong Tan <tanhuazhong@huawei.com>2018-10-30 21:50:48 +0800
committerDavid S. Miller <davem@davemloft.net>2018-10-31 12:42:38 -0700
commit6d71ec6cbf74ac9c2823ef751b1baa5b889bb3ac (patch)
tree47c5785f1c36d9c89f7c227e516d4bc7f89d279d /drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c
parentnet: hns3: remove unnecessary queue reset in the hns3_uninit_all_ring() (diff)
downloadlinux-dev-6d71ec6cbf74ac9c2823ef751b1baa5b889bb3ac.tar.xz
linux-dev-6d71ec6cbf74ac9c2823ef751b1baa5b889bb3ac.zip
net: hns3: bugfix for is_valid_csq_clean_head()
The HEAD pointer of the hardware command queue maybe equal to the command queue's next_to_use in the driver, so that does not belong to the invalid HEAD pointer, since the hardware may not process the command in time, causing the HEAD pointer to be too late to update. The variables' name in this function is unreadable, so give them a more readable one. Fixes: 3ff504908f95 ("net: hns3: fix a dead loop in hclge_cmd_csq_clean") 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