summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/6lowpan.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2017-04-11 22:21:02 +0300
committerMarcel Holtmann <marcel@holtmann.org>2017-04-12 22:02:41 +0200
commit814f1b243d2c63928f6aa72d66bec0e5fae2f4a9 (patch)
treea27514b0cf66d6d34ecdfa6f37ea99ece9b0a1b6 /net/bluetooth/6lowpan.c
parent8a505b7f39f7fb2d3a2b25bfaa2f18d2ce010eef (diff)
downloadlinux-stable-814f1b243d2c63928f6aa72d66bec0e5fae2f4a9.tar.gz
linux-stable-814f1b243d2c63928f6aa72d66bec0e5fae2f4a9.tar.bz2
linux-stable-814f1b243d2c63928f6aa72d66bec0e5fae2f4a9.zip
Bluetooth: 6lowpan: Set tx_queue_len to DEFAULT_TX_QUEUE_LEN
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>
Diffstat (limited to 'net/bluetooth/6lowpan.c')
-rw-r--r--net/bluetooth/6lowpan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c
index dc7fda307b15..a4deba6548fe 100644
--- a/net/bluetooth/6lowpan.c
+++ b/net/bluetooth/6lowpan.c
@@ -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;