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)
This commit is contained in:
Andrew Gallatin 2025-07-12 18:35:29 -04:00 committed by Franco Fichtner
parent 605df6a3ae
commit 00aae357b5

View file

@ -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)