net: page_pool: don't use page->private to store dma_addr_t
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Wed, 13 Feb 2019 01:55:45 +0000 (02:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Feb 2019 06:00:16 +0000 (22:00 -0800)
commit1567b85eb8ad2d0fe8d77e50118e876df565d9c7
treed7357f5cf9befd591a7fc17bf120a4210d040eac
parentc25fff7171bebb76243ccc77f0f04aafa3db87be
net: page_pool: don't use page->private to store dma_addr_t

As pointed out by David Miller the current page_pool implementation
stores dma_addr_t in page->private.
This won't work on 32-bit platforms with 64-bit DMA addresses since the
page->private is an unsigned long and the dma_addr_t a u64.

A previous patch is adding dma_addr_t on struct page to accommodate this.
This patch adapts the page_pool related functions to use the newly added
struct for storing and retrieving DMA addresses from network drivers.

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