From: Eric Dumazet Date: Wed, 30 Oct 2013 20:10:44 +0000 (-0700) Subject: net: extend net_device allocation to vmalloc() X-Git-Tag: v3.13-rc1~105^2~75 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74d332c13b2148ae934ea94dac1745ae92efe8e5;p=pandora-kernel.git 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 Reported-by: Joby Poriyath Cc: Ben Hutchings Signed-off-by: David S. Miller --- Reading git-diff-tree failed