aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorIvan Malov <[email protected]>2022-06-28 12:18:48 +0300
committerDaniel Borkmann <[email protected]>2022-06-28 22:49:04 +0200
commit512d1999b8e94a5d43fba3afc73e774849674742 (patch)
tree1620d5c2ea2fa738a2e8ad3041e234e54e05469f /lib/netdev-notifier-error-inject.c
parent32df6fe110c443763d6749a758f33a7117ec1270 (diff)
xsk: Clear page contiguity bit when unmapping pool
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: 2b43470add8c ("xsk: Introduce AF_XDP buffer allocation API") Signed-off-by: Ivan Malov <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Magnus Karlsson <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions