[Top] [All Lists]

Re: tulip NAPI patch that works with 2.4.20-pre9 or so?

To: jamal <hadi@xxxxxxxxxx>
Subject: Re: tulip NAPI patch that works with 2.4.20-pre9 or so?
From: Ben Greear <greearb@xxxxxxxxxxxxxxx>
Date: Mon, 21 Oct 2002 23:07:33 -0700
Cc: Robert Olsson <Robert.Olsson@xxxxxxxxxxx>, "'netdev@xxxxxxxxxxx'" <netdev@xxxxxxxxxxx>
Organization: Candela Technologies
References: <Pine.GSO.4.30.0210210826440.17911-100000@xxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2a) Gecko/20020910
jamal wrote:

In addition to solve your skb problem pick Roberts latest
recycling patch at:
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;

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;

Otherwise, you race, and may delete an object that is still in use
somewhere up the stack.

Let me know if I'm nuts!


Ben Greear <greearb@xxxxxxxxxxxxxxx>       <Ben_Greear AT>
President of Candela Technologies Inc

<Prev in Thread] Current Thread [Next in Thread>