[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <463F4557.9030901@roinet.com>
Date: Mon, 07 May 2007 11:27:19 -0400
From: David Acker <dacker@...net.com>
To: Milton Miller <miltonm@....com>
CC: Auke Kok <auke-jan.h.kok@...el.com>,
e1000-devel@...ts.sourceforge.net,
Jeff Kirsher <jeffrey.t.kirsher@...el.com>,
John Ronciak <john.ronciak@...el.com>,
Jesse Brandeburg <jesse.brandeburg@...el.com>,
Scott Feldman <sfeldma@...ox.com>, netdev@...r.kernel.org
Subject: Re: [PATCH] e100 rx: or s and el bits
Milton Miller wrote:
> While this will help the problem with the cache-incoherent DMA systems
> not running, it guarantees the hardware will stop every <ring-size>
> packets and wait for the cpu to respond to an interrupt. It would seem
> that this will lead to packet drops.
>
Well, in NAPI mode, we the CPU may poll its way to the last buffer
without having to go through an interrupt cycle. You are right that
buffers would probably get dropped between the time the hardware hit the
S-bit and the CPU caught up.
> [download manual from site in source file]
>
> In fact 6.4.3.4 says 82557 will start dropping frames immediately.
>
> Looking at the descriptions around page 101:
> (1) The link pointer, S, and EL is read when hw starts recieving the frame.
> (2) Its pretty clear EL overrides S from the order of the descriptions
> in the text.
My testing confirms this.
> (3) 6.4.3.3.1 #4 looks intresting -- That is a RFD with size 0 skips
> frame fill and goes to the next packet.
>
> How about putting a zero length descriptor in consistent memory to
> suspend the rx unit before the last real frame? In other words fr0 ->
> fr1 ... frN-2 -> frN-1 -> WaitHere0 -> FrN. We could then have 2 such
> frames, and when we refill modify FrN to the new chain, with the
> WaitHere1 as its next-to-last, do the syncs, then clear the S bit on
> WaitHere0. When the rx passes WaitHere0 we can reclaim it for the next
> use (might want a slightly larger pool, basically need RxRingSize /
> RxRingFillBatch such frames.
Hmm...I will take a look at this. My test worked over the weekend by
the way. A patch will be coming.
-Ack
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists