summaryrefslogtreecommitdiffstats
path: root/sys/dev/hatm/if_hatm_intr.c
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2003-10-29 15:07:10 +0000
committerharti <harti@FreeBSD.org>2003-10-29 15:07:10 +0000
commitaa5acc483c0b0938d52f4204f3801db5b80a63f7 (patch)
tree2d348cd1b7cb29d107b8a8052df21a81c637af3b /sys/dev/hatm/if_hatm_intr.c
parentb9fecc82d3e55cefb5fd427307272fed377b780a (diff)
downloadFreeBSD-src-aa5acc483c0b0938d52f4204f3801db5b80a63f7.zip
FreeBSD-src-aa5acc483c0b0938d52f4204f3801db5b80a63f7.tar.gz
Make the maximum number of pages for external mbufs configurable in
the kernel environment and accessible as a RO sysctl. Explain that the HE155 will not work in 64-bit/66MHz slots, but may work in 64-bit/33MHz slots.
Diffstat (limited to 'sys/dev/hatm/if_hatm_intr.c')
-rw-r--r--sys/dev/hatm/if_hatm_intr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/hatm/if_hatm_intr.c b/sys/dev/hatm/if_hatm_intr.c
index b359ecb..088eef4 100644
--- a/sys/dev/hatm/if_hatm_intr.c
+++ b/sys/dev/hatm/if_hatm_intr.c
@@ -175,7 +175,7 @@ hatm_mbuf_page_alloc(struct hatm_softc *sc, u_int group)
int err;
u_int i;
- if (sc->mbuf_npages == HE_CONFIG_MAX_MBUF_PAGES)
+ if (sc->mbuf_npages == sc->mbuf_max_pages))
return;
if ((pg = malloc(MBUF_ALLOC_SIZE, M_DEVBUF, M_NOWAIT)) == NULL)
return;
OpenPOWER on IntegriCloud