[net] protecting interfaces from races between control and data ?
Tim Kientzle
tim at kientzle.com
Thu Aug 8 03:40:24 UTC 2013
On Aug 6, 2013, at 9:43 AM, Andre Oppermann wrote:
> The driver supplies a TX frame transmit function (mostly like if_transmit
> today) which does all locking and multi-queue handling internally (driver
> owned. This gives driver writers the freedom to better adjust to different
> hardware communication methods as they become available, like we witnessed
> a couple of times in the past.
How would you handle TX dequeue?
I'm curious because I got a nice speedup with cpsw
by not using the TX interrupt at all: I just dequeued
completed packets at the end of the TX transmit
function.
I suppose this would still work with your scheme.
Tim
More information about the freebsd-current
mailing list