af-packet tpacket_rcv - why is status flushed before the packet-payload ...

From: chetan loke <hidden>
Date: 2011-06-24 15:20:36

Hi,

in tpacket_rcv() - this is the flushing sequence ...

1)
__packet_set_status(po, h.raw, status);

2)
smp_mb();

3)
#if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE == 1
flush-the-payload
#endif

Why is it done this way?

Shouldn't we be flushing the packet_status after flushing the payload?
So 1 and 3 should be swapped, no?

Chetan Loke
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help