Merge "net: support __netdev_alloc_frag to always use GFP_DMA"
This commit is contained in:
commit
d42f45ccce
1 changed files with 3 additions and 0 deletions
|
@ -361,6 +361,9 @@ static void *__netdev_alloc_frag(unsigned int fragsz, gfp_t gfp_mask)
|
|||
unsigned long flags;
|
||||
void *data;
|
||||
|
||||
if (IS_ENABLED(CONFIG_FORCE_ALLOC_FROM_DMA_ZONE))
|
||||
gfp_mask |= GFP_DMA;
|
||||
|
||||
local_irq_save(flags);
|
||||
nc = this_cpu_ptr(&netdev_alloc_cache);
|
||||
data = __alloc_page_frag(nc, fragsz, gfp_mask);
|
||||
|
|
Loading…
Add table
Reference in a new issue