Thread (13 messages) 13 messages, 5 authors, 2013-11-04

Re: [PATCH v2 net-next] net: extend net_device allocation to vmalloc()

From: David Miller <davem@davemloft.net>
Date: 2013-11-04 04:19:39

From: Eric Dumazet <redacted>
Date: Wed, 30 Oct 2013 13:10:44 -0700
From: Eric Dumazet <edumazet@google.com>

Joby Poriyath provided a xen-netback patch to reduce the size of
xenvif structure as some netdev allocation could fail under
memory pressure/fragmentation.

This patch is handling the problem at the core level, allowing
any netdev structures to use vmalloc() if kmalloc() failed.

As vmalloc() adds overhead on a critical network path, add __GFP_REPEAT
to kzalloc() flags to do this fallback only when really needed.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Joby Poriyath <redacted>
Cc: Ben Hutchings <redacted>
---
v2: change the Documentation to point to alloc_netdev_mqs()
    instead of kmalloc()/vzalloc(), from Ben
Looks good, applied, thanks Eric.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help