Date: Tue, 16 Dec 2008 22:16:34 +0000 (UTC) From: Andrew Thompson <thompsa@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r186195 - head/sys/net Message-ID: <200812162216.mBGMGY6l049037@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: thompsa Date: Tue Dec 16 22:16:34 2008 New Revision: 186195 URL: http://svn.freebsd.org/changeset/base/186195 Log: Also propagate the if_hwassist value to the parent so that cksum offload works. Submitted by: Tom Hicks (thicks_averesys.com) Modified: head/sys/net/if_lagg.c Modified: head/sys/net/if_lagg.c ============================================================================== --- head/sys/net/if_lagg.c Tue Dec 16 21:13:11 2008 (r186194) +++ head/sys/net/if_lagg.c Tue Dec 16 22:16:34 2008 (r186195) @@ -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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812162216.mBGMGY6l049037>