diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2008-05-26 03:56:39 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2008-05-26 03:56:39 +0000 |
commit | 67aa9be9641a17d1bc40d8816eed829a87bba6a3 (patch) | |
tree | e9e2e1652f932223eff06602f3a2c630e56165ba /sys/dev/pci | |
parent | 8d813c432df9889a3cf670142ee04a360cbb1164 (diff) |
Count output packets.
From DragonFly
ok dlg@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_et.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/if_et.c b/sys/dev/pci/if_et.c index 5b6ee5891d5..479217b34c5 100644 --- a/sys/dev/pci/if_et.c +++ b/sys/dev/pci/if_et.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_et.c,v 1.8 2008/05/23 08:49:27 brad Exp $ */ +/* $OpenBSD: if_et.c,v 1.9 2008/05/26 03:56:38 brad Exp $ */ /* * Copyright (c) 2007 The DragonFly Project. All rights reserved. * @@ -1988,6 +1988,7 @@ et_txeof(struct et_softc *sc) bus_dmamap_unload(sc->sc_dmat, tb->tb_dmap); m_freem(tb->tb_mbuf); tb->tb_mbuf = NULL; + ifp->if_opackets++; } if (++tbd->tbd_start_index == ET_TX_NDESC) { |