diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-11-25 12:45:03 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-11-25 12:45:03 +0000 |
commit | 8f8f7fbb6ccd25c5584adc1731a38de89f12d2c2 (patch) | |
tree | 765997b1e59fd8ddf21c04abd36efad0ba5e1f95 /sys/dev/pci | |
parent | 89ffcb81b10e7a12d869ad6c903e0e713368f013 (diff) |
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) { |