tun: fix bonding active backup with arp monitoring
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Fri, 12 Nov 2021 07:56:03 +0000 (08:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Nov 2021 10:48:42 +0000 (11:48 +0100)
commitd81d5508c5b3502c91af195ed072048763c00b27
treef52f8df9f2df84240d7e34086fefc280fc4aee42
parent2fd8c48f0fe0183091cb4138ce28dda9e8a91fab
tun: fix bonding active backup with arp monitoring

commit a31d27fbed5d518734cb60956303eb15089a7634 upstream.

As stated in the bonding doc, trans_start must be set manually for drivers
using NETIF_F_LLTX:
 Drivers that use NETIF_F_LLTX flag must also update
 netdev_queue->trans_start. If they do not, then the ARP monitor will
 immediately fail any slaves using that driver, and those slaves will stay
 down.

Link: https://www.kernel.org/doc/html/v5.15/networking/bonding.html#arp-monitor-operation
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/tun.c