Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <ebiederm@xmission.com>.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Cc: <stable@vger.kernel.org> # 4.1
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Ralf Baechle and committed by
David S. Miller
aa43c5ff 32f675bb

+1
+1
drivers/net/hamradio/bpqether.c
··· 482 482 memcpy(dev->dev_addr, &ax25_defaddr, AX25_ADDR_LEN); 483 483 484 484 dev->flags = 0; 485 + dev->features = NETIF_F_LLTX; /* Allow recursion */ 485 486 486 487 #if defined(CONFIG_AX25) || defined(CONFIG_AX25_MODULE) 487 488 dev->header_ops = &ax25_header_ops;