From: Eric Dumazet Date: Thu, 20 Jun 2013 08:15:51 +0000 (-0700) Subject: net: allow large number of tx queues X-Git-Tag: v3.11-rc1~64^2~171 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60877a32bce00041528576e6b8df5abe9251fa73;p=pandora-kernel.git net: allow large number of tx queues netif_alloc_netdev_queues() uses kcalloc() to allocate memory for the "struct netdev_queue *_tx" array. For large number of tx queues, kcalloc() might fail, so this patch does a fallback to vzalloc(). 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 Acked-by: Michael S. Tsirkin Signed-off-by: David S. Miller --- Reading git-diff-tree failed