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:
parent
1e8742e9cd
commit
fba6dd7f18
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user