aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gallatin <gallatin@FreeBSD.org>2025-07-12 22:35:29 +0000
committerAndrew Gallatin <gallatin@FreeBSD.org>2025-07-26 20:07:37 +0000
commit83a352bcac0a72feb04e441b5a54ad7f63f9922a (patch)
treea7555b4140d73eddf1289866a5f0ff50c20ecb20
parenta04e1adff054e0bb644759b39b54d4c172655801 (diff)
lagg: Fix if_hw_tsomax_update() not being called
In a mixed lagg, its likely that ifcaps or hwassist may not match between members. If this is true, the logical OR will be short-circuited and if_hw_tsomax_update() will not be called. Fix this by calling it inside the body of the if as well Sponsored by: Netflix (cherry picked from commit 78bdaa57cfbac759a6d79ecad2fae570e294a4b3)
-rw-r--r--sys/net/if_lagg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/if_lagg.c b/sys/net/if_lagg.c
index f226ce11ca37..b7b41ee22434 100644
--- a/sys/net/if_lagg.c
+++ b/sys/net/if_lagg.c
@@ -714,6 +714,7 @@ lagg_capabilities(struct lagg_softc *sc)
sc->sc_ifp->if_capenable = ena;
sc->sc_ifp->if_capenable2 = ena2;
sc->sc_ifp->if_hwassist = hwa;
+ (void)if_hw_tsomax_update(sc->sc_ifp, &hw_tsomax);
getmicrotime(&sc->sc_ifp->if_lastchange);
if (sc->sc_ifflags & IFF_DEBUG)