From af3a8d21c87b424ba0e43fbcdc2e9229d5be3a89 Mon Sep 17 00:00:00 2001 From: thompsa Date: Tue, 16 Dec 2008 22:16:34 +0000 Subject: Also propagate the if_hwassist value to the parent so that cksum offload works. Submitted by: Tom Hicks (thicks_averesys.com) --- sys/net/if_lagg.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/net/if_lagg.c b/sys/net/if_lagg.c index be6e0b8..06543bb 100644 --- a/sys/net/if_lagg.c +++ b/sys/net/if_lagg.c @@ -310,6 +310,7 @@ lagg_capabilities(struct lagg_softc *sc) { struct lagg_port *lp; int cap = ~0, ena = ~0; + u_long hwa = ~0UL; LAGG_WLOCK_ASSERT(sc); @@ -317,14 +318,18 @@ lagg_capabilities(struct lagg_softc *sc) SLIST_FOREACH(lp, &sc->sc_ports, lp_entries) { cap &= lp->lp_ifp->if_capabilities; ena &= lp->lp_ifp->if_capenable; + hwa &= lp->lp_ifp->if_hwassist; } cap = (cap == ~0 ? 0 : cap); ena = (ena == ~0 ? 0 : ena); + hwa = (hwa == ~0 ? 0 : hwa); if (sc->sc_ifp->if_capabilities != cap || - sc->sc_ifp->if_capenable != ena) { + sc->sc_ifp->if_capenable != ena || + sc->sc_ifp->if_hwassist != hwa) { sc->sc_ifp->if_capabilities = cap; sc->sc_ifp->if_capenable = ena; + sc->sc_ifp->if_hwassist = hwa; getmicrotime(&sc->sc_ifp->if_lastchange); if (sc->sc_ifflags & IFF_DEBUG) -- cgit v1.1