OpenCloudOS-Kernel/drivers/net/ethernet/huawei/hinic
Luo bin e8a1b0efd6 hinic: fix a bug of ndo_stop
if some function in ndo_stop interface returns failure because of
hardware fault, must go on excuting rest steps rather than return
failure directly, otherwise will cause memory leak.And bump the
timeout for SET_FUNC_STATE to ensure that cmd won't return failure
when hw is busy. Otherwise hw may stomp host memory if we free
memory regardless of the return value of SET_FUNC_STATE.

Fixes: 51ba902a16 ("net-next/hinic: Initialize hw interface")
Signed-off-by: Luo bin <luobin9@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2020-05-10 20:02:01 -07:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile hinic: move ethtool code into hinic_ethtool 2019-06-18 21:52:27 -04:00
hinic_common.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
hinic_common.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
hinic_dev.h hinic: add support for rss parameters with ethtool 2019-06-18 21:52:27 -04:00
hinic_ethtool.c treewide: Use sizeof_field() macro 2019-12-09 10:36:44 -08:00
hinic_hw_api_cmd.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
hinic_hw_api_cmd.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
hinic_hw_cmdq.c hinic: fix wrong para of wait_for_completion_timeout 2020-03-21 19:43:38 -07:00
hinic_hw_cmdq.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
hinic_hw_csr.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
hinic_hw_dev.c hinic: fix a bug of waitting for IO stopped 2020-03-21 19:43:38 -07:00
hinic_hw_dev.h hinic: fix a bug of setting hw_ioctxt 2020-02-27 11:08:01 -08:00
hinic_hw_eqs.c hinic: fix out-of-order excution in arm cpu 2020-03-21 19:43:38 -07:00
hinic_hw_eqs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
hinic_hw_if.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
hinic_hw_if.h hinic: fix a bug of setting hw_ioctxt 2020-02-27 11:08:01 -08:00
hinic_hw_io.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-06-17 20:20:36 -07:00
hinic_hw_io.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
hinic_hw_mgmt.c hinic: fix a bug of ndo_stop 2020-05-10 20:02:01 -07:00
hinic_hw_mgmt.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
hinic_hw_qp.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
hinic_hw_qp.h hinic: fix a irq affinity bug 2020-02-27 11:08:01 -08:00
hinic_hw_qp_ctxt.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-06-17 20:20:36 -07:00
hinic_hw_wq.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
hinic_hw_wq.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
hinic_hw_wqe.h hinic: add vlan offload support 2019-06-29 10:28:23 -07:00
hinic_main.c hinic: fix a bug of ndo_stop 2020-05-10 20:02:01 -07:00
hinic_port.c hinic: add fw version query 2019-07-07 22:15:12 -07:00
hinic_port.h hinic: add fw version query 2019-07-07 22:15:12 -07:00
hinic_rx.c hinic: fix out-of-order excution in arm cpu 2020-03-21 19:43:38 -07:00
hinic_rx.h hinic: implement the statistical interface of ethtool 2019-06-24 07:18:11 -07:00
hinic_tx.c hinic: fix wrong value of MIN_SKB_LEN 2020-03-21 19:44:16 -07:00
hinic_tx.h hinic: implement the statistical interface of ethtool 2019-06-24 07:18:11 -07:00