From 67aa9be9641a17d1bc40d8816eed829a87bba6a3 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Mon, 26 May 2008 03:56:39 +0000 Subject: Count output packets. From DragonFly ok dlg@ --- sys/dev/pci/if_et.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/pci') 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) { -- cgit v1.2.3