summaryrefslogtreecommitdiffstats
path: root/virt/kvm/kvm_main.c
diff options
context:
space:
mode:
authorJason Wang2013-01-23 04:59:12 +0100
committerDavid S. Miller2013-01-23 19:47:06 +0100
commitedfb6a148ce62e5e19354a1dcd9a34e00815c2a1 (patch)
tree839be5ca970b47e5b5fa38c9df3e672732ef6987 /virt/kvm/kvm_main.c
parentnet: cdc_mbim: send ZLP only for the specific buggy device (diff)
downloadkernel-qcow2-linux-edfb6a148ce62e5e19354a1dcd9a34e00815c2a1.tar.gz
kernel-qcow2-linux-edfb6a148ce62e5e19354a1dcd9a34e00815c2a1.tar.xz
kernel-qcow2-linux-edfb6a148ce62e5e19354a1dcd9a34e00815c2a1.zip
tuntap: reduce memory using of queues
A MAX_TAP_QUEUES(1024) queues of tuntap device is always allocated unconditionally even userspace only requires a single queue device. This is unnecessary and will lead a very high order of page allocation when has a high possibility to fail. Solving this by creating a one queue net device when userspace only use one queue and also reduce MAX_TAP_QUEUES to DEFAULT_MAX_NUM_RSS_QUEUES which can guarantee the success of the allocation. Reported-by: Dirk Hohndel <dirk@hohndel.org> Cc: Eric Dumazet <eric.dumazet@gmail.com> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'virt/kvm/kvm_main.c')
0 files changed, 0 insertions, 0 deletions