Bump IOPL_MAX_SEGS to 16 in line with other Ethernet drivers, and in one

spot replace it with the capped value learned from the board.
This commit is contained in:
ad 2002-05-04 16:43:26 +00:00
parent a3ed40ee7c
commit df9895c1cb
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: iopl.c,v 1.6 2002/01/12 16:49:45 tsutsui Exp $ */
/* $NetBSD: iopl.c,v 1.7 2002/05/04 16:43:26 ad Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -46,7 +46,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: iopl.c,v 1.6 2002/01/12 16:49:45 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: iopl.c,v 1.7 2002/05/04 16:43:26 ad Exp $");
#include "opt_i2o.h"
#include "opt_inet.h"
@ -709,7 +709,7 @@ iopl_rx_post(struct iopl_softc *sc)
}
}
if (p + 2 + IOPL_MAX_SEGS >= ep)
if (p + 2 + sc->sc_tx_maxsegs >= ep)
break;
if (--sc->sc_rx_freecnt <= 0)
break;

View File

@ -1,4 +1,4 @@
/* $NetBSD: ioplvar.h,v 1.2 2001/08/22 09:43:15 ad Exp $ */
/* $NetBSD: ioplvar.h,v 1.3 2002/05/04 16:43:26 ad Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -41,7 +41,7 @@
#define IOPL_TICK_HZ 3
#define IOPL_DESCRIPTORS 128
#define IOPL_MAX_SEGS 8 /* XXX */
#define IOPL_MAX_SEGS 16
#define IOPL_MAX_BATCH 4
#define IOPL_MAX_MULTI 256
#define IOPL_BATCHING_ENABLED 1