Fix breakage on ia64: PAGE_SIZE on ia64 is large enough that more than

256 raw receive buffers (96 byte each) fit into one page. This breaks the
limit imposed by the usage of an uint8_t for the buffer number. Restrict
the allocation size for buffers to a maximum of 8192.
This commit is contained in:
harti 2003-10-31 13:35:22 +00:00
parent 44278bfe73
commit a325916ce6

View File

@ -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 {