]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
xsk: Use dma_need_sync instead of reimplenting it
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Jun 2020 13:03:59 +0000 (15:03 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 30 Jun 2020 13:44:03 +0000 (15:44 +0200)
commit7e0245753f1794f17de472dcf4694fa5ed527384
tree15119a636a1ac9a92e9b8a2ea2a486ad52c0144b
parent53937ff7bc776aac647d0b3004d7cd21861b0f78
xsk: Use dma_need_sync instead of reimplenting it

Use the dma_need_sync helper instead of (not always entirely correctly)
poking into the dma-mapping internals.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200629130359.2690853-5-hch@lst.de
net/xdp/xsk_buff_pool.c