summaryrefslogtreecommitdiffstats
path: root/sys/dev/hyperv/netvsc/hn_rndis.c
diff options
context:
space:
mode:
authorsephe <sephe@FreeBSD.org>2017-01-05 03:42:29 +0000
committersephe <sephe@FreeBSD.org>2017-01-05 03:42:29 +0000
commita4d88ebd0cb61ee1e644f2ed37c8e93b8231f4cf (patch)
treeb196fbf50a4e7f6fd9eaa16a980c97cc6a9f72eb /sys/dev/hyperv/netvsc/hn_rndis.c
parent3560073bb1bf15dae5f1dcff925e01dfa3a6417c (diff)
downloadFreeBSD-src-a4d88ebd0cb61ee1e644f2ed37c8e93b8231f4cf.zip
FreeBSD-src-a4d88ebd0cb61ee1e644f2ed37c8e93b8231f4cf.tar.gz
MFC 308908,308909
308908 hyperv/hn: Allow enabling IPv6 TX checksum offloading and IPv6 TSO. They are still disabled by default. Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D8490 308909 hyperv/hn: Don't abuse hn_{tx,rx}_ring_inuse. Just in case, the # of TX/RX rings is changed upon synthetic parts re-attach. Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D8520
Diffstat (limited to 'sys/dev/hyperv/netvsc/hn_rndis.c')
-rw-r--r--sys/dev/hyperv/netvsc/hn_rndis.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/hyperv/netvsc/hn_rndis.c b/sys/dev/hyperv/netvsc/hn_rndis.c
index 1c140f9..fa749d3 100644
--- a/sys/dev/hyperv/netvsc/hn_rndis.c
+++ b/sys/dev/hyperv/netvsc/hn_rndis.c
@@ -602,7 +602,6 @@ hn_rndis_conf_offload(struct hn_softc *sc, int mtu)
if ((hwcaps.ndis_lsov2.ndis_ip6_encap & NDIS_OFFLOAD_ENCAP_8023) &&
(hwcaps.ndis_lsov2.ndis_ip6_opts & HN_NDIS_LSOV2_CAP_IP6) ==
HN_NDIS_LSOV2_CAP_IP6) {
-#ifdef notyet
caps |= HN_CAP_TSO6;
params.ndis_lsov2_ip6 = NDIS_OFFLOAD_LSOV2_ON;
@@ -610,7 +609,6 @@ hn_rndis_conf_offload(struct hn_softc *sc, int mtu)
tso_maxsz = hwcaps.ndis_lsov2.ndis_ip6_maxsz;
if (hwcaps.ndis_lsov2.ndis_ip6_minsg > tso_minsg)
tso_minsg = hwcaps.ndis_lsov2.ndis_ip6_minsg;
-#endif
}
sc->hn_ndis_tso_szmax = 0;
sc->hn_ndis_tso_sgmin = 0;
OpenPOWER on IntegriCloud