View | Details | Raw Unified | Return to bug 203630 | Differences between
and this patch

Collapse All | Expand All

(-)netvsc_mod/hv_netvsc_drv_freebsd.c (-11 / +3 lines)
Lines 340-357 netvsc_attach(device_t dev) Link Here
340
	 */
340
	 */
341
	ifp->if_data.ifi_hdrlen = sizeof(struct ether_vlan_header);
341
	ifp->if_data.ifi_hdrlen = sizeof(struct ether_vlan_header);
342
	ifp->if_capabilities |=
342
	ifp->if_capabilities |=
343
	    IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_MTU | IFCAP_HWCSUM | IFCAP_TSO;
343
	    IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_MTU | IFCAP_TSO;
344
	ifp->if_capenable |=
344
	ifp->if_capenable |=
345
	    IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_MTU | IFCAP_HWCSUM | IFCAP_TSO;
345
	    IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_MTU | IFCAP_TSO;
346
	/*
346
	ifp->if_hwassist = CSUM_TSO;
347
	 * Only enable UDP checksum offloading when it is on 2012R2 or
348
	 * later. UDP checksum offloading doesn't work on earlier
349
	 * Windows releases.
350
	 */
351
	if (hv_vmbus_protocal_version >= HV_VMBUS_VERSION_WIN8_1)
352
		ifp->if_hwassist = CSUM_TCP | CSUM_UDP | CSUM_TSO;
353
	else
354
		ifp->if_hwassist = CSUM_TCP | CSUM_TSO;
355
347
356
	ret = hv_rf_on_device_add(device_ctx, &device_info);
348
	ret = hv_rf_on_device_add(device_ctx, &device_info);
357
	if (ret != 0) {
349
	if (ret != 0) {
(-)netvsc_mod/hv_rndis_filter.c (-1 / +3 lines)
Lines 823-829 hv_rf_on_device_add(struct hv_device *de Link Here
823
	int ret;
823
	int ret;
824
	netvsc_dev *net_dev;
824
	netvsc_dev *net_dev;
825
	rndis_device *rndis_dev;
825
	rndis_device *rndis_dev;
826
	rndis_offload_params offloads;
826
	//rndis_offload_params offloads;
827
	netvsc_device_info *dev_info = (netvsc_device_info *)additl_info;
827
	netvsc_device_info *dev_info = (netvsc_device_info *)additl_info;
828
	device_t dev = device->device;
828
	device_t dev = device->device;
829
829
Lines 867-872 hv_rf_on_device_add(struct hv_device *de Link Here
867
		/* TODO: shut down rndis device and the channel */
867
		/* TODO: shut down rndis device and the channel */
868
	}
868
	}
869
869
870
#if 0
870
	/* config csum offload and send request to host */
871
	/* config csum offload and send request to host */
871
	memset(&offloads, 0, sizeof(offloads));
872
	memset(&offloads, 0, sizeof(offloads));
872
	offloads.ipv4_csum = RNDIS_OFFLOAD_PARAMETERS_TX_RX_ENABLED;
873
	offloads.ipv4_csum = RNDIS_OFFLOAD_PARAMETERS_TX_RX_ENABLED;
Lines 882-887 hv_rf_on_device_add(struct hv_device *de Link Here
882
		device_printf(dev,
883
		device_printf(dev,
883
		    "hv_rf_send_offload_request failed, ret=%d\n", ret);
884
		    "hv_rf_send_offload_request failed, ret=%d\n", ret);
884
	}
885
	}
886
#endif
885
	
887
	
886
	memcpy(dev_info->mac_addr, rndis_dev->hw_mac_addr, HW_MACADDR_LEN);
888
	memcpy(dev_info->mac_addr, rndis_dev->hw_mac_addr, HW_MACADDR_LEN);
887
889

Return to bug 203630