summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2016-08-29 17:35:26 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2016-08-29 17:35:26 +0000
commit700fbc3821b27ec4637f85cdef4cdc536b174d95 (patch)
tree807d1bfddc2b3d56d952dca84e784e0f6c2f96ae /sys/dev
parente55cfb994201fe3f7af7e804c4b11d7791fa991a (diff)
Set MTU size to ~4k until the TX path is ready to deal with larger packets
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pv/if_xnf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pv/if_xnf.c b/sys/dev/pv/if_xnf.c
index a128899630d..ccc5b57c407 100644
--- a/sys/dev/pv/if_xnf.c
+++ b/sys/dev/pv/if_xnf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_xnf.c,v 1.33 2016/08/29 17:27:04 mikeb Exp $ */
+/* $OpenBSD: if_xnf.c,v 1.34 2016/08/29 17:35:25 mikeb Exp $ */
/*
* Copyright (c) 2015, 2016 Mike Belopuhov
@@ -290,7 +290,7 @@ xnf_attach(struct device *parent, struct device *self, void *aux)
ifp->if_softc = sc;
if (sc->sc_caps & XNF_CAP_SG)
- ifp->if_hardmtu = 9000;
+ ifp->if_hardmtu = XNF_MCLEN - ETHER_HDR_LEN;
ifp->if_capabilities = IFCAP_VLAN_MTU;
if (sc->sc_caps & XNF_CAP_CSUM4)