diff options
author | 2009-11-25 12:45:02 +0000 | |
---|---|---|
committer | 2009-11-25 12:45:02 +0000 | |
commit | 885c20de5620cf8deccd9a86acdd3b8d8b315c13 (patch) | |
tree | f193d1fceea8c567926c4229b50dba9eab378f98 /sys/dev/pci | |
parent | Re-enable the debug messages from bus errors and tx underruns so that (diff) | |
download | wireguard-openbsd-885c20de5620cf8deccd9a86acdd3b8d8b315c13.tar.xz wireguard-openbsd-885c20de5620cf8deccd9a86acdd3b8d8b315c13.zip |
Consider any tx buffer that is freed in vr_stop() to be an unsent
packet, ie. an output error. This way, we'll be able to see if the
seized interfaces had tx packets queued.
ok claudio
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_vr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/if_vr.c b/sys/dev/pci/if_vr.c index 9d39e73b01d..7b069440a5d 100644 --- a/sys/dev/pci/if_vr.c +++ b/sys/dev/pci/if_vr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vr.c,v 1.102 2009/11/25 12:43:28 deraadt Exp $ */ +/* $OpenBSD: if_vr.c,v 1.103 2009/11/25 12:45:02 deraadt Exp $ */ /* * Copyright (c) 1997, 1998 @@ -1523,6 +1523,7 @@ vr_stop(struct vr_softc *sc) if (sc->vr_cdata.vr_tx_chain[i].vr_mbuf != NULL) { m_freem(sc->vr_cdata.vr_tx_chain[i].vr_mbuf); sc->vr_cdata.vr_tx_chain[i].vr_mbuf = NULL; + ifp->if_oerrors++; } map = sc->vr_cdata.vr_tx_chain[i].vr_map; if (map != NULL) { |