diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2008-11-08 07:00:53 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2008-11-08 07:00:53 +0000 |
commit | c00fe252c71ec9bacb00b52d5d6c1b3cb241dd6d (patch) | |
tree | 0d972c916322ff2c55a7c53c199d7aa1656332da /sys | |
parent | 63e143413bf7fda2bf1d89d473a049209f7023c5 (diff) |
When initializing the standard RX ring, allocate mbufs clusters for the
whole ring.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_bge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index ab229d0eaea..f7a36bb5210 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.250 2008/11/07 22:52:15 brad Exp $ */ +/* $OpenBSD: if_bge.c,v 1.251 2008/11/08 07:00:52 brad Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -996,7 +996,7 @@ bge_init_rx_ring_std(struct bge_softc *sc) if (sc->bge_flags & BGE_RXRING_VALID) return (0); - for (i = 0; i < BGE_SSLOTS; i++) { + for (i = 0; i < BGE_STD_RX_RING_CNT; i++) { if (bge_newbuf_std(sc, i, NULL, 0) == ENOBUFS) return (ENOBUFS); } |