[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7e0dd21a0904211400l3c9e78e9v70b684702eef89d5@mail.gmail.com>
Date: Tue, 21 Apr 2009 23:00:51 +0200
From: Johann Baudy <johann.baudy@...-log.net>
To: Christoph Lameter <cl@...ux.com>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] TX_RING and packet mmap
> Duh. So I cannot concurrently operate with multiple threads on the
> structure.
Except if you can ensure that multiple threads will not use the same buffer.
> The kernel synchronizes with itself via the socket?
Not sure to understand?
Both below rules + cache/mem flushing synchronize User and Kernel spaces
TP_STATUS_KERNEL => TP_STATUS_SEND_REQUEST: only performed by user.
TP_STATUS_SENDING => TP_STATUS_KERNEL only performed by kernel.
--
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