Skip to contentSkip to conversation

NET: hamradio: Fix IP over bpq encapsulation.

PATCH Applied Ralf Baechle 2 participants 2 messages Jul 4, 2015 – Jul 8, 2015

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

PATCH 1/1 NET: hamradio: Fix IP over bpq encapsulation.

Since 1d5da757da860a6916adbf68b09e868062b4b3b8 (ax25: Stop using magic neighbour cache operations.) any attempt to transmit IP packets over a bpqether device will result in a message like "Dead loop on virtual device bpq0, fix it urgently!"

Fix suggested by Eric W. Biederman <[email protected]>.

---
 drivers/net/hamradio/bpqether.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/hamradio/bpqether.c +1 -0
index 63ff08a..5b54b18 100644
@@ -483,6 +483,7 @@ static void bpq_setup(struct net_device *dev)
 	memcpy(dev->dev_addr,  &ax25_defaddr, AX25_ADDR_LEN);
 
 	dev->flags      = 0;
+	dev->features	= NETIF_F_LLTX;	/* Allow recursion */
 
 #if defined(CONFIG_AX25) || defined(CONFIG_AX25_MODULE)
 	dev->header_ops      = &ax25_header_ops;
maintainer Applied
#1 lore raw

From: Ralf Baechle <[email protected]>
Date: Sat, 4 Jul 2015 11:22:30 +0200

Quoted 9 lines

Since 1d5da757da860a6916adbf68b09e868062b4b3b8 (ax25: Stop using magic neighbour cache operations.) any attempt to transmit IP packets over a bpqether device will result in a message like "Dead loop on virtual device bpq0, fix it urgently!"

Fix suggested by Eric W. Biederman <[email protected]>.

Applied, thanks Ralf.