* Re: [BNX2]: Fix link interrupt problem.
2007-03-28 21:57 [BNX2]: Fix link interrupt problem Michael Chan
@ 2007-03-28 21:17 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2007-03-28 21:17 UTC (permalink / raw)
To: mchan; +Cc: netdev
From: "Michael Chan" <mchan@broadcom.com>
Date: Wed, 28 Mar 2007 13:57:18 -0800
> [BNX2]: Fix link interrupt problem.
>
> bnx2_has_work()'s logic is flawed and can cause the driver to miss
> a link event. The fix is to compare the status block's attn_bits
> and attn_bits_ack to determine if there is a link event.
>
> Update version to 1.5.6.
>
> Signed-off-by: Michael Chan <mchan@broadcom.com>
Applied, thanks Michael.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [BNX2]: Fix link interrupt problem.
@ 2007-03-28 21:57 Michael Chan
2007-03-28 21:17 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Michael Chan @ 2007-03-28 21:57 UTC (permalink / raw)
To: davem, netdev
[BNX2]: Fix link interrupt problem.
bnx2_has_work()'s logic is flawed and can cause the driver to miss
a link event. The fix is to compare the status block's attn_bits
and attn_bits_ack to determine if there is a link event.
Update version to 1.5.6.
Signed-off-by: Michael Chan <mchan@broadcom.com>
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
index c12e5ea..d43fe28 100644
--- a/drivers/net/bnx2.c
+++ b/drivers/net/bnx2.c
@@ -54,8 +54,8 @@
#define DRV_MODULE_NAME "bnx2"
#define PFX DRV_MODULE_NAME ": "
-#define DRV_MODULE_VERSION "1.5.5"
-#define DRV_MODULE_RELDATE "February 1, 2007"
+#define DRV_MODULE_VERSION "1.5.6"
+#define DRV_MODULE_RELDATE "March 28, 2007"
#define RUN_AT(x) (jiffies + (x))
@@ -2033,8 +2033,8 @@ bnx2_has_work(struct bnx2 *bp)
(sblk->status_tx_quick_consumer_index0 != bp->hw_tx_cons))
return 1;
- if (((sblk->status_attn_bits & STATUS_ATTN_BITS_LINK_STATE) != 0) !=
- bp->link_up)
+ if ((sblk->status_attn_bits & STATUS_ATTN_BITS_LINK_STATE) !=
+ (sblk->status_attn_bits_ack & STATUS_ATTN_BITS_LINK_STATE))
return 1;
return 0;
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-28 21:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-28 21:57 [BNX2]: Fix link interrupt problem Michael Chan
2007-03-28 21:17 ` 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).