Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/ibm4xx/dev Set up last segment descriptor t...



details:   https://anonhg.NetBSD.org/src/rev/fc21b4dafecc
branches:  trunk
changeset: 573190:fc21b4dafecc
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri Jan 21 15:19:09 2005 +0000

description:
Set up last segment descriptor to send an interrupt after that
descriptor is transmitted, and bypass existing Tx descriptor reaping
method (for now...).

Fixes problems with bad NFS write performance.

diffstat:

 sys/arch/powerpc/ibm4xx/dev/if_emac.c |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r 4958d4726233 -r fc21b4dafecc sys/arch/powerpc/ibm4xx/dev/if_emac.c
--- a/sys/arch/powerpc/ibm4xx/dev/if_emac.c     Fri Jan 21 15:15:20 2005 +0000
+++ b/sys/arch/powerpc/ibm4xx/dev/if_emac.c     Fri Jan 21 15:19:09 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_emac.c,v 1.20 2005/01/21 15:15:20 simonb Exp $      */
+/*     $NetBSD: if_emac.c,v 1.21 2005/01/21 15:19:09 simonb Exp $      */
 
 /*
  * Copyright 2001, 2002 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_emac.c,v 1.20 2005/01/21 15:15:20 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_emac.c,v 1.21 2005/01/21 15:19:09 simonb Exp $");
 
 #include "bpfilter.h"
 
@@ -659,6 +659,14 @@
                /* Set the LAST bit on the last segment. */
                sc->sc_txdescs[lasttx].md_stat_ctrl |= MAL_TX_LAST;
 
+               /*
+                * Set up last segment descriptor to send an interrupt after
+                * that descriptor is transmitted, and bypass existing Tx
+                * descriptor reaping method (for now...).
+                */
+               sc->sc_txdescs[lasttx].md_stat_ctrl |= MAL_TX_INTERRUPT;
+
+
                txs->txs_lastdesc = lasttx;
 
                /* Sync the descriptors we're using. */



Home | Main Index | Thread Index | Old Index