summaryrefslogtreecommitdiffstats
path: root/sys/dev/hatm
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/hatm')
-rw-r--r--sys/dev/hatm/if_hatmvar.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/hatm/if_hatmvar.h b/sys/dev/hatm/if_hatmvar.h
index 9d451a7..42ac900 100644
--- a/sys/dev/hatm/if_hatmvar.h
+++ b/sys/dev/hatm/if_hatmvar.h
@@ -235,7 +235,11 @@ SLIST_HEAD(tpd_list, tpd);
#define MBUFL_OFFSET 16 /* two pointers for HARP */
-#define MBUF_ALLOC_SIZE (PAGE_SIZE)
+#if PAGE_SIZE > 8192
+#define MBUF_ALLOC_SIZE (8192)
+#else
+#define MBUF_ALLOC_SIZE (PAGE_SIZE)
+#endif
/* each allocated page has one of these structures at its very end. */
struct mbuf_page_hdr {
OpenPOWER on IntegriCloud