Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
Show First 20 Lines • Show All 605 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
sc->hn_tx_chimney_max = sc->net_dev->send_section_size; | sc->hn_tx_chimney_max = sc->net_dev->send_section_size; | ||||
hn_set_tx_chimney_size(sc, sc->hn_tx_chimney_max); | hn_set_tx_chimney_size(sc, sc->hn_tx_chimney_max); | ||||
if (hn_tx_chimney_size > 0 && | if (hn_tx_chimney_size > 0 && | ||||
hn_tx_chimney_size < sc->hn_tx_chimney_max) | hn_tx_chimney_size < sc->hn_tx_chimney_max) | ||||
hn_set_tx_chimney_size(sc, hn_tx_chimney_size); | hn_set_tx_chimney_size(sc, hn_tx_chimney_size); | ||||
SYSCTL_ADD_UINT(device_get_sysctl_ctx(dev), | |||||
SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), OID_AUTO, | |||||
"nvs_version", CTLFLAG_RD, &sc->hn_nvs_ver, 0, "NVS version"); | |||||
return (0); | return (0); | ||||
failed: | failed: | ||||
hn_destroy_tx_data(sc); | hn_destroy_tx_data(sc); | ||||
if (ifp != NULL) | if (ifp != NULL) | ||||
if_free(ifp); | if_free(ifp); | ||||
return (error); | return (error); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 2,418 Lines • Show Last 20 Lines |