[<prev] [next>] [day] [month] [year] [list]
Message-ID: <BANLkTikjntd2Da_gScrpGb3n1-jzj+04Bg@mail.gmail.com>
Date: Fri, 24 Jun 2011 11:20:35 -0400
From: chetan loke <loke.chetan@...il.com>
To: netdev@...r.kernel.org
Subject: af-packet tpacket_rcv - why is status flushed before the
packet-payload ...
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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists