diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-06-21 20:04:31 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-06-21 20:04:31 +0000 |
commit | 70942e7545641f9959864abc98910cbdd8209eb1 (patch) | |
tree | 6236d8872ceb79802bbd3afd1eb4533f81ffb3ac /sys/arch | |
parent | 9d235a580e6933ce877b68d77835531e4b49734b (diff) |
Count transmitted packets.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc64/dev/vnet.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/sparc64/dev/vnet.c b/sys/arch/sparc64/dev/vnet.c index 505a8491941..4bb9beddff5 100644 --- a/sys/arch/sparc64/dev/vnet.c +++ b/sys/arch/sparc64/dev/vnet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vnet.c,v 1.44 2015/04/13 08:45:48 mpi Exp $ */ +/* $OpenBSD: vnet.c,v 1.45 2015/06/21 20:04:30 kettenis Exp $ */ /* * Copyright (c) 2009, 2015 Mark Kettenis * @@ -767,6 +767,7 @@ vnet_rx_vio_desc_data(struct vnet_softc *sc, struct vio_msg_tag *tag) atomic_dec_int(&map->lm_count); pool_put(&sc->sc_pool, sc->sc_vsd[cons].vsd_buf); + ifp->if_opackets++; sc->sc_tx_cons++; break; @@ -880,6 +881,7 @@ vnet_rx_vio_dring_data(struct vnet_softc *sc, struct vio_msg_tag *tag) atomic_dec_int(&map->lm_count); pool_put(&sc->sc_pool, sc->sc_vsd[cons].vsd_buf); + ifp->if_opackets++; sc->sc_vd->vd_desc[cons].hdr.dstate = VIO_DESC_FREE; sc->sc_tx_cons++; |