]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Nov 2021 13:00:26 +0000 (13:00 +0000)
commit3b4b47816de437bc45bcc3da6cf258cd0a1a8a96
tree71ec1aff79ab9850043d6f2715c00f1d22c945f0
parentf8c0666ca03136b503853b0e4b823a0f1d113bd6
tun: fix bonding active backup with arp monitoring

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>
drivers/net/tun.c