]> 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)
commite3ffb09c3e5fb16325e6f1ca4b6e4042ee29cf20
tree4c75e70f1c382af77a2d962e11680e08b102d474
parent28da27490b341783b842626b6008cb0ff048389b
veth: Add updating of trans_start

Since commit 498cdc52061f ("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: 498cdc52061f ("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