FW: [PATCH] af_packet: flush complete kernel cache in packet_sendmsg
chetan loke
loke.chetan at gmail.com
Fri Sep 2 10:00:16 EDT 2011
>
> This flushes the cache before and after accessing the mmapped packet
> buffer. It seems like the call to flush_dcache_page from inside
> __packet_get_status is not enough on Kirkwood (or ARM in general).
> + kw_extra_cache_flush();
> + rc = po->tx_ring.pg_vec ? tpacket_snd(po, msg) :
> + packet_snd(sock, msg, len);
> + kw_extra_cache_flush();
> + return rc;
> }
If a workaround is needed for mmap, then why not change tpacket_snd?
Also, is this workaround actually working for all the cases? Because
packet_get_status is not being touched in your patch.
Also, I don't see any changes for the Rx-path. Is that working ok?
Chetan Loke
More information about the linux-arm-kernel
mailing list