The branch main has been updated by gallatin:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=78bdaa57cfbac759a6d79ecad2fae570e294a4b3

commit 78bdaa57cfbac759a6d79ecad2fae570e294a4b3
Author:     Andrew Gallatin <galla...@freebsd.org>
AuthorDate: 2025-07-12 22:35:29 +0000
Commit:     Andrew Gallatin <galla...@freebsd.org>
CommitDate: 2025-07-12 22:35:29 +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
    MFC after: 2 weeks
---
 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 9867a718e148..5b52bfa80e3b 100644
--- a/sys/net/if_lagg.c
+++ b/sys/net/if_lagg.c
@@ -718,6 +718,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)

Reply via email to