PcapPlusPlus
pcpp::DpdkDevice::DpdkDeviceConfiguration Struct Reference

#include <DpdkDevice.h>

Public Member Functions

 DpdkDeviceConfiguration (uint16_t receiveDescriptorsNumber=128, uint16_t transmitDescriptorsNumber=512)
 

Public Attributes

uint16_t receiveDescriptorsNumber
 
uint16_t transmitDescriptorsNumber
 

Detailed Description

A struct that contains user configurable parameters for opening a DpdkDevice. All of these parameters have default values so the user doesn't have to use these parameters or understand exactly what is their effect

Constructor & Destructor Documentation

pcpp::DpdkDevice::DpdkDeviceConfiguration::DpdkDeviceConfiguration ( uint16_t  receiveDescriptorsNumber = 128,
uint16_t  transmitDescriptorsNumber = 512 
)
inline

A c'tor for this strcut

Parameters
[in]receiveDescriptorsNumberAn optional parameter for defining the number of RX descriptors that will be allocated for each RX queue. Default value is 128
[in]transmitDescriptorsNumberAn optional parameter for defining the number of TX descriptors that will be allocated for each TX queue. Default value is 512

Member Data Documentation

uint16_t pcpp::DpdkDevice::DpdkDeviceConfiguration::receiveDescriptorsNumber

When configuring a DPDK RX queue, DPDK creates descriptors it will use for receiving packets from the network to this RX queue. This parameter enables to configure the number of descriptors that will be created for each RX queue

uint16_t pcpp::DpdkDevice::DpdkDeviceConfiguration::transmitDescriptorsNumber

When configuring a DPDK TX queue, DPDK creates descriptors it will use for transmitting packets to the network through this TX queue. This parameter enables to configure the number of descriptors that will be created for each TX queue