We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cf9fcb commit df1cddbCopy full SHA for df1cddb
src/driver/ixgbe.c
@@ -62,7 +62,8 @@ static void start_rx_queue(struct ixgbe_device* dev, int queue_id) {
62
// is the default MTU of 1518
63
// this has to be fixed if jumbo frames are to be supported
64
// mempool should be >= the number of rx and tx descriptors for a forwarding application
65
- queue->mempool = memory_allocate_mempool(4096, 2048);
+ uint32_t mempool_size = NUM_RX_QUEUE_ENTRIES + NUM_TX_QUEUE_ENTRIES;
66
+ queue->mempool = memory_allocate_mempool(mempool_size < 4096 ? 4096 : mempool_size, 2048);
67
if (queue->num_entries & (queue->num_entries - 1)) {
68
error("number of queue entries must be a power of 2");
69
}
0 commit comments