diff options
| author | tsutsui <tsutsui@NetBSD.org> | 2008-08-10 16:18:43 +0000 |
|---|---|---|
| committer | tsutsui <tsutsui@NetBSD.org> | 2008-08-10 16:18:43 +0000 |
| commit | df91c0f20b1b31cff0cdc3bf92c840e8065aa2b6 (patch) | |
| tree | 42d6719aab0d669147c68f2b8d7dd068031c3c42 /sys | |
| parent | 0ba4793950b5407a8a6994775968239f5d8c74b7 (diff) | |
The last txdesc is now preserved, so also set IFF_OACTIVE properly.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/arch/sgimips/mace/if_mec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sgimips/mace/if_mec.c b/sys/arch/sgimips/mace/if_mec.c index a612364e4a2..20817a4ac9c 100644 --- a/sys/arch/sgimips/mace/if_mec.c +++ b/sys/arch/sgimips/mace/if_mec.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_mec.c,v 1.22 2008/08/10 16:12:57 tsutsui Exp $ */ +/* $NetBSD: if_mec.c,v 1.23 2008/08/10 16:18:43 tsutsui Exp $ */ /*- * Copyright (c) 2004 Izumi Tsutsui. All rights reserved. @@ -61,7 +61,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_mec.c,v 1.22 2008/08/10 16:12:57 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_mec.c,v 1.23 2008/08/10 16:18:43 tsutsui Exp $"); #include "opt_ddb.h" #include "bpfilter.h" @@ -1056,7 +1056,7 @@ mec_start(struct ifnet *ifp) sc->sc_txlast = nexttx; } - if (sc->sc_txpending == MEC_NTXDESC) { + if (sc->sc_txpending == MEC_NTXDESC - 1) { /* No more slots; notify upper layer. */ ifp->if_flags |= IFF_OACTIVE; } |
