Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Make sure to initialize the all Rx descriptors p...
details: https://anonhg.NetBSD.org/src/rev/2addbbcdeba5
branches: trunk
changeset: 513087:2addbbcdeba5
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Jul 23 17:26:50 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/pci/if_sip.c | 5 +++--
sys/dev/pci/if_ste.c | 5 +++--
sys/dev/pci/if_vr.c | 5 +++--
3 files changed, 9 insertions(+), 6 deletions(-)
diffs (57 lines):
diff -r 2ca5c560936a -r 2addbbcdeba5 sys/dev/pci/if_sip.c
--- a/sys/dev/pci/if_sip.c Mon Jul 23 17:23:09 2001 +0000
+++ b/sys/dev/pci/if_sip.c Mon Jul 23 17:26:50 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_sip.c,v 1.41 2001/07/19 16:36:14 thorpej Exp $ */
+/* $NetBSD: if_sip.c,v 1.42 2001/07/23 17:26:50 thorpej Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -2030,7 +2030,8 @@
SIP_DECL(rxdrain)(sc);
goto out;
}
- }
+ } else
+ SIP_INIT_RXDESC(sc, i);
}
sc->sc_rxptr = 0;
#ifdef DP83820
diff -r 2ca5c560936a -r 2addbbcdeba5 sys/dev/pci/if_ste.c
--- a/sys/dev/pci/if_ste.c Mon Jul 23 17:23:09 2001 +0000
+++ b/sys/dev/pci/if_ste.c Mon Jul 23 17:26:50 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ste.c,v 1.5 2001/07/23 17:23:09 thorpej Exp $ */
+/* $NetBSD: if_ste.c,v 1.6 2001/07/23 17:26:50 thorpej Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -1216,7 +1216,8 @@
ste_rxdrain(sc);
goto out;
}
- }
+ } else
+ STE_INIT_RXDESC(sc, i);
}
sc->sc_rxptr = 0;
diff -r 2ca5c560936a -r 2addbbcdeba5 sys/dev/pci/if_vr.c
--- a/sys/dev/pci/if_vr.c Mon Jul 23 17:23:09 2001 +0000
+++ b/sys/dev/pci/if_vr.c Mon Jul 23 17:26:50 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_vr.c,v 1.50 2001/07/19 16:36:15 thorpej Exp $ */
+/* $NetBSD: if_vr.c,v 1.51 2001/07/23 17:26:50 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -1112,7 +1112,8 @@
vr_rxdrain(sc);
goto out;
}
- }
+ } else
+ VR_INIT_RXDESC(sc, i);
}
sc->vr_rxptr = 0;
Home |
Main Index |
Thread Index |
Old Index