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>
Thu, 24 Jan 2019 09:03:42 +0000 (10:03 +0100)
commit10598580612cbaee2298bddd77e9a51df5a2943d
tree2d7a791fc89552ac221525a97c56fddbd09db0c9
parent0bf3f9cb2722e57a0afb37cb61af5ceaefcf70e0
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