DPDK 25.11.3
Loading...
Searching...
No Matches
rte_mbuf Struct Reference

#include <rte_mbuf_core.h>

Data Fields

void * buf_addr
struct rte_mbufnext
uint64_t ol_flags
struct rte_mempoolpool
uint64_t dynfield2
struct rte_mbuf_ext_shared_infoshinfo
uint16_t priv_size
uint16_t timesync
uint32_t dynfield1 [9]

Detailed Description

The generic rte_mbuf, containing a packet mbuf.

Examples
examples/bbdev_app/main.c, examples/bond/main.c, examples/bpf/t2.c, examples/bpf/t3.c, examples/distributor/main.c, examples/dma/dmafwd.c, examples/ethtool/ethtool-app/main.c, examples/fips_validation/fips_dev_self_test.c, examples/fips_validation/main.c, examples/flow_filtering/main.c, examples/ip_fragmentation/main.c, examples/ip_pipeline/mempool.c, examples/ip_pipeline/pipeline.c, examples/ip_reassembly/main.c, examples/ipsec-secgw/esp.c, examples/ipsec-secgw/ipsec-secgw.c, examples/ipsec-secgw/ipsec.c, examples/ipsec-secgw/ipsec_process.c, examples/ipsec-secgw/ipsec_worker.c, examples/ipsec-secgw/sa.c, examples/ipv4_multicast/main.c, examples/l2fwd-cat/l2fwd-cat.c, examples/l2fwd-crypto/main.c, examples/l2fwd-event/l2fwd_event.c, examples/l2fwd-event/l2fwd_poll.c, examples/l2fwd-jobstats/main.c, examples/l2fwd-keepalive/main.c, examples/l2fwd-macsec/main.c, examples/l2fwd/main.c, examples/l3fwd-power/main.c, examples/l3fwd/l3fwd_acl.c, examples/l3fwd/l3fwd_em.c, examples/l3fwd/l3fwd_fib.c, examples/l3fwd/l3fwd_lpm.c, examples/link_status_interrupt/main.c, examples/multi_process/client_server_mp/mp_client/client.c, examples/multi_process/client_server_mp/mp_server/main.c, examples/multi_process/symmetric_mp/main.c, examples/ntb/ntb_fwd.c, examples/packet_ordering/main.c, examples/ptpclient/ptpclient.c, examples/qos_meter/main.c, examples/qos_sched/app_thread.c, examples/rxtx_callbacks/main.c, examples/server_node_efd/efd_node/node.c, examples/server_node_efd/efd_server/main.c, examples/skeleton/basicfwd.c, examples/vhost/main.c, examples/vhost/virtio_net.c, examples/vmdq/main.c, and examples/vmdq_dcb/main.c.

Definition at line 475 of file rte_mbuf_core.h.

Field Documentation

◆ buf_addr

void* buf_addr

Virtual address of segment buffer.

Definition at line 476 of file rte_mbuf_core.h.

◆ next

struct rte_mbuf* next

Next segment of scattered packet. This field is valid when physical address field is undefined. Otherwise next pointer in the second cache line will be used.

Examples
examples/fips_validation/main.c, examples/ipv4_multicast/main.c, examples/vhost/main.c, and examples/vhost/virtio_net.c.

Definition at line 493 of file rte_mbuf_core.h.

◆ ol_flags

◆ pool

struct rte_mempool* pool

Pool from which mbuf was allocated.

Definition at line 615 of file rte_mbuf_core.h.

◆ dynfield2

uint64_t dynfield2

Reserved for dynamic fields when the next pointer is in first cache line (i.e. RTE_IOVA_IN_MBUF is 0).

Definition at line 635 of file rte_mbuf_core.h.

◆ shinfo

struct rte_mbuf_ext_shared_info* shinfo

Shared data for external buffer attached to mbuf. See rte_pktmbuf_attach_extbuf().

Definition at line 678 of file rte_mbuf_core.h.

◆ priv_size

uint16_t priv_size

Size of the application private data. In case of an indirect mbuf, it stores the direct mbuf private data size.

Definition at line 683 of file rte_mbuf_core.h.

◆ timesync

uint16_t timesync

Timesync flags for use with IEEE1588.

Examples
examples/ptpclient/ptpclient.c.

Definition at line 686 of file rte_mbuf_core.h.

◆ dynfield1

uint32_t dynfield1[9]

Reserved for dynamic fields.

Definition at line 688 of file rte_mbuf_core.h.


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