]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
ieee802154: 6lowpan: set IFF_NO_QUEUE
authorAlexander Aring <aring@mojatatu.com>
Mon, 12 Feb 2018 03:50:46 +0000 (22:50 -0500)
committerStefan Schmidt <stefan@osg.samsung.com>
Wed, 14 Feb 2018 15:21:27 +0000 (16:21 +0100)
This patch sets the IFF_NO_QUEUE for IEEE 802.15.4 6lowpan interfaces. As
commit 24dcbf662205 ("6lowpan: Don't set IFF_NO_QUEUE") removes it for
"reasons" from the bluetooth 6lowpan subsystem. In IEEE 802.15.4 the lower
interface deals with one qdisc for the real hardware, 6LoWPAN does the
protocol adaption only and no second queuing on top.

Signed-off-by: Alexander Aring <aring@mojatatu.com>
Signed-off-by: Stefan Schmidt <stefan@osg.samsung.com>
net/ieee802154/6lowpan/core.c

index 974765b7d92a75546fe5ae5dbc332078a54f627a..e4f3053205199051373ce34bf486bdce051c79da 100644 (file)
@@ -104,6 +104,7 @@ static void lowpan_setup(struct net_device *ldev)
        /* We need an ipv6hdr as minimum len when calling xmit */
        ldev->hard_header_len   = sizeof(struct ipv6hdr);
        ldev->flags             = IFF_BROADCAST | IFF_MULTICAST;
+       ldev->priv_flags        |= IFF_NO_QUEUE;
 
        ldev->netdev_ops        = &lowpan_netdev_ops;
        ldev->header_ops        = &lowpan_header_ops;