Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Round up the number of h/w Rx descriptors to the ...



details:   https://anonhg.NetBSD.org/src/rev/356907af493e
branches:  trunk
changeset: 572196:356907af493e
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Thu Dec 23 08:27:38 2004 +0000

description:
Round up the number of h/w Rx descriptors to the number of h/w,
not s/w, descriptors in 256 bytes (the descriptor ring alignment).

diffstat:

 sys/dev/ic/rtwvar.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r c6fd1a4b5220 -r 356907af493e sys/dev/ic/rtwvar.h
--- a/sys/dev/ic/rtwvar.h       Thu Dec 23 06:26:30 2004 +0000
+++ b/sys/dev/ic/rtwvar.h       Thu Dec 23 08:27:38 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtwvar.h,v 1.6 2004/12/20 23:05:41 dyoung Exp $ */
+/* $NetBSD: rtwvar.h,v 1.7 2004/12/23 08:27:38 dyoung Exp $ */
 /*-
  * Copyright (c) 2004, 2005 David Young.  All rights reserved.
  *
@@ -138,7 +138,7 @@
     (RTW_NTXDESC_ROUNDUP(n * RTW_MAXPKTSEGS) / RTW_MAXPKTSEGS)
 
 #define RTW_RXQLEN_ROUNDUP(n) \
-    roundup(n, RTW_DESC_ALIGNMENT / sizeof(struct rtw_rxctl))
+    roundup(n, RTW_DESC_ALIGNMENT / sizeof(struct rtw_rxdesc))
 
 /* The descriptor rings must begin on RTW_DESC_ALIGNMENT boundaries.
  * I allocate them consecutively from one buffer, so just round up.



Home | Main Index | Thread Index | Old Index