page_pool: use DMA_ATTR_SKIP_CPU_SYNC for DMA mappings
authorJesper Dangaard Brouer <brouer@redhat.com>
Wed, 13 Feb 2019 01:55:50 +0000 (02:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Feb 2019 06:00:16 +0000 (22:00 -0800)
commit13f16d9d4ab7fccc918aafb146ea043be9574d49
tree148c75447c7e21ea390e5cd357304d8c76c86fb0
parent1567b85eb8ad2d0fe8d77e50118e876df565d9c7
page_pool: use DMA_ATTR_SKIP_CPU_SYNC for DMA mappings

As pointed out by Alexander Duyck, the DMA mapping done in page_pool needs
to use the DMA attribute DMA_ATTR_SKIP_CPU_SYNC.

As the principle behind page_pool keeping the pages mapped is that the
driver takes over the DMA-sync steps.

Reported-by: Alexander Duyck <alexander.duyck@gmail.com>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/page_pool.c