[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAAsGZS6Tt9FLXfanH1+DgKt_9gR_YPJ8kX_pryhnzWTQVkNkNw@mail.gmail.com>
Date: Fri, 2 Sep 2011 10:00:16 -0400
From: chetan loke <loke.chetan@...il.com>
To: phil.sutter@...rinet.com, linux-arm-kernel@...ts.infradead.org
Cc: netdev@...r.kernel.org, linux@....linux.org.uk, davem@...emloft.net
Subject: Re: FW: [PATCH] af_packet: flush complete kernel cache in packet_sendmsg
>
> 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
--
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