]> git.ipfire.org Git - thirdparty/u-boot.git/commit
zynq-gem: Use appropriate cache flush/invalidate for RX and TX
authorStefan Theil <stefan.theil@mixed-mode.de>
Mon, 17 Dec 2018 08:12:30 +0000 (09:12 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 9 Jan 2019 10:17:47 +0000 (11:17 +0100)
commit4a29139e68590a1b2d9d3e508d151b97ff3f1d43
treefbf3e193fcacad30cf415b9bddcc10985c350d47
parentf4db3653da7e72026977f6b3d86631eeeed8d7d6
zynq-gem: Use appropriate cache flush/invalidate for RX and TX

The cache was only flushed before *transmitting* packets, but not
when receiving them, leading to an issue where new packets were
handed to the receive handler with old contents in cache. This
only happens when a lot of packets are received without sending
packages every now and then. Also flushing the receive buffers
in the transmit function makes no sense and can be removed.

Signed-off-by: Stefan Theil <stefan.theil@mixed-mode.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/net/zynq_gem.c