From: mikeb Date: Mon, 29 Aug 2016 17:35:25 +0000 (+0000) Subject: Set MTU size to ~4k until the TX path is ready to deal with larger packets X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c612108f9ff8b2339e4e191e69e7e7d7175e08b7;p=openbsd Set MTU size to ~4k until the TX path is ready to deal with larger packets --- 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)