]> git.baikalelectronics.ru Git - kernel.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)
commit381d47cc084fd0c872627bcf2ac35925a87d313c
tree15119a636a1ac9a92e9b8a2ea2a486ad52c0144b
parent296f9074b551a1a26aebbbbe5310c0bee9cce53f
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