![]() |
![]() |
The structure describes the Heap Configuration. More...
#include <pktlib.h>
Data Fields | |
const char * | name |
Heap Name which should be unique and identifies the heap. | |
Qmss_MemRegion | memRegion |
QMSS memory region from where the packets will be carved out. | |
uint32_t | sharedHeap |
This flag identifies if the heap is shared or private. Private heaps are visible only on the core while shared heaps are visible across cores. | |
uint32_t | useStarvationQueue |
This flag indicates that the heap should use STARVATION queues which allow the Navigator infrastructure to detect queue empty and record statistics. | |
uint32_t | dataBufferPktThreshold |
The threshold can be used to determine heap buffer usage. If the data buffer packets in the heap fall below the threshold value this will be detected. Please ensure that the thresholds are always a power of 2. | |
uint32_t | zeroBufferPktThreshold |
The threshold can be used to determine heap zero-buffer usage. If the zero buffer packets in the heap fall below the threshold value this will be detected. Please ensure that the thresholds are always a power of 2. | |
uint32_t | dataBufferSize |
Each heap has data buffers of the size specified here. | |
uint32_t | numPkts |
These are the number of packets which are associated with the data buffer size specified above. | |
uint32_t | numZeroBufferPackets |
These are the number of zero buffer packets which should be present in the heap. | |
Pktlib_HeapIfTable | heapInterfaceTable |
Heap Interface Function table which identifies functions for data allocation & cleanup. |
The structure describes the Heap Configuration.
The configuration is populated and passed to the PKTLIB module when a heap is being created.