Bluetooth: 6lowpan: Set tx_queue_len to DEFAULT_TX_QUEUE_LEN
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 11 Apr 2017 19:21:02 +0000 (22:21 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 12 Apr 2017 20:02:41 +0000 (22:02 +0200)
Make netdev queue packets if we run out of credits.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Acked-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/6lowpan.c

index dc7fda307b158611061f5ece22bd92464e52ea4f..a4deba6548fe7c657144ff001774b0f6c7b1b5a4 100644 (file)
@@ -20,6 +20,7 @@
 #include <net/ipv6.h>
 #include <net/ip6_route.h>
 #include <net/addrconf.h>
+#include <net/pkt_sched.h>
 
 #include <net/bluetooth/bluetooth.h>
 #include <net/bluetooth/hci_core.h>
@@ -594,6 +595,7 @@ static void netdev_setup(struct net_device *dev)
        dev->flags              = IFF_RUNNING | IFF_POINTOPOINT |
                                  IFF_MULTICAST;
        dev->watchdog_timeo     = 0;
+       dev->tx_queue_len       = DEFAULT_TX_QUEUE_LEN;
 
        dev->netdev_ops         = &netdev_ops;
        dev->header_ops         = &header_ops;