Searched refs:tso_maxlen (Results 1 – 2 of 2) sorted by relevance
/freebsd/sys/dev/hyperv/netvsc/ |
H A D | if_hn.c | 510 SYSCTL_INT(_hw_hn, OID_AUTO, tso_maxlen, CTLFLAG_RDTUN, 5558 hn_set_tso_maxsize(struct hn_softc *sc, int tso_maxlen, int mtu) in hn_set_tso_maxsize() argument 5577 if (tso_maxlen < tso_minlen) in hn_set_tso_maxsize() 5578 tso_maxlen = tso_minlen; in hn_set_tso_maxsize() 5579 else if (tso_maxlen > IP_MAXPACKET) in hn_set_tso_maxsize() 5580 tso_maxlen = IP_MAXPACKET; in hn_set_tso_maxsize() 5581 if (tso_maxlen > sc->hn_ndis_tso_szmax) in hn_set_tso_maxsize() 5582 tso_maxlen = sc->hn_ndis_tso_szmax; in hn_set_tso_maxsize() 5583 hw_tsomax = tso_maxlen - (ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN); in hn_set_tso_maxsize()
|
/freebsd/sys/dev/virtio/network/ |
H A D | if_vtnet.c | 295 SYSCTL_INT(_hw_vtnet, OID_AUTO, tso_maxlen, CTLFLAG_RDTUN, 1129 int tso_maxlen; in vtnet_setup_interface() local 1133 tso_maxlen = vtnet_tunable_int(sc, "tso_maxlen", in vtnet_setup_interface() 1135 if_sethwtsomax(ifp, tso_maxlen - in vtnet_setup_interface()
|