Skip to contentSkip to conversation

tpacket_rcv

DISCUSSION Miao Qingjun 1 participant 1 message Mar 21, 2007

lore
Share & tools
lore
#0 lore raw

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);
...
}