All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tc35815: Fix build error if NAPI enabled
@ 2009-03-31 15:05 Atsushi Nemoto
  2009-04-02  8:17 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Atsushi Nemoto @ 2009-03-31 15:05 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Stephen Hemminger, netdev

This driver contains experimental NAPI code disabled by default.
The commit bea3348ee ("[NET]: Make NAPI polling independent of struct
net_device objects.") converted the NAPI path of this driver but that
conversion was not complete.  This patch fixes a build error
introduced by the commit.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
 drivers/net/tc35815.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/tc35815.c b/drivers/net/tc35815.c
index bcd0e60..ad9848e 100644
--- a/drivers/net/tc35815.c
+++ b/drivers/net/tc35815.c
@@ -1908,7 +1908,7 @@ static int tc35815_poll(struct napi_struct *napi, int budget)
 	do {
 		tc_writel(status, &tr->Int_Src);	/* write to clear */
 
-		handled = tc35815_do_interrupt(dev, status, limit);
+		handled = tc35815_do_interrupt(dev, status, budget - received);
 		if (handled >= 0) {
 			received += handled;
 			if (received >= budget)
-- 
1.5.6.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] tc35815: Fix build error if NAPI enabled
  2009-03-31 15:05 [PATCH] tc35815: Fix build error if NAPI enabled Atsushi Nemoto
@ 2009-04-02  8:17 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2009-04-02  8:17 UTC (permalink / raw)
  To: anemo; +Cc: jeff, shemminger, netdev

From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Wed,  1 Apr 2009 00:05:02 +0900

> This driver contains experimental NAPI code disabled by default.
> The commit bea3348ee ("[NET]: Make NAPI polling independent of struct
> net_device objects.") converted the NAPI path of this driver but that
> conversion was not complete.  This patch fixes a build error
> introduced by the commit.
> 
> Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>

Applied, thank you.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-02  8:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-31 15:05 [PATCH] tc35815: Fix build error if NAPI enabled Atsushi Nemoto
2009-04-02  8:17 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.