kernel_optimize_test/net/xdp
Ivan Malov 5561bddd05 xsk: Clear page contiguity bit when unmapping pool
[ Upstream commit 512d1999b8e94a5d43fba3afc73e774849674742 ]

When a XSK pool gets mapped, xp_check_dma_contiguity() adds bit 0x1
to pages' DMA addresses that go in ascending order and at 4K stride.

The problem is that the bit does not get cleared before doing unmap.
As a result, a lot of warnings from iommu_dma_unmap_page() are seen
in dmesg, which indicates that lookups by iommu_iova_to_phys() fail.

Fixes: 2b43470add ("xsk: Introduce AF_XDP buffer allocation API")
Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Magnus Karlsson <magnus.karlsson@intel.com>
Link: https://lore.kernel.org/bpf/20220628091848.534803-1-ivan.malov@oktetlabs.ru
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-07-12 16:32:21 +02:00
..
Kconfig
Makefile
xdp_umem.c
xdp_umem.h
xsk_buff_pool.c xsk: Clear page contiguity bit when unmapping pool 2022-07-12 16:32:21 +02:00
xsk_diag.c
xsk_queue.c
xsk_queue.h xsk: Fix broken Tx ring validation 2021-07-14 16:56:23 +02:00
xsk.c Revert "xsk: Do not sleep in poll() when need_wakeup set" 2021-12-22 09:30:59 +01:00
xsk.h
xskmap.c