From c612108f9ff8b2339e4e191e69e7e7d7175e08b7 Mon Sep 17 00:00:00 2001 From: mikeb Date: Mon, 29 Aug 2016 17:35:25 +0000 Subject: [PATCH] Set MTU size to ~4k until the TX path is ready to deal with larger packets --- sys/dev/pv/if_xnf.c | 4 ++-- 1 file 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) -- 2.20.1