Re: [PATCH] NET: Multiqueue network device support.
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2007-06-09 11:09:19
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2007-06-09 11:09:19
On Fri, Jun 08, 2007 at 09:12:52AM -0400, jamal wrote:
To mimick that behavior in LLTX, a driver needs to use the same lock on both tx and receive. e1000 holds a different lock on tx path from rx path. Maybe theres something clever i am missing; but it seems to be a bug on e1000.
It's both actually :) It takes the tx_lock in the xmit routine as well as in the clean-up routine. However, the lock is only taken when it updates the queue status. Thanks to the ring buffer structure the rest of the clean-up/xmit code will run concurrently just fine. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} [off-list ref] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt