diff options
author | Manish Chopra <manish.chopra@qlogic.com> | 2013-09-13 06:13:47 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-15 22:10:57 -0400 |
commit | 5c44bbdab5fd7831859cf0d38626317ffcf39558 (patch) | |
tree | fc8ffea8237fbb773a43ba4d03513abbbd3f6859 /drivers/net | |
parent | 716ec052d2280d511e10e90ad54a86f5b5d4dcc2 (diff) | |
download | linux-5c44bbdab5fd7831859cf0d38626317ffcf39558.tar.gz linux-5c44bbdab5fd7831859cf0d38626317ffcf39558.tar.bz2 linux-5c44bbdab5fd7831859cf0d38626317ffcf39558.zip |
qlcnic: Fix VF reset recovery
o At the time of firmware hang "adapter->need_fw_reset" variable gets
set but after re-initialization of firmware OR at the time of VF
re-initialization that variable was not getting cleared which
was leading to failure in VF reset recovery.Fix it by clearing
this variable before re-initializing VF
Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c index 652cc13c5023..392b9bd12b4f 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c @@ -1561,6 +1561,7 @@ static int qlcnic_sriov_vf_reinit_driver(struct qlcnic_adapter *adapter) { int err; + adapter->need_fw_reset = 0; qlcnic_83xx_reinit_mbx_work(adapter->ahw->mailbox); qlcnic_83xx_enable_mbx_interrupt(adapter); |