diff options
author | Ashok Reddy Soma | 2020-02-23 08:01:29 -0700 |
---|---|---|
committer | Michal Simek | 2020-04-06 12:51:31 +0200 |
commit | 0f8defd8910ed1a64687f79507c8332b72844aee (patch) | |
tree | 041064db75ef8d09776dd244412c80c48ad79b2f /api | |
parent | f7c6ee7fe7bcc387de4c92300f46cb725b845b53 (diff) |
net: zynq_gem: Add cache flush to zynq_gem_free_pkt
Add cache flush to zynq_gem_free_pkt. This is necessary
because some net routines would modify this buffer in place.
The cache_invalidate in the zynq_gem_recv function would cause
the modifications to the buffer to overwrite the DMA from the GEM,
if cache coherency is not enabled in the GEM, the next time the
buffer is in use.
Flushing the cache when the buffer is no longer in use by the
net functions ensures that the GEM DMA is going to take place
into a clean buffer.
Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'api')
0 files changed, 0 insertions, 0 deletions