Jason Wang edfb6a148c 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>
2013-01-23 13:47:06 -05:00
..
2012-12-03 11:16:10 -08:00
2012-07-24 13:54:16 -07:00
2012-12-15 17:14:38 -08:00
2012-08-03 20:32:31 -07:00
2012-11-01 12:38:31 -04:00
2012-11-28 11:39:22 -05:00
2012-12-03 11:17:06 -08:00
2012-12-15 17:14:38 -08:00
2012-10-02 14:37:31 -04:00
2013-01-17 16:40:35 -05:00
2012-10-01 18:39:45 -04:00
2013-01-23 13:47:06 -05:00
2013-01-03 01:58:13 -08:00