Merge "net: support __netdev_alloc_frag to always use GFP_DMA"

This commit is contained in:
Linux Build Service Account 2017-02-10 15:47:10 -08:00 committed by Gerrit - the friendly Code Review server
commit d42f45ccce

View file

@ -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);