* [PATCH 1/1] bna: Fix for handling firmware heartbeat failure
@ 2011-04-04 18:29 Rasesh Mody
2011-04-06 19:39 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Rasesh Mody @ 2011-04-04 18:29 UTC (permalink / raw)
To: netdev; +Cc: adapter_linux_open_src_team, Rasesh Mody, Debashis Dutt
This patch contains a fix for gracefully handling firmware heartbeat
failure instead of forcing panic.
Signed-off-by: Debashis Dutt <ddutt@brocade.com>
Signed-off-by: Rasesh Mody <rmody@brocade.com>
---
drivers/net/bna/bfa_ioc.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/drivers/net/bna/bfa_ioc.c b/drivers/net/bna/bfa_ioc.c
index 34933cb..e3de0b8 100644
--- a/drivers/net/bna/bfa_ioc.c
+++ b/drivers/net/bna/bfa_ioc.c
@@ -2219,13 +2219,9 @@ bfa_nw_ioc_get_mac(struct bfa_ioc *ioc)
static void
bfa_ioc_recover(struct bfa_ioc *ioc)
{
- u16 bdf;
-
- bdf = (ioc->pcidev.pci_slot << 8 | ioc->pcidev.pci_func << 3 |
- ioc->pcidev.device_id);
-
- pr_crit("Firmware heartbeat failure at %d", bdf);
- BUG_ON(1);
+ pr_crit("Heart Beat of IOC has failed\n");
+ bfa_ioc_stats(ioc, ioc_hbfails);
+ bfa_fsm_send_event(ioc, IOC_E_HBFAIL);
}
static void
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] bna: Fix for handling firmware heartbeat failure
2011-04-04 18:29 [PATCH 1/1] bna: Fix for handling firmware heartbeat failure Rasesh Mody
@ 2011-04-06 19:39 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2011-04-06 19:39 UTC (permalink / raw)
To: rmody; +Cc: netdev, adapter_linux_open_src_team, ddutt
From: Rasesh Mody <rmody@brocade.com>
Date: Mon, 4 Apr 2011 11:29:59 -0700
> This patch contains a fix for gracefully handling firmware heartbeat
> failure instead of forcing panic.
>
> Signed-off-by: Debashis Dutt <ddutt@brocade.com>
> Signed-off-by: Rasesh Mody <rmody@brocade.com>
Applied, thank you.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-06 19:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-04 18:29 [PATCH 1/1] bna: Fix for handling firmware heartbeat failure Rasesh Mody
2011-04-06 19:39 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).