DPDK  19.11.13
Data Fields
rte_eth_stats Struct Reference

#include <rte_ethdev.h>

Data Fields

uint64_t ipackets
 
uint64_t opackets
 
uint64_t ibytes
 
uint64_t obytes
 
uint64_t imissed
 
uint64_t ierrors
 
uint64_t oerrors
 
uint64_t rx_nombuf
 
uint64_t q_ipackets [RTE_ETHDEV_QUEUE_STAT_CNTRS]
 
uint64_t q_opackets [RTE_ETHDEV_QUEUE_STAT_CNTRS]
 
uint64_t q_ibytes [RTE_ETHDEV_QUEUE_STAT_CNTRS]
 
uint64_t q_obytes [RTE_ETHDEV_QUEUE_STAT_CNTRS]
 
uint64_t q_errors [RTE_ETHDEV_QUEUE_STAT_CNTRS]
 

Detailed Description

A structure used to retrieve statistics for an Ethernet port. Not all statistics fields in struct rte_eth_stats are supported by any type of network interface card (NIC). If any statistics field is not supported, its value is 0.

Examples:
examples/distributor/main.c, examples/ethtool/ethtool-app/ethapp.c, examples/ethtool/lib/rte_ethtool.c, examples/ip_pipeline/cli.c, examples/ntb/ntb_fwd.c, examples/packet_ordering/main.c, examples/qos_sched/main.c, and examples/vm_power_manager/channel_monitor.c.

Definition at line 243 of file rte_ethdev.h.

Field Documentation

◆ ipackets

uint64_t ipackets

◆ opackets

uint64_t opackets

Total number of successfully transmitted packets.

Examples:
examples/distributor/main.c, examples/ethtool/ethtool-app/ethapp.c, examples/ip_pipeline/cli.c, examples/ntb/ntb_fwd.c, and examples/qos_sched/main.c.

Definition at line 245 of file rte_ethdev.h.

◆ ibytes

uint64_t ibytes

Total number of successfully received bytes.

Examples:
examples/ethtool/ethtool-app/ethapp.c, examples/ip_pipeline/cli.c, and examples/ntb/ntb_fwd.c.

Definition at line 246 of file rte_ethdev.h.

◆ obytes

uint64_t obytes

Total number of successfully transmitted bytes.

Examples:
examples/ethtool/ethtool-app/ethapp.c, examples/ip_pipeline/cli.c, and examples/ntb/ntb_fwd.c.

Definition at line 247 of file rte_ethdev.h.

◆ imissed

uint64_t imissed

Total of RX packets dropped by the HW, because there are no available buffer (i.e. RX queues are full).

Examples:
examples/ip_pipeline/cli.c, and examples/ntb/ntb_fwd.c.

Definition at line 248 of file rte_ethdev.h.

◆ ierrors

uint64_t ierrors

Total number of erroneous received packets.

Examples:
examples/ethtool/ethtool-app/ethapp.c, examples/ip_pipeline/cli.c, examples/ntb/ntb_fwd.c, and examples/qos_sched/main.c.

Definition at line 252 of file rte_ethdev.h.

◆ oerrors

uint64_t oerrors

Total number of failed transmitted packets.

Examples:
examples/ethtool/ethtool-app/ethapp.c, examples/ip_pipeline/cli.c, examples/ntb/ntb_fwd.c, and examples/qos_sched/main.c.

Definition at line 253 of file rte_ethdev.h.

◆ rx_nombuf

uint64_t rx_nombuf

Total number of RX mbuf allocation failures.

Examples:
examples/ip_pipeline/cli.c, and examples/qos_sched/main.c.

Definition at line 254 of file rte_ethdev.h.

◆ q_ipackets

uint64_t q_ipackets[RTE_ETHDEV_QUEUE_STAT_CNTRS]

Total number of queue RX packets.

Definition at line 255 of file rte_ethdev.h.

◆ q_opackets

uint64_t q_opackets[RTE_ETHDEV_QUEUE_STAT_CNTRS]

Total number of queue TX packets.

Definition at line 257 of file rte_ethdev.h.

◆ q_ibytes

uint64_t q_ibytes[RTE_ETHDEV_QUEUE_STAT_CNTRS]

Total number of successfully received queue bytes.

Definition at line 259 of file rte_ethdev.h.

◆ q_obytes

uint64_t q_obytes[RTE_ETHDEV_QUEUE_STAT_CNTRS]

Total number of successfully transmitted queue bytes.

Definition at line 261 of file rte_ethdev.h.

◆ q_errors

uint64_t q_errors[RTE_ETHDEV_QUEUE_STAT_CNTRS]

Total number of queue packets received that are dropped.

Definition at line 263 of file rte_ethdev.h.


The documentation for this struct was generated from the following file: