rte_port.h
- Provided by: dpdk-doc (Version: 25.11-2)
- Source: dpdk
- Report a bug
#include <stdint.h>
#include <rte_mbuf.h>
struct rte_port_in_stats
struct rte_port_in_ops
struct rte_port_out_stats
struct rte_port_out_ops
#define RTE_PORT_IN_BURST_SIZE_MAX 64
#define RTE_MBUF_METADATA_UINT8_PTR(mbuf, offset)
#define RTE_MBUF_METADATA_UINT16_PTR(mbuf, offset)
#define RTE_MBUF_METADATA_UINT32_PTR(mbuf, offset)
#define RTE_MBUF_METADATA_UINT64_PTR(mbuf, offset)
#define RTE_MBUF_METADATA_UINT8(mbuf, offset)
#define RTE_MBUF_METADATA_UINT16(mbuf, offset)
#define RTE_MBUF_METADATA_UINT32(mbuf, offset)
#define RTE_MBUF_METADATA_UINT64(mbuf, offset)
typedef void *(* rte_port_in_op_create) (void
*params, int socket_id)
typedef int(* rte_port_in_op_free) (void *port)
typedef int(* rte_port_in_op_rx) (void *port, struct
rte_mbuf **pkts, uint32_t n_pkts)
typedef int(* rte_port_in_op_stats_read) (void *port, struct
rte_port_in_stats *stats, int clear)
typedef void *(* rte_port_out_op_create) (void *params, int
socket_id)
typedef int(* rte_port_out_op_free) (void *port)
typedef int(* rte_port_out_op_tx) (void *port, struct
rte_mbuf *pkt)
typedef int(* rte_port_out_op_tx_bulk) (void *port, struct
rte_mbuf **pkts, uint64_t pkts_mask)
typedef int(* rte_port_out_op_flush) (void *port)
typedef int(* rte_port_out_op_stats_read) (void *port, struct
rte_port_out_stats *stats, int clear)
RTE Port
This tool is part of the DPDK Packet Framework tool suite and provides a standard interface to implement different types of packet ports.
Definition in file rte_port.h.
Value:
(&((uint8_t *)(mbuf))[offset])
Macros to allow accessing metadata stored in the mbuf headroom just beyond the end of the mbuf data structure returned by a port
Definition at line 23 of file rte_port.h.
Value:
((uint16_t *) RTE_MBUF_METADATA_UINT8_PTR(mbuf, offset))
Macros to allow accessing metadata stored in the mbuf headroom just beyond the end of the mbuf data structure returned by a port
Definition at line 25 of file rte_port.h.
Value:
((uint32_t *) RTE_MBUF_METADATA_UINT8_PTR(mbuf, offset))
Macros to allow accessing metadata stored in the mbuf headroom just beyond the end of the mbuf data structure returned by a port
Definition at line 27 of file rte_port.h.
Value:
((uint64_t *) RTE_MBUF_METADATA_UINT8_PTR(mbuf, offset))
Macros to allow accessing metadata stored in the mbuf headroom just beyond the end of the mbuf data structure returned by a port
Definition at line 29 of file rte_port.h.
Value:
(*RTE_MBUF_METADATA_UINT8_PTR(mbuf, offset))
Macros to allow accessing metadata stored in the mbuf headroom just beyond the end of the mbuf data structure returned by a port
Definition at line 32 of file rte_port.h.
Value:
(*RTE_MBUF_METADATA_UINT16_PTR(mbuf, offset))
Macros to allow accessing metadata stored in the mbuf headroom just beyond the end of the mbuf data structure returned by a port
Definition at line 34 of file rte_port.h.
Value:
(*RTE_MBUF_METADATA_UINT32_PTR(mbuf, offset))
Macros to allow accessing metadata stored in the mbuf headroom just beyond the end of the mbuf data structure returned by a port
Definition at line 36 of file rte_port.h.
Value:
(*RTE_MBUF_METADATA_UINT64_PTR(mbuf, offset))
Macros to allow accessing metadata stored in the mbuf headroom just beyond the end of the mbuf data structure returned by a port
Definition at line 38 of file rte_port.h.
Maximum number of packets read from any input port in a single burst. Cannot be changed.
Definition at line 47 of file rte_port.h.
Input port create
Parameters
Returns
Definition at line 65 of file rte_port.h.
Input port free
Parameters
Returns
Definition at line 75 of file rte_port.h.
Input port packet burst RX
Parameters
Returns
Definition at line 89 of file rte_port.h.
Input port stats get
Parameters
Returns
Definition at line 107 of file rte_port.h.
Output port create
Parameters
Returns
Definition at line 139 of file rte_port.h.
Output port free
Parameters
Returns
Definition at line 149 of file rte_port.h.
Output port single packet TX
Parameters
Returns
Definition at line 161 of file rte_port.h.
Output port packet burst TX
Parameters
Returns
Definition at line 180 of file rte_port.h.
Output port flush
Parameters
Returns
Definition at line 193 of file rte_port.h.
Output port stats read
Parameters
Returns
Definition at line 208 of file rte_port.h.
Generated automatically by Doxygen for DPDK from the source code.