diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-01-13 21:05:56 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-01-13 21:05:56 +0000 |
commit | 2f014ad9c9664a81581ea8ca2abd9c89bf1b2dcf (patch) | |
tree | 97dc2dd1a2ea689e1e6303de8936aa3a5eccbd39 /sys/dev/pci/if_msk.c | |
parent | 97deba7336877ec265495c8516fa9c0e103b1f97 (diff) |
Correctly count outbound packets.
From brad@
Diffstat (limited to 'sys/dev/pci/if_msk.c')
-rw-r--r-- | sys/dev/pci/if_msk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_msk.c b/sys/dev/pci/if_msk.c index 782c19ce986..f8fab8ad294 100644 --- a/sys/dev/pci/if_msk.c +++ b/sys/dev/pci/if_msk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_msk.c,v 1.40 2007/01/08 20:32:34 kettenis Exp $ */ +/* $OpenBSD: if_msk.c,v 1.41 2007/01/13 21:05:55 kettenis Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -1689,12 +1689,12 @@ msk_txeof(struct sk_if_softc *sc_if) BUS_DMASYNC_POSTREAD|BUS_DMASYNC_POSTWRITE); cur_tx = &sc_if->sk_rdata->sk_tx_ring[idx]; - sk_ctl = letoh32(cur_tx->sk_ctl); + sk_ctl = cur_tx->sk_ctl; #ifdef MSK_DEBUG if (mskdebug >= 2) msk_dump_txdesc(cur_tx, idx); #endif - if (sk_ctl & SK_TXCTL_LASTFRAG) + if (sk_ctl & SK_Y2_TXCTL_LASTFRAG) ifp->if_opackets++; if (sc_if->sk_cdata.sk_tx_chain[idx].sk_mbuf != NULL) { entry = sc_if->sk_cdata.sk_tx_map[idx]; |