qlcnic: Reinitialize mailbox data structures after firmware reset
authorManish Chopra <manish.chopra@qlogic.com>
Thu, 15 Aug 2013 12:27:25 +0000 (08:27 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Aug 2013 21:46:18 +0000 (14:46 -0700)
o After firmware reset VFs were failing to come up because of not
  reinitializing mailbox data structures. Reinitialize them so that
  VFs can come up after firmware reset.

Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c

index 046286a897ea5321886adbb7c3386e49c0fd9a48..dc249796d61afe94c0fa714efb130ad38bf55f54 100644 (file)
@@ -1556,7 +1556,7 @@ static int qlcnic_sriov_vf_reinit_driver(struct qlcnic_adapter *adapter)
 {
        int err;
 
-       set_bit(QLC_83XX_MBX_READY, &adapter->ahw->idc.status);
+       qlcnic_83xx_reinit_mbx_work(adapter->ahw->mailbox);
        qlcnic_83xx_enable_mbx_interrupt(adapter);
 
        err = qlcnic_sriov_cfg_bc_intr(adapter, 1);