diff options
author | Eric Dumazet <edumazet@google.com> | 2013-06-20 01:15:51 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-23 23:56:55 -0700 |
commit | 60877a32bce00041528576e6b8df5abe9251fa73 (patch) | |
tree | c949fd23e9a57d33a1597db4ad100ac2227fa19b /net/bridge/br_multicast.c | |
parent | b0b02c77d7aa9ebeea5d4ea7e4f3fd745ad7f81c (diff) | |
download | op-kernel-dev-60877a32bce00041528576e6b8df5abe9251fa73.zip op-kernel-dev-60877a32bce00041528576e6b8df5abe9251fa73.tar.gz |
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 <edumazet@google.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_multicast.c')
0 files changed, 0 insertions, 0 deletions