From patchwork Tue Apr 11 19:21:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Augusto von Dentz X-Patchwork-Id: 9676007 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E760360383 for ; Tue, 11 Apr 2017 19:21:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D80C32856C for ; Tue, 11 Apr 2017 19:21:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CCB912859E; Tue, 11 Apr 2017 19:21:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 83C73285A2 for ; Tue, 11 Apr 2017 19:21:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753227AbdDKTVP (ORCPT ); Tue, 11 Apr 2017 15:21:15 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:34351 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753388AbdDKTVM (ORCPT ); Tue, 11 Apr 2017 15:21:12 -0400 Received: by mail-lf0-f68.google.com with SMTP id x72so808711lfb.1; Tue, 11 Apr 2017 12:21:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=AYHApB5OGbfThE6qX1O2JqbWZQvBnGF74DH2BileaXc=; b=rTSBXn+zDOk5ZhJK/+KDkUPzvhS/Q86dXJsKyJKdnX7fRNYeP4uDBVnIayyITenMQU nHzxxHCGErh+/MsVyR/wW3h957iT5zWnljVB9lW90iFRKS1lk7PX0DmtvCufXPKUpPsJ G3oa2ao8vc0Wmf7xoQ5qGWLfZeMbh906k1N43yTQieDdVbyYbBOGhgVystyW6yNbdg+R 71hivyktqzxwNUJfisuhfzr58XVL0Av65pL7uE/54NRBDdH8ZFzlyYiYc2FLK7Wmwcr4 yQQIvbfhD7Cxzky6sK0W9SOd9XUj2mj1hlIeuE8MV1TkDnObk+zeXgLc8wRURot3Dovw Oguw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=AYHApB5OGbfThE6qX1O2JqbWZQvBnGF74DH2BileaXc=; b=jjh3F5QGDVeura5ZrkmoswMweq5wIbqOcNB7ZmST2Eoc3upfus1XEiikVXr9AQN13W h1pzmGidOv2x/+6eKJrHwmI+yxucZ1i+CuSeMSQ7rD1aVCkQd+dVjmta9kPgun1VPzAR 9UXBvGT6RmiVLnFEVEWzFheJpmhjDJBRkRmoa3KGXVJJsXAh9vXZ9We86cZILZtFbjO1 Aeh3VEq4roFWw8/HXjGyMR/1NOAPTJkCjWbkV1xNg1eoiCi9d7yl+41F/IXNgdkSzSGA W0Bbz0GR+QzI6uc/Mmm/B6h4p2EsnxG7gVzHK/QvXL3SmC1EN1XFHklt/GXjCC2KDn2f Lo2A== X-Gm-Message-State: AFeK/H2dVT/djDkDKyUd3qZZx3sEqs/NYUZQG+1fPCjqS1JhjIakv4GupPB7hjGUS+eCvA== X-Received: by 10.25.79.15 with SMTP id d15mr17383837lfb.14.1491938470461; Tue, 11 Apr 2017 12:21:10 -0700 (PDT) Received: from vudentzs-t460s.pp.htv.fi (89-27-7-11.bb.dnainternet.fi. [89.27.7.11]) by smtp.gmail.com with ESMTPSA id c1sm3604962lfc.55.2017.04.11.12.21.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Apr 2017 12:21:09 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Cc: patrik.flykt@linux.intel.com, aar@pengutronix.de, jukka.rissanen@linux.intel.com, linux-wpan@vger.kernel.org Subject: [PATCH 5/6] Bluetooth: 6lowpan: Set tx_queue_len to DEFAULT_TX_QUEUE_LEN Date: Tue, 11 Apr 2017 22:21:02 +0300 Message-Id: <20170411192103.3209-5-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170411192103.3209-1-luiz.dentz@gmail.com> References: <20170411192103.3209-1-luiz.dentz@gmail.com> Sender: linux-wpan-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wpan@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Luiz Augusto von Dentz Make netdev queue packets if we run out of credits. Signed-off-by: Luiz Augusto von Dentz Acked-by: Jukka Rissanen --- net/bluetooth/6lowpan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c index dc7fda3..a4deba6 100644 --- a/net/bluetooth/6lowpan.c +++ b/net/bluetooth/6lowpan.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include @@ -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;