diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2006-11-01 05:45:16 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2006-11-01 05:45:16 +0000 |
commit | cdef4184fee93d42074835e5654af3674da38628 (patch) | |
tree | 12b87d94a9232bbc91519a9162fdd9728df4174c /sys | |
parent | 2d834460c00e74a0249a372e3890860ad6fbd1c8 (diff) |
let the tx completion path clean up by recording which mbuf we're
sending in the tx forward path. gotta love one line fixes...
committed over vic
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_vic.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/pci/if_vic.c b/sys/dev/pci/if_vic.c index a4e426d8316..b8516b74f35 100644 --- a/sys/dev/pci/if_vic.c +++ b/sys/dev/pci/if_vic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vic.c,v 1.13 2006/11/01 05:06:26 dlg Exp $ */ +/* $OpenBSD: if_vic.c,v 1.14 2006/11/01 05:45:15 dlg Exp $ */ /* * Copyright (c) 2006 Reyk Floeter <reyk@openbsd.org> @@ -820,6 +820,7 @@ vic_encap(struct vic_softc *sc, struct mbuf *m) txd->tx_owner = VIC_OWNER_NIC; /* XXX bus dma sync */ + txb->txb_m = m; if (VIC_TXURN_WARN(sc)) { if (ifp->if_flags & IFF_DEBUG) @@ -954,6 +955,8 @@ vic_init(struct ifnet *ifp) else vic_iff(sc, VIC_CMD_IFF_BROADCAST | VIC_CMD_IFF_MULTICAST); + sc->sc_data->vd_tx_curidx = 0; + sc->sc_data->vd_tx_nextidx = 0; sc->sc_data->vd_tx_stopped = sc->sc_data->vd_tx_queued = 0; ifp->if_flags |= IFF_RUNNING; |