commit | 82c8ae6e8390f09c3c2b1d0a567c993dd88a281c | [log] [tgz] |
---|---|---|
author | Peng Li <lipeng321@huawei.com> | Fri Jun 28 19:50:18 2019 +0800 |
committer | David S. Miller <davem@davemloft.net> | Fri Jun 28 09:39:49 2019 -0700 |
tree | 3e1160733dcb6f79492db15cf4fd0169a07d0c20 | |
parent | 289f81258e03067d032f9c157c91cd1fad7b31c5 [diff] |
net: hns3: optimize the CSQ cmd error handling If CMDQ ring is full, hclge_cmd_send may return directly, but IMP still working and HW pointer changed, SW ring pointer do not match the HW pointer. This patch update the SW pointer every time when the space is full, so it can work normally next time if IMP and HW still working. 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>