PcapPlusPlus  24.09
pcpp::XdpDevice::XdpDeviceStats Struct Reference

#include <XdpDevice.h>

Public Attributes

timespec timestamp
 
uint64_t rxPackets
 
uint64_t rxPacketsPerSec
 
uint64_t rxBytes
 
uint64_t rxBytesPerSec
 
uint64_t rxDroppedTotalPackets
 
uint64_t rxDroppedInvalidPackets
 
uint64_t rxDroppedRxRingFullPackets
 
uint64_t rxDroppedFillRingPackets
 
uint64_t rxPollTimeout
 
uint64_t txSentPackets
 
uint64_t txSentPacketsPerSec
 
uint64_t txSentBytes
 
uint64_t txSentBytesPerSec
 
uint64_t txCompletedPackets
 
uint64_t txCompletedPacketsPerSec
 
uint64_t txDroppedInvalidPackets
 
uint64_t rxRingId
 
uint64_t txRingId
 
uint64_t fqRingId
 
uint64_t cqRingId
 
uint64_t umemAllocatedFrames
 
uint64_t umemFreeFrames
 

Detailed Description

A container for XDP device statistics

Member Data Documentation

◆ cqRingId

uint64_t pcpp::XdpDevice::XdpDeviceStats::cqRingId

Current completion ring ID

◆ fqRingId

uint64_t pcpp::XdpDevice::XdpDeviceStats::fqRingId

Current fill ring ID

◆ rxBytes

uint64_t pcpp::XdpDevice::XdpDeviceStats::rxBytes

Number of bytes received

◆ rxBytesPerSec

uint64_t pcpp::XdpDevice::XdpDeviceStats::rxBytesPerSec

Bytes per second received. Measured from to the previous time stats were collected

◆ rxDroppedFillRingPackets

uint64_t pcpp::XdpDevice::XdpDeviceStats::rxDroppedFillRingPackets

Failed RX packets to retrieve item from fill ring

◆ rxDroppedInvalidPackets

uint64_t pcpp::XdpDevice::XdpDeviceStats::rxDroppedInvalidPackets

RX packets dropped due to invalid descriptor

◆ rxDroppedRxRingFullPackets

uint64_t pcpp::XdpDevice::XdpDeviceStats::rxDroppedRxRingFullPackets

RX packets dropped due to RX ring being full

◆ rxDroppedTotalPackets

uint64_t pcpp::XdpDevice::XdpDeviceStats::rxDroppedTotalPackets

Total number of dropped RX packets

◆ rxPackets

uint64_t pcpp::XdpDevice::XdpDeviceStats::rxPackets

Number of packets received

◆ rxPacketsPerSec

uint64_t pcpp::XdpDevice::XdpDeviceStats::rxPacketsPerSec

Packets received per second. Measured from to the previous time stats were collected

◆ rxPollTimeout

uint64_t pcpp::XdpDevice::XdpDeviceStats::rxPollTimeout

Number of poll() timeouts

◆ rxRingId

uint64_t pcpp::XdpDevice::XdpDeviceStats::rxRingId

Current RX ring ID

◆ timestamp

timespec pcpp::XdpDevice::XdpDeviceStats::timestamp

The timestamp when the stats were collected

◆ txCompletedPackets

uint64_t pcpp::XdpDevice::XdpDeviceStats::txCompletedPackets

Number of completed sent packets, meaning packets that were confirmed as sent by the kernel

◆ txCompletedPacketsPerSec

uint64_t pcpp::XdpDevice::XdpDeviceStats::txCompletedPacketsPerSec

Completed sent packets per second. Measured from to the previous time stats were collected

◆ txDroppedInvalidPackets

uint64_t pcpp::XdpDevice::XdpDeviceStats::txDroppedInvalidPackets

TX packets dropped due to invalid descriptor

◆ txRingId

uint64_t pcpp::XdpDevice::XdpDeviceStats::txRingId

Current TX ring ID

◆ txSentBytes

uint64_t pcpp::XdpDevice::XdpDeviceStats::txSentBytes

Number of bytes sent from the application

◆ txSentBytesPerSec

uint64_t pcpp::XdpDevice::XdpDeviceStats::txSentBytesPerSec

Bytes per second sent from the app. Measured from to the previous time stats were collected

◆ txSentPackets

uint64_t pcpp::XdpDevice::XdpDeviceStats::txSentPackets

Number of packets sent from the application

◆ txSentPacketsPerSec

uint64_t pcpp::XdpDevice::XdpDeviceStats::txSentPacketsPerSec

Packets sent from the app per second. Measured from to the previous time stats were collected

◆ umemAllocatedFrames

uint64_t pcpp::XdpDevice::XdpDeviceStats::umemAllocatedFrames

Number of UMEM frames that are currently in-use (allocated)

◆ umemFreeFrames

uint64_t pcpp::XdpDevice::XdpDeviceStats::umemFreeFrames

Number of UMEM frames that are currently free (not allocated)