DPDK  22.03.0
Data Structures | Typedefs
rte_swx_port.h File Reference
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  rte_swx_pkt
 
struct  rte_swx_port_in_stats
 
struct  rte_swx_port_in_ops
 
struct  rte_swx_port_out_stats
 
struct  rte_swx_port_out_ops
 

Typedefs

typedef void *(* rte_swx_port_in_create_t) (void *args)
 
typedef void(* rte_swx_port_in_free_t) (void *port)
 
typedef int(* rte_swx_port_in_pkt_rx_t) (void *port, struct rte_swx_pkt *pkt)
 
typedef void(* rte_swx_port_in_stats_read_t) (void *port, struct rte_swx_port_in_stats *stats)
 
typedef void *(* rte_swx_port_out_create_t) (void *args)
 
typedef void(* rte_swx_port_out_free_t) (void *port)
 
typedef void(* rte_swx_port_out_pkt_tx_t) (void *port, struct rte_swx_pkt *pkt)
 
typedef void(* rte_swx_port_out_flush_t) (void *port)
 
typedef void(* rte_swx_port_out_stats_read_t) (void *port, struct rte_swx_port_out_stats *stats)
 

Detailed Description

RTE SWX Port

Packet I/O port interface.

Definition in file rte_swx_port.h.

Typedef Documentation

◆ rte_swx_port_in_create_t

typedef void*(* rte_swx_port_in_create_t) (void *args)

Input port create

Parameters
[in]argsArguments for input port creation. Format specific to each port type.
Returns
Handle to input port instance on success, NULL on error.

Definition at line 48 of file rte_swx_port.h.

◆ rte_swx_port_in_free_t

typedef void(* rte_swx_port_in_free_t) (void *port)

Input port free

Parameters
[in]portInput port handle.

Definition at line 57 of file rte_swx_port.h.

◆ rte_swx_port_in_pkt_rx_t

typedef int(* rte_swx_port_in_pkt_rx_t) (void *port, struct rte_swx_pkt *pkt)

Input port packet receive

Parameters
[in]portInput port handle.
[out]pktReceived packet. Only valid when the function returns 1. Must point to valid memory.
Returns
0 when no packet was received, 1 when a packet was received. No other return values are allowed.

Definition at line 72 of file rte_swx_port.h.

◆ rte_swx_port_in_stats_read_t

typedef void(* rte_swx_port_in_stats_read_t) (void *port, struct rte_swx_port_in_stats *stats)

Input port statistics counters read

Parameters
[in]portInput port handle.
[out]statsInput port statistics counters. Must point to valid memory.

Definition at line 96 of file rte_swx_port.h.

◆ rte_swx_port_out_create_t

typedef void*(* rte_swx_port_out_create_t) (void *args)

Output port create

Parameters
[in]argsArguments for output port creation. Format specific to each port type.
Returns
Handle to output port instance on success, NULL on error.

Definition at line 127 of file rte_swx_port.h.

◆ rte_swx_port_out_free_t

typedef void(* rte_swx_port_out_free_t) (void *port)

Output port free

Parameters
[in]portOutput port handle.

Definition at line 136 of file rte_swx_port.h.

◆ rte_swx_port_out_pkt_tx_t

typedef void(* rte_swx_port_out_pkt_tx_t) (void *port, struct rte_swx_pkt *pkt)

Output port packet transmit

Parameters
[in]portOutput port handle.
[in]pktPacket to be transmitted.

Definition at line 147 of file rte_swx_port.h.

◆ rte_swx_port_out_flush_t

typedef void(* rte_swx_port_out_flush_t) (void *port)

Output port flush

Parameters
[in]portOutput port handle.

Definition at line 157 of file rte_swx_port.h.

◆ rte_swx_port_out_stats_read_t

typedef void(* rte_swx_port_out_stats_read_t) (void *port, struct rte_swx_port_out_stats *stats)

Output port statistics counters read

Parameters
[in]portOutput port handle.
[out]statsOutput port statistics counters. Must point to valid memory.

Definition at line 177 of file rte_swx_port.h.