]> git.baikalelectronics.ru Git - kernel.git/commit
veth: Add updating of trans_start
authorJay Vosburgh <jay.vosburgh@canonical.com>
Thu, 16 Jun 2022 19:26:30 +0000 (12:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jun 2022 10:38:09 +0000 (11:38 +0100)
commite66e257a5d8368d9c0ba13d4630f474436533e8b
tree4c75e70f1c382af77a2d962e11680e08b102d474
parentcc26c2661fefea215f41edb665193324a5f99021
veth: Add updating of trans_start

Since commit 21a75f0915dd ("bonding: Fix ARP monitor validation"),
the bonding ARP / ND link monitors depend on the trans_start time to
determine link availability.  NETIF_F_LLTX drivers must update trans_start
directly, which veth does not do.  This prevents use of the ARP or ND link
monitors with veth interfaces in a bond.

Resolve this by having veth_xmit update the trans_start time.

Reported-by: Jonathan Toppins <jtoppins@redhat.com>
Tested-by: Jonathan Toppins <jtoppins@redhat.com>
Signed-off-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Fixes: 21a75f0915dd ("bonding: Fix ARP monitor validation")
Link: https://lore.kernel.org/netdev/b2fd4147-8f50-bebd-963a-1a3e8d1d9715@redhat.com/
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/veth.c