The page_pool API is using page->private to store DMA addresses. As pointed out by David Miller we can't use that on 32-bit architectures with 64-bit DMA This patch adds a new dma_addr_t struct to allow storing DMA addresses
Unified · Split
| @@ -95,6 +95,13 @@ struct page { · 94 unmodified lines | |||
| 95 | */ | 95 | */ |
| 96 | unsigned long private; | 96 | unsigned long private; |
| 97 | }; | 97 | }; |
| 98 | struct { /* page_pool used by netstack */ | ||
| 99 | /** | ||
| 100 | * @dma_addr: might require a 64-bit value even on | ||
| 101 | * 32-bit architectures. | ||
| 102 | */ | ||
| 103 | dma_addr_t dma_addr; | ||
| 104 | }; | ||
| 98 | struct { /* slab, slob and slub */ | 105 | struct { /* slab, slob and slub */ |
| 99 | union { | 106 | union { |
| 100 | struct list_head slab_list; /* uses lru */ | 107 | struct list_head slab_list; /* uses lru */ |