---
name: "rte_eth_stats"
section: "3"
platform: "linux"
package: "dpdk-doc"
version: "24.11.4-0+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rte_eth_stats"
---

# rte\_eth\_stats(3)

## NAME

rte\_eth\_stats

## SYNOPSIS

`#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. All byte-related statistics do not include Ethernet FCS regardless of whether these bytes have been delivered to the application (see RTE\_ETH\_RX\_OFFLOAD\_KEEP\_CRC).

Definition at line **262** of file **rte\_ethdev.h**.

## Field Documentation

### uint64\_t ipackets

Total number of successfully received packets.

Definition at line **263** of file **rte\_ethdev.h**.

### uint64\_t opackets

Total number of successfully transmitted packets.

Definition at line **264** of file **rte\_ethdev.h**.

### uint64\_t ibytes

Total number of successfully received bytes.

Definition at line **265** of file **rte\_ethdev.h**.

### uint64\_t obytes

Total number of successfully transmitted bytes.

Definition at line **266** of file **rte\_ethdev.h**.

### uint64\_t imissed

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

Definition at line **271** of file **rte\_ethdev.h**.

### uint64\_t ierrors

Total number of erroneous received packets.

Definition at line **272** of file **rte\_ethdev.h**.

### uint64\_t oerrors

Total number of failed transmitted packets.

Definition at line **273** of file **rte\_ethdev.h**.

### uint64\_t rx\_nombuf

Total number of Rx mbuf allocation failures.

Definition at line **274** of file **rte\_ethdev.h**.

### uint64\_t q\_ipackets\[RTE\_ETHDEV\_QUEUE\_STAT\_CNTRS\]

Total number of queue Rx packets.

Definition at line **277** of file **rte\_ethdev.h**.

### uint64\_t q\_opackets\[RTE\_ETHDEV\_QUEUE\_STAT\_CNTRS\]

Total number of queue Tx packets.

Definition at line **279** of file **rte\_ethdev.h**.

### uint64\_t q\_ibytes\[RTE\_ETHDEV\_QUEUE\_STAT\_CNTRS\]

Total number of successfully received queue bytes.

Definition at line **281** of file **rte\_ethdev.h**.

### uint64\_t q\_obytes\[RTE\_ETHDEV\_QUEUE\_STAT\_CNTRS\]

Total number of successfully transmitted queue bytes.

Definition at line **283** of file **rte\_ethdev.h**.

### uint64\_t q\_errors\[RTE\_ETHDEV\_QUEUE\_STAT\_CNTRS\]

Total number of queue packets received that are dropped.

Definition at line **285** of file **rte\_ethdev.h**.

## Author

Generated automatically by Doxygen for DPDK from the source code.
