Date: Sat, 26 Jul 2025 20:41:51 GMT From: Andrew Gallatin <gallatin@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 83a352bcac0a - stable/14 - lagg: Fix if_hw_tsomax_update() not being called Message-ID: <202507262041.56QKfpU3075746@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by gallatin: URL: https://cgit.FreeBSD.org/src/commit/?id=83a352bcac0a72feb04e441b5a54ad7f63f9922a commit 83a352bcac0a72feb04e441b5a54ad7f63f9922a Author: Andrew Gallatin <gallatin@FreeBSD.org> AuthorDate: 2025-07-12 22:35:29 +0000 Commit: Andrew Gallatin <gallatin@FreeBSD.org> CommitDate: 2025-07-26 20:07:37 +0000 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) --- sys/net/if_lagg.c | 1 + 1 file changed, 1 insertion(+) 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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202507262041.56QKfpU3075746>