summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsephe <sephe@FreeBSD.org>2016-01-25 05:25:39 +0000
committersephe <sephe@FreeBSD.org>2016-01-25 05:25:39 +0000
commit271daa3aab08274e110c384e43baf70bef5d49ec (patch)
treeef5b9f6581313c62b16c787234b347af9854ea48
parentd90c6457ead3152460e5d1ee19b0180fdfa2bc38 (diff)
downloadFreeBSD-src-271daa3aab08274e110c384e43baf70bef5d49ec.zip
FreeBSD-src-271daa3aab08274e110c384e43baf70bef5d49ec.tar.gz
hyperv/hn: Trust host TCP segment checksum verification by default.
According to all available information, VMSWITCH always does the TCP segment checksum verification before sending the segment to guest. Reviewed by: adrian, delphij, Hongjiang Zhang <honzhan microsoft com> Approved by: adrian (mentor) Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D4991
-rw-r--r--sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c b/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
index e413a8f..10e8ada 100644
--- a/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
+++ b/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
@@ -206,7 +206,7 @@ struct hn_txdesc {
int hv_promisc_mode = 0; /* normal mode by default */
/* Trust tcp segements verification on host side. */
-static int hn_trust_hosttcp = 0;
+static int hn_trust_hosttcp = 1;
TUNABLE_INT("dev.hn.trust_hosttcp", &hn_trust_hosttcp);
#if __FreeBSD_version >= 1100045
OpenPOWER on IntegriCloud