Eric Dumazet 74d332c13b net: extend net_device allocation to vmalloc()
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 <joby.poriyath@citrix.com>
Cc: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-11-03 23:19:00 -05:00
..
2013-10-18 13:56:07 -04:00
2013-10-14 11:29:31 +02:00
2013-10-30 17:18:46 -04:00
2013-09-23 16:52:45 -04:00
2013-09-03 22:34:47 -04:00
2013-10-19 19:36:19 -04:00
2013-08-14 01:13:40 +02:00
2013-09-13 15:09:52 +02:00
2013-05-27 22:50:59 -07:00