diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-06-22 23:07:04 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-06-22 23:07:04 +0000 |
commit | e446f87143c01c85bd219803dc2d66b08854341d (patch) | |
tree | 650692f9bc85f1a34d3a11ae1ec26529437e5714 | |
parent | bebec70aca5d88b62c405ff8b5dd53ed99a66320 (diff) |
lower the RX ring count and Jumbo slots on sparc64 as a workaround.
ok reyk@
-rw-r--r-- | sys/dev/pci/if_skreg.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/pci/if_skreg.h b/sys/dev/pci/if_skreg.h index c703f241936..e549d298371 100644 --- a/sys/dev/pci/if_skreg.h +++ b/sys/dev/pci/if_skreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_skreg.h,v 1.32 2006/06/08 00:43:01 brad Exp $ */ +/* $OpenBSD: if_skreg.h,v 1.33 2006/06/22 23:07:03 brad Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -1472,7 +1472,11 @@ struct sk_tx_desc { #define SK_TXBYTES SK_RXBYTES #define SK_TX_RING_CNT 512 +#ifdef __sparc64__ +#define SK_RX_RING_CNT 36 +#else #define SK_RX_RING_CNT 256 +#endif /* * Jumbo buffer stuff. Note that we must allocate more jumbo @@ -1484,11 +1488,7 @@ struct sk_tx_desc { */ #define SK_JUMBO_FRAMELEN 9018 #define SK_JUMBO_MTU (SK_JUMBO_FRAMELEN-ETHER_HDR_LEN-ETHER_CRC_LEN) -#ifdef __sparc64__ -#define SK_JSLOTS 54 -#else -#define SK_JSLOTS 384 -#endif +#define SK_JSLOTS ((SK_RX_RING_CNT / 2) * 3) #define SK_JRAWLEN (SK_JUMBO_FRAMELEN + ETHER_ALIGN) #define SK_JLEN SK_JRAWLEN |