tuntap: restore default qdisc
commit016adb7260f481168c03e09f785184d6d5278894
authorJason Wang <jasowang@redhat.com>
Fri, 8 Apr 2016 05:26:48 +0000 (8 13:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Apr 2016 19:52:45 +0000 (8 15:52 -0400)
tree68d381fe97997128bd4f758bcdd2e01e160a0eb4
parent94a57f1f8a9de90ab4b0f8748361ff8be706c80c
tuntap: restore default qdisc

After commit f84bb1eac027 ("net: fix IFF_NO_QUEUE for drivers using
alloc_netdev"), default qdisc was changed to noqueue because
tuntap does not set tx_queue_len during .setup(). This patch restores
default qdisc by setting tx_queue_len in tun_setup().

Fixes: f84bb1eac027 ("net: fix IFF_NO_QUEUE for drivers using alloc_netdev")
Cc: Phil Sutter <phil@nwl.cc>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c