diff options
author | 2006-06-22 23:07:03 +0000 | |
---|---|---|
committer | 2006-06-22 23:07:03 +0000 | |
commit | 6ff1df280ee27efe9efb4c94c991858d52731924 (patch) | |
tree | 78ea29d6075b05d4031772b92b9fdd766918651a | |
parent | Add appropriate swapping for big-endian systems. Allows sk(4) to work (diff) | |
download | wireguard-openbsd-6ff1df280ee27efe9efb4c94c991858d52731924.tar.xz wireguard-openbsd-6ff1df280ee27efe9efb4c94c991858d52731924.zip |
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 |