summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2008-11-08 07:13:03 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2008-11-08 07:13:03 +0000
commit26d331a9e5aa75722eb78b989a40c9f5099b08d8 (patch)
tree1e331f8eac95544374ad3573295f8004589e69d3
parent4e82bd5e6cab8bed70a2dcd306529f84a499e4dd (diff)
When initializing the standard RX ring, do not allocate mbufs clusters for the
whole ring.
-rw-r--r--sys/dev/pci/if_bge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c
index fe9186f3bc3..1bc6d6324af 100644
--- a/sys/dev/pci/if_bge.c
+++ b/sys/dev/pci/if_bge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bge.c,v 1.252 2008/11/08 07:10:13 brad Exp $ */
+/* $OpenBSD: if_bge.c,v 1.253 2008/11/08 07:13:02 deraadt Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@@ -990,7 +990,7 @@ bge_init_rx_ring_std(struct bge_softc *sc)
if (sc->bge_flags & BGE_RXRING_VALID)
return (0);
- for (i = 0; i < BGE_STD_RX_RING_CNT; i++) {
+ for (i = 0; i < BGE_SSLOTS; i++) {
if (bge_newbuf_std(sc, i, NULL, 0) == ENOBUFS)
return (ENOBUFS);
}