Subject: Re: [PATCH] Packet socket: mmapped IO: PACKET_TX_RING

From: Patrick McHardy <[email-masked]>
Date: Wed, 05 Nov 2008 12:02:21 +0100

Johann Baudy wrote:
> I would like to integrate this barrier mechanism in __packet_[set|
> get]_status() function. Thoughts?

The reason why its not in there is to avoid the unnecessary
barrier when setting up the ring in packet_set_ring().

The code is fishy though, I agree. Have a look at this discussion:

http://marc.info/?l=linux-netdev&m=119383985207984&w=2