From: Prasanna S Panchamukhi <prasanna@in.ibm.com>
To: Matt Mackall <mpm@selenic.com>
Cc: linux-kernel@vger.kernel.org, lkcd-devel@lists.sourceforge.net,
suparna@in.ibm.com, prasanna@in.ibm.com
Subject: Re: LKCD Network dump over netpoll patch (2.6.0-test9)
Date: Fri, 14 Nov 2003 10:27:14 +0530 [thread overview]
Message-ID: <20031114045714.GB18584@in.ibm.com> (raw)
In-Reply-To: <20031111005233.GV13246@waste.org>
Hi,
Below is the patch to netpoll. This patch modifies the netpoll_poll() routine
to include the zap_completion_queue() routine as suggested by Matt Mackall.
diff -urNp linux.orig/net/core/netpoll.c linux-2.6.0-test9/net/core/netpoll.c
--- linux.orig/net/core/netpoll.c 2003-11-13 05:22:20.000000000 +0530
+++ linux-2.6.0-test9/net/core/netpoll.c 2003-11-13 05:46:46.000000000 +0530
@@ -66,6 +66,7 @@ void netpoll_poll(struct netpoll *np)
if(trapped && np->dev->poll &&
test_bit(__LINK_STATE_RX_SCHED, &np->dev->state))
np->dev->poll(np->dev, &budget);
+ zap_completion_queue();
}
static void refill_skbs(void)
@@ -115,8 +116,8 @@ static struct sk_buff * find_skb(struct
unsigned long flags;
struct sk_buff *skb = NULL;
-repeat:
zap_completion_queue();
+repeat:
if (nr_skbs < MAX_SKBS)
refill_skbs();
@@ -165,7 +166,6 @@ repeat:
spin_unlock(&np->dev->xmit_lock);
netpoll_poll(np);
- zap_completion_queue();
goto repeat;
}
--
Thanks & Regards
Prasanna S Panchamukhi
Linux Technology Center
India Software Labs, IBM Bangalore
Ph: 91-80-5044632
next prev parent reply other threads:[~2003-11-14 4:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-10 14:07 Prasanna S Panchamukhi
2003-11-11 0:52 ` Matt Mackall
2003-11-14 4:57 ` Prasanna S Panchamukhi [this message]
2003-11-14 5:22 ` Prasanna S Panchamukhi
-- strict thread matches above, loose matches on Subject: below --
2003-11-10 13:54 Prasanna S Panchamukhi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031114045714.GB18584@in.ibm.com \
--to=prasanna@in.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lkcd-devel@lists.sourceforge.net \
--cc=mpm@selenic.com \
--cc=suparna@in.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®