[RFC PATCH 6/6] net: use kvmalloc with __GFP_REPEAT rather than open coded variant

2017-01-12 Thread Michal Hocko
From: Michal Hocko fq_alloc_node, alloc_netdev_mqs and netif_alloc* open code kmalloc with vmalloc fallback. Use the kvmalloc variant instead. Keep the __GFP_REPEAT flag based on explanation from Eric: " At the time, tests on the hardware I had in my labs showed that vmalloc()

[RFC PATCH 6/6] net: use kvmalloc with __GFP_REPEAT rather than open coded variant

2017-01-12 Thread Michal Hocko
From: Michal Hocko fq_alloc_node, alloc_netdev_mqs and netif_alloc* open code kmalloc with vmalloc fallback. Use the kvmalloc variant instead. Keep the __GFP_REPEAT flag based on explanation from Eric: " At the time, tests on the hardware I had in my labs showed that vmalloc() could deliver