Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
Show First 20 Lines • Show All 541 Lines • ▼ Show 20 Lines | ifp->if_capabilities |= | ||||
IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_MTU | IFCAP_HWCSUM | IFCAP_TSO | | IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_MTU | IFCAP_HWCSUM | IFCAP_TSO | | ||||
IFCAP_LRO; | IFCAP_LRO; | ||||
ifp->if_capenable |= | ifp->if_capenable |= | ||||
IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_MTU | IFCAP_HWCSUM | IFCAP_TSO | | IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_MTU | IFCAP_HWCSUM | IFCAP_TSO | | ||||
IFCAP_LRO; | IFCAP_LRO; | ||||
ifp->if_hwassist = sc->hn_tx_ring[0].hn_csum_assist | CSUM_TSO; | ifp->if_hwassist = sc->hn_tx_ring[0].hn_csum_assist | CSUM_TSO; | ||||
sc->hn_xact = vmbus_xact_ctx_create(bus_get_dma_tag(dev), | sc->hn_xact = vmbus_xact_ctx_create(bus_get_dma_tag(dev), | ||||
HN_XACT_REQ_SIZE, HN_XACT_RESP_SIZE); | HN_XACT_REQ_SIZE, HN_XACT_RESP_SIZE, 0); | ||||
if (sc->hn_xact == NULL) | if (sc->hn_xact == NULL) | ||||
goto failed; | goto failed; | ||||
error = hv_rf_on_device_add(sc, &device_info, ring_cnt, | error = hv_rf_on_device_add(sc, &device_info, ring_cnt, | ||||
&sc->hn_rx_ring[0]); | &sc->hn_rx_ring[0]); | ||||
if (error) | if (error) | ||||
goto failed; | goto failed; | ||||
KASSERT(sc->net_dev->num_channel > 0 && | KASSERT(sc->net_dev->num_channel > 0 && | ||||
▲ Show 20 Lines • Show All 2,487 Lines • Show Last 20 Lines |