MCPcopy Create free account
hub / github.com/F-Stack/f-stack / if_hw_tsomax_update

Function if_hw_tsomax_update

freebsd/net/if.c:838–855  ·  view source on GitHub ↗

* Update TSO limit of a network adapter. * * Returns zero if no change. Else non-zero. */

Source from the content-addressed store, hash-verified

836 * Returns zero if no change. Else non-zero.
837 */
838int
839if_hw_tsomax_update(if_t ifp, struct ifnet_hw_tsomax *pmax)
840{
841 int retval = 0;
842 if (ifp->if_hw_tsomax != pmax->tsomaxbytes) {
843 ifp->if_hw_tsomax = pmax->tsomaxbytes;
844 retval++;
845 }
846 if (ifp->if_hw_tsomaxsegsize != pmax->tsomaxsegsize) {
847 ifp->if_hw_tsomaxsegsize = pmax->tsomaxsegsize;
848 retval++;
849 }
850 if (ifp->if_hw_tsomaxsegcount != pmax->tsomaxsegcount) {
851 ifp->if_hw_tsomaxsegcount = pmax->tsomaxsegcount;
852 retval++;
853 }
854 return (retval);
855}
856
857static void
858if_attach_internal(struct ifnet *ifp, int vmove, struct if_clone *ifc)

Callers 2

lagg_capabilitiesFunction · 0.85
vlan_capabilitiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected