Re: af_packet.c flush_dcache_page

2007-11-01 Thread Evgeniy Polyakov
On Thu, Nov 01, 2007 at 05:10:32PM +0100, Patrick McHardy ([EMAIL PROTECTED]) wrote: > David Miller wrote: > >Instead of answering your questions, I'm going to show you > >how to avoid having to do any of this cache flushing crap :-) > > > >You can avoid having to flush anything as long as the vir

Re: af_packet.c flush_dcache_page

2007-11-01 Thread Patrick McHardy
David Miller wrote: Instead of answering your questions, I'm going to show you how to avoid having to do any of this cache flushing crap :-) You can avoid having to flush anything as long as the virtual addresses on the kernel side are modulo SHMLBA the virtual addresses on the userland side. W

Re: af_packet.c flush_dcache_page

2007-10-31 Thread David Miller
From: Patrick McHardy <[EMAIL PROTECTED]> Date: Wed, 31 Oct 2007 15:08:02 +0100 > I'm currently adding mmap support to af_netlink based on the > af_packet implementation and I'm wondering about this code in > tpacket_rcv(): > > h->tp_status = status; > smp_mb(); > > {

af_packet.c flush_dcache_page

2007-10-31 Thread Patrick McHardy
I'm currently adding mmap support to af_netlink based on the af_packet implementation and I'm wondering about this code in tpacket_rcv(): h->tp_status = status; smp_mb(); { struct page *p_start, *p_end; u8 *h_end = (u8 *)h + macoff + snaple