Skip to content
Commit d49ba9c8 authored by Valentine Barshak's avatar Valentine Barshak Committed by Marek Vasut
Browse files

net: sh_eth: Workaround cache issues



U-Boot writes to RX packets when constructing replies.
This can cause stale cached data to be written to RX
buffer while we're receiving a packet. This causes RX
packet corruption because we invalidate the cache right
before processing the packet. Invalidate packet buffer
cache when preparing RX descriptor as well. This seems
to fix RX packet drops with high RX traffic.

While at it flush the descriptors right before enabling
RX/TX in sh_eth_tx_desc_init/sh_eth_rx_desc_init callbacks
when they are ready instead of flushing after allocation.

Signed-off-by: default avatarValentine Barshak <valentine.barshak@cogentembedded.com>
Reviewed-by: default avatarMarek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: default avatarRamon Fried <rfried.dev@gmail.com>
parent 92c312c7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment