Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Group receiver-related variables together: move s...
details: https://anonhg.NetBSD.org/src/rev/eef1506855ad
branches: trunk
changeset: 572278:eef1506855ad
user: dyoung <dyoung%NetBSD.org@localhost>
date: Tue Dec 28 22:07:04 2004 +0000
description:
Group receiver-related variables together: move sc_rxctl nearer to
sc_rxnext.
Add sc_nrxdesc, the number of receive descriptors that we are
actually able to use. sc_nrxdesc will ordinarily equal RTW_RXQLEN.
If buffers are exhausted, sc_nrxdesc < RTW_RXQLEN. My next commit
will change dev/ic/rtw.c to deal with buffer exhaustion.
diffstat:
sys/dev/ic/rtwvar.h | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r 3044d02bba7a -r eef1506855ad sys/dev/ic/rtwvar.h
--- a/sys/dev/ic/rtwvar.h Tue Dec 28 22:00:36 2004 +0000
+++ b/sys/dev/ic/rtwvar.h Tue Dec 28 22:07:04 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtwvar.h,v 1.11 2004/12/27 06:12:28 dyoung Exp $ */
+/* $NetBSD: rtwvar.h,v 1.12 2004/12/28 22:07:04 dyoung Exp $ */
/*-
* Copyright (c) 2004, 2005 David Young. All rights reserved.
*
@@ -377,13 +377,14 @@
/* s/w Tx/Rx descriptors */
struct rtw_txctl_blk sc_txctl_blk[RTW_NTXPRI];
- struct rtw_rxctl sc_rxctl[RTW_RXQLEN];
u_int sc_txq;
u_int sc_txnext;
struct rtw_txdesc_blk sc_txdesc_blk[RTW_NTXPRI];
struct rtw_rxdesc *sc_rxdesc;
+ struct rtw_rxctl sc_rxctl[RTW_RXQLEN];
u_int sc_rxnext;
+ u_int sc_nrxdesc;
struct rtw_descs *sc_descs;
Home |
Main Index |
Thread Index |
Old Index