From 26d331a9e5aa75722eb78b989a40c9f5099b08d8 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 8 Nov 2008 07:13:03 +0000 Subject: When initializing the standard RX ring, do not allocate mbufs clusters for the whole ring. --- sys/dev/pci/if_bge.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/pci/if_bge.c') 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); } -- cgit v1.2.3