From: Ben Greear <greearb@candelatech.com>
To: jamal <hadi@cyberus.ca>
Cc: Robert Olsson <Robert.Olsson@data.slu.se>,
"'netdev@oss.sgi.com'" <netdev@oss.sgi.com>
Subject: Re: tulip NAPI patch that works with 2.4.20-pre9 or so?
Date: Mon, 21 Oct 2002 23:07:33 -0700 [thread overview]
Message-ID: <3DB4EB25.5050706@candelatech.com> (raw)
In-Reply-To: Pine.GSO.4.30.0210210826440.17911-100000@shell.cyberus.ca
jamal wrote:
> In addition to solve your skb problem pick Roberts latest
> recycling patch at:
> ftp://robur.slu.se/pub/Linux/net-development/skb_recycling/recycle12.pat
> The driver i pointed to above has skb-recycling built in.
Robert, I am porting the existing tulip + your napi patch to support
skb-recycling. (I realize someone has probably done that, but I
can't find it...Jamal's links are busted!)
In the help file, you suggest this at close:
for (i=0; i<NR_CPUS; i++) {
if(adapter->cnt[i]) {
current->state = TASK_INTERRUPTIBLE;
schedule_timeout(1);
}
}
I think the second if should probably be while, ie like this:
for (i=0; i<NR_CPUS; i++) {
while(adapter->cnt[i]) {
current->state = TASK_INTERRUPTIBLE;
schedule_timeout(1);
}
}
Otherwise, you race, and may delete an object that is still in use
somewhere up the stack.
Let me know if I'm nuts!
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com> <Ben_Greear AT excite.com>
President of Candela Technologies Inc http://www.candelatech.com
ScryMUD: http://scry.wanfear.com http://scry.wanfear.com/~greear
next prev parent reply other threads:[~2002-10-22 6:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-19 22:03 tulip NAPI patch that works with 2.4.20-pre9 or so? Ben Greear
2002-10-20 20:00 ` Robert Olsson
2002-10-20 22:44 ` Ben Greear
2002-10-21 5:45 ` Ben Greear
2002-10-21 12:49 ` jamal
2002-10-21 13:10 ` jamal
2002-10-21 18:37 ` Ben Greear
2002-10-23 0:54 ` jamal
2002-10-22 6:07 ` Ben Greear [this message]
2002-10-22 13:55 ` Robert Olsson
2002-10-22 16:56 ` Ben Greear
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=3DB4EB25.5050706@candelatech.com \
--to=greearb@candelatech.com \
--cc=Robert.Olsson@data.slu.se \
--cc=hadi@cyberus.ca \
--cc=netdev@oss.sgi.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;
as well as URLs for NNTP newsgroup(s).