Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Make sure to initialize the all Rx descriptors pr...



details:   https://anonhg.NetBSD.org/src/rev/cb3a9a16eaa7
branches:  trunk
changeset: 513085:cb3a9a16eaa7
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Jul 23 17:20:03 2001 +0000

description:
Make sure to initialize the all Rx descriptors properly in *_init()
even if mbufs for them are already allocated.

diffstat:

 sys/dev/ic/aic6915.c   |  5 +++--
 sys/dev/ic/smc83c170.c |  5 +++--
 sys/dev/ic/tulip.c     |  5 +++--
 3 files changed, 9 insertions(+), 6 deletions(-)

diffs (57 lines):

diff -r 6b577756778a -r cb3a9a16eaa7 sys/dev/ic/aic6915.c
--- a/sys/dev/ic/aic6915.c      Mon Jul 23 17:19:56 2001 +0000
+++ b/sys/dev/ic/aic6915.c      Mon Jul 23 17:20:03 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aic6915.c,v 1.3 2001/07/19 16:25:24 thorpej Exp $      */
+/*     $NetBSD: aic6915.c,v 1.4 2001/07/23 17:20:03 thorpej Exp $      */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -991,7 +991,8 @@
                                sf_rxdrain(sc);
                                goto out;
                        }
-               }
+               } else
+                       SF_INIT_RXDESC(sc, i);
        }
        sf_funcreg_write(sc, SF_RxDescQueueHighAddress, 0);
        sf_funcreg_write(sc, SF_RxDescQueue1LowAddress, SF_CDRXDADDR(sc, 0));
diff -r 6b577756778a -r cb3a9a16eaa7 sys/dev/ic/smc83c170.c
--- a/sys/dev/ic/smc83c170.c    Mon Jul 23 17:19:56 2001 +0000
+++ b/sys/dev/ic/smc83c170.c    Mon Jul 23 17:20:03 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: smc83c170.c,v 1.47 2001/07/19 16:25:26 thorpej Exp $   */
+/*     $NetBSD: smc83c170.c,v 1.48 2001/07/23 17:20:04 thorpej Exp $   */
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -986,7 +986,8 @@
                                epic_rxdrain(sc);
                                goto out;
                        }
-               }
+               } else
+                       EPIC_INIT_RXDESC(sc, i);
        }
        sc->sc_rxptr = 0;
 
diff -r 6b577756778a -r cb3a9a16eaa7 sys/dev/ic/tulip.c
--- a/sys/dev/ic/tulip.c        Mon Jul 23 17:19:56 2001 +0000
+++ b/sys/dev/ic/tulip.c        Mon Jul 23 17:20:03 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tulip.c,v 1.95 2001/07/19 16:25:26 thorpej Exp $       */
+/*     $NetBSD: tulip.c,v 1.96 2001/07/23 17:20:04 thorpej Exp $       */
 
 /*-
  * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -1782,7 +1782,8 @@
                                tlp_rxdrain(sc);
                                goto out;
                        }
-               }
+               } else
+                       TULIP_INIT_RXDESC(sc, i);
        }
        sc->sc_rxptr = 0;
 



Home | Main Index | Thread Index | Old Index