129 std::vector<KniDevice*> m_Devices;
This file and KniDeviceList.h provide PcapPlusPlus C++ wrapper for DPDK KNI (Kernel Network Interface...
Definition: KniDevice.h:125
Definition: KniDeviceList.h:24
KniCallbackVersion
Definition: KniDeviceList.h:46
@ CALLBACKS_NEW
Definition: KniDeviceList.h:48
@ CALLBACKS_OLD
Definition: KniDeviceList.h:50
KniDevice * createDevice(const KniDevice::KniDeviceConfiguration &config, const size_t mempoolSize)
Factory method for KNI devices. Newly created device is remembered under portId and name provided in ...
KniDevice * getDeviceByName(const std::string &name)
Returns KNI device with specified name.
static KniDeviceList & getInstance()
Getter for singleton.
bool isInitialized()
Definition: KniDeviceList.h:80
static bool isCallbackSupported(const KniCallbackType cbType)
KniDevice * getDeviceByPort(const uint16_t portId)
Returns KNI device with specified portId.
KniCallbackType
Definition: KniDeviceList.h:56
@ CALLBACK_LINK
Definition: KniDeviceList.h:61
@ CALLBACK_PROMISC
Definition: KniDeviceList.h:65
@ CALLBACK_MTU
Definition: KniDeviceList.h:58
@ CALLBACK_MAC
Definition: KniDeviceList.h:63
static KniCallbackVersion callbackVersion()
The main namespace for the PcapPlusPlus lib.
KNI device initialization data. Used to create new KNI device. Usage of callbacks member or oldCallba...
Definition: KniDevice.h:234