summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-08-20 19:15:47 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-08-20 19:15:47 +0000
commite970ec2f5bdaefd66b25e1d3a051ff241f69cd16 (patch)
tree33c78070dc94ab6cb387af3c3c411efb11f4f2f4 /sys/dev/pci
parent1fe6021d75517cb250c2798dcdc48a8fd2c25d4d (diff)
For consistency with MSK_JSLOTS, go back to using the macro to figure out
the number of Jumbo receive slots for SK_JSLOTS. no-op change.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_skreg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_skreg.h b/sys/dev/pci/if_skreg.h
index 243dc8e6052..4b43c97239e 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.38 2006/08/19 21:16:22 kettenis Exp $ */
+/* $OpenBSD: if_skreg.h,v 1.39 2006/08/20 19:15:46 brad Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -1597,7 +1597,7 @@ struct msk_status_desc {
#define SK_JUMBO_FRAMELEN 9018
#define SK_JUMBO_MTU (SK_JUMBO_FRAMELEN - ETHER_HDR_LEN - ETHER_CRC_LEN)
#define SK_MIN_FRAMELEN (ETHER_MIN_LEN - ETHER_CRC_LEN)
-#define SK_JSLOTS 384
+#define SK_JSLOTS ((SK_RX_RING_CNT / 2) * 3)
#define SK_JRAWLEN (SK_JUMBO_FRAMELEN + ETHER_ALIGN)
#define SK_JLEN SK_JRAWLEN