Skip to contentSkip to conversation

Bluetooth: 6lowpan: Fix multi-link setup

PATCH Michael Scott 2 participants 2 messages Dec 7, 2017 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi Luiz (and linux-bluetooth),

Quoted 18 lines · Luiz Augusto von Dentz

/From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>/ //
/If there are more than one node connected and there isn't any route/ /information attempt to check if destination address matches any of/ /the/
/link-local peer addresses./
//
/Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>/ /---/
/net/bluetooth/6lowpan.c | 2 +-/
/1 file changed, 1 insertion(+), 1 deletion(-)/
//
/diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c/ /index 4e2576fc0c59..55370c330386 100644/
/--- a/net/bluetooth/6lowpan.c/
/+++ b/net/bluetooth/6lowpan.c/
/@@ -190,7 +190,7 @@ static inline struct lowpan_peer/ /*peer_lookup_dst(struct lowpan_btle_dev *dev,/

Quoted 8 lines

/nexthop = &lowpan_cb(skb)->gw;/
//
/if (ipv6_addr_any(nexthop))/
/- return NULL;/
/+ nexthop = daddr;/
/} else {/
/nexthop = rt6_nexthop(rt, daddr);/
//

Was there any plan to bring this into the longterm 4.14 tree?  I saw that Jukka ACKed the patch.

Using 4.14, connecting more than 1 node via 6lowpan is completely broken.  This fairly simple patch restores connectivity for multiple 6lowpan devices.

Question: Are there any hidden downsides to using this patch?

- Mike

#1 lore raw

Hi Michael,

Quoted 32 lines · Michael Scott

Hi Luiz (and linux-bluetooth),

Quoted 19 lines · Luiz Augusto von Dentz

/From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>/ //
/If there are more than one node connected and there isn't any route/ /information attempt to check if destination address matches any of/ /the/
/link-local peer addresses./
//
/Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>/ /---/
/net/bluetooth/6lowpan.c | 2 +-/
/1 file changed, 1 insertion(+), 1 deletion(-)/
//
/diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c/ /index 4e2576fc0c59..55370c330386 100644/
/--- a/net/bluetooth/6lowpan.c/
/+++ b/net/bluetooth/6lowpan.c/
/@@ -190,7 +190,7 @@ static inline struct lowpan_peer/ /*peer_lookup_dst(struct lowpan_btle_dev *dev,/

Quoted 8 lines

/nexthop = &lowpan_cb(skb)->gw;/
//
/if (ipv6_addr_any(nexthop))/
/- return NULL;/
/+ nexthop = daddr;/
/} else {/
/nexthop = rt6_nexthop(rt, daddr);/
//

Quoted 7 lines

Was there any plan to bring this into the longterm 4.14 tree? I saw that Jukka ACKed the patch.

Using 4.14, connecting more than 1 node via 6lowpan is completely broken. This fairly simple patch restores connectivity for multiple 6lowpan devices.

Question: Are there any hidden downsides to using this patch?

No really, we are just going to deprecated the debugfs interface thus this got deprioritized, but perhaps we should apply one last fix before moving on.

Signature · 1 line
Luiz Augusto von Dentz