public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* tpacket_rcv
@ 2007-03-21  7:59 Miao Qingjun
  0 siblings, 0 replies; only message in thread
From: Miao Qingjun @ 2007-03-21  7:59 UTC (permalink / raw)
  To: linux-kernel

Hi,

Can anybody explain what the following code does and why needs it??

Thanks

tpacket_rcv()
{
....
h->tp_status = status;
smp_mb();

{
struct page *p_start, *p_end;
u8 *h_end = (u8 *)h + macoff + snaplen - 1;

p_start = virt_to_page(h);
p_end = virt_to_page(h_end);
while (p_start <= p_end) {
flush_dcache_page(p_start);
p_start++;
}
}

sk->sk_data_ready(sk, 0);
...
}


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-03-21  8:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-21  7:59 tpacket_rcv Miao Qingjun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox