xsk: Remove internal DMA headers
authorBjörn Töpel <bjorn.topel@intel.com>
Mon, 5 Oct 2020 09:05:25 +0000 (11:05 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 5 Oct 2020 13:48:00 +0000 (15:48 +0200)
Christoph Hellwig correctly pointed out [1] that the AF_XDP core was
pointlessly including internal headers. Let us remove those includes.

  [1] https://lore.kernel.org/bpf/20201005084341.GA3224@infradead.org/

Fixes: 1c1efc2af158 ("xsk: Create and free buffer pool independently from umem")
Reported-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/bpf/20201005090525.116689-1-bjorn.topel@gmail.com
net/xdp/xsk_buff_pool.c

index e63fadd000dba303145e832ba05545a6ec89149e..64c9e55d4d4e78c063520aceea6a4e4d6140a1b8 100644 (file)
@@ -3,9 +3,6 @@
 #include <net/xsk_buff_pool.h>
 #include <net/xdp_sock.h>
 #include <net/xdp_sock_drv.h>
-#include <linux/dma-direct.h>
-#include <linux/dma-noncoherent.h>
-#include <linux/swiotlb.h>
 
 #include "xsk_queue.h"
 #include "xdp_umem.h"