Skip to contentSkip to conversation

ieee802154: 6lowpan: set IFF_NO_QUEUE

PATCH In review Alexander Aring 2 participants 2 messages Feb 12, 2018 – Feb 14, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ieee802154: 6lowpan: set IFF_NO_QUEUE

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.

---
 net/ieee802154/6lowpan/core.c | 1 +
 1 file changed, 1 insertion(+)
net/ieee802154/6lowpan/core.c +1 -0
index 974765b7d92a..e4f305320519 100644
@@ -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;
Signature · 1 line
2.11.0
#1 lore raw

Hello.

Quoted 16 lines · Alexander Aring

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.

---
 net/ieee802154/6lowpan/core.c | 1 +
 1 file changed, 1 insertion(+)
net/ieee802154/6lowpan/core.c +0 -0
index 974765b7d92a..e4f305320519 100644

net/ieee802154/6lowpan/core.c static void lowpan_setup(struct net_device *ldev) · line 110

Quoted 7 lines
net/ieee802154/6lowpan/core.c +1 -0
@@ -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;

This patch has been applied to the wpan-next tree and will be part of the next pull request to net-next. Thanks!

regards
Stefan Schmidt