Bump the number of Tx DMA segments from 8 to 16 (the zero-copy socket
code sometimes sees more than 8).
This commit is contained in:
parent
317ab784d9
commit
a487a4b57a
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_sip.c,v 1.51 2002/03/27 21:42:45 briggs Exp $ */
|
||||
/* $NetBSD: if_sip.c,v 1.52 2002/05/03 00:18:31 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
|
||||
|
@ -82,7 +82,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_sip.c,v 1.51 2002/03/27 21:42:45 briggs Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_sip.c,v 1.52 2002/05/03 00:18:31 thorpej Exp $");
|
||||
|
||||
#include "bpfilter.h"
|
||||
|
||||
|
@ -138,10 +138,11 @@ __KERNEL_RCSID(0, "$NetBSD: if_sip.c,v 1.51 2002/03/27 21:42:45 briggs Exp $");
|
|||
* enough descriptors for 128 pending transmissions, and 8 segments
|
||||
* per packet. This MUST work out to a power of 2.
|
||||
*/
|
||||
#define SIP_NTXSEGS 8
|
||||
#define SIP_NTXSEGS 16
|
||||
#define SIP_NTXSEGS_ALLOC 8
|
||||
|
||||
#define SIP_TXQUEUELEN 256
|
||||
#define SIP_NTXDESC (SIP_TXQUEUELEN * SIP_NTXSEGS)
|
||||
#define SIP_NTXDESC (SIP_TXQUEUELEN * SIP_NTXSEGS_ALLOC)
|
||||
#define SIP_NTXDESC_MASK (SIP_NTXDESC - 1)
|
||||
#define SIP_NEXTTX(x) (((x) + 1) & SIP_NTXDESC_MASK)
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_stereg.h,v 1.1 2001/06/19 23:00:47 thorpej Exp $ */
|
||||
/* $NetBSD: if_stereg.h,v 1.2 2002/05/03 00:19:12 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -59,7 +59,7 @@ struct ste_frag {
|
|||
* ST-201 Transmit Frame Descriptor. Note the number of fragments
|
||||
* here is arbitrary, but we can't exceed 512 bytes of TFD.
|
||||
*/
|
||||
#define STE_NTXFRAGS 8
|
||||
#define STE_NTXFRAGS 16
|
||||
struct ste_tfd {
|
||||
uint32_t tfd_next; /* next TFD in list */
|
||||
uint32_t tfd_control; /* control bits */
|
||||
|
|
Loading…
Reference in New Issue