NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
upf_accel_pipeline.h File Reference
#include "upf_accel.h"
Include dependency graph for upf_accel_pipeline.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define UPF_ACCEL_PACKET_BURST   128
 
#define UPF_ACCEL_LOG_MAX_NUM_QER   16
 
#define UPF_ACCEL_MAX_NUM_QER   (1ul << UPF_ACCEL_LOG_MAX_NUM_QER)
 
#define UPF_ACCEL_LOG_MAX_NUM_URR   16
 
#define UPF_ACCEL_MAX_NUM_URR   (1ul << UPF_ACCEL_LOG_MAX_NUM_URR)
 
#define UPF_ACCEL_LOG_MAX_NUM_CONNECTIONS   19
 
#define UPF_ACCEL_MAX_NUM_CONNECTIONS   (1ul << UPF_ACCEL_LOG_MAX_NUM_CONNECTIONS)
 
#define UPF_ACCEL_LOG_MAX_NUM_VNIS   10
 
#define UPF_ACCEL_MAX_NUM_VNIS   (1ul << UPF_ACCEL_LOG_MAX_NUM_VNIS)
 
#define UPF_ACCEL_VERSION_IHL_IPV4   0x4500
 
#define UPF_ACCEL_ENCAP_TTL   UINT8_MAX
 
#define UPF_ACCEL_QFI_NONE   0
 
#define UPF_ACCEL_MAX_NUM_FAILED_ACCEL_PER_CORE   (1 << 15)
 

Functions

doca_error_t upf_accel_pipe_static_entry_add (struct upf_accel_ctx *upf_accel_ctx, enum upf_accel_port port_id, uint16_t pipe_queue, struct doca_flow_pipe *pipe, const struct doca_flow_match *match, const struct doca_flow_actions *actions, const struct doca_flow_monitor *mon, const struct doca_flow_fwd *fwd, uint32_t flags, void *usr_ctx, struct doca_flow_pipe_entry **entry)
 
doca_error_t upf_accel_pipeline_create (struct upf_accel_ctx *upf_accel_ctx)
 

Macro Definition Documentation

◆ UPF_ACCEL_ENCAP_TTL

#define UPF_ACCEL_ENCAP_TTL   UINT8_MAX

Definition at line 43 of file upf_accel_pipeline.h.

◆ UPF_ACCEL_LOG_MAX_NUM_CONNECTIONS

#define UPF_ACCEL_LOG_MAX_NUM_CONNECTIONS   19

Definition at line 37 of file upf_accel_pipeline.h.

◆ UPF_ACCEL_LOG_MAX_NUM_QER

#define UPF_ACCEL_LOG_MAX_NUM_QER   16

Definition at line 33 of file upf_accel_pipeline.h.

◆ UPF_ACCEL_LOG_MAX_NUM_URR

#define UPF_ACCEL_LOG_MAX_NUM_URR   16

Definition at line 35 of file upf_accel_pipeline.h.

◆ UPF_ACCEL_LOG_MAX_NUM_VNIS

#define UPF_ACCEL_LOG_MAX_NUM_VNIS   10

Definition at line 39 of file upf_accel_pipeline.h.

◆ UPF_ACCEL_MAX_NUM_CONNECTIONS

#define UPF_ACCEL_MAX_NUM_CONNECTIONS   (1ul << UPF_ACCEL_LOG_MAX_NUM_CONNECTIONS)

Definition at line 38 of file upf_accel_pipeline.h.

◆ UPF_ACCEL_MAX_NUM_FAILED_ACCEL_PER_CORE

#define UPF_ACCEL_MAX_NUM_FAILED_ACCEL_PER_CORE   (1 << 15)

Definition at line 51 of file upf_accel_pipeline.h.

◆ UPF_ACCEL_MAX_NUM_QER

#define UPF_ACCEL_MAX_NUM_QER   (1ul << UPF_ACCEL_LOG_MAX_NUM_QER)

Definition at line 34 of file upf_accel_pipeline.h.

◆ UPF_ACCEL_MAX_NUM_URR

#define UPF_ACCEL_MAX_NUM_URR   (1ul << UPF_ACCEL_LOG_MAX_NUM_URR)

Definition at line 36 of file upf_accel_pipeline.h.

◆ UPF_ACCEL_MAX_NUM_VNIS

#define UPF_ACCEL_MAX_NUM_VNIS   (1ul << UPF_ACCEL_LOG_MAX_NUM_VNIS)

Definition at line 40 of file upf_accel_pipeline.h.

◆ UPF_ACCEL_PACKET_BURST

#define UPF_ACCEL_PACKET_BURST   128

Definition at line 31 of file upf_accel_pipeline.h.

◆ UPF_ACCEL_QFI_NONE

#define UPF_ACCEL_QFI_NONE   0

Definition at line 45 of file upf_accel_pipeline.h.

◆ UPF_ACCEL_VERSION_IHL_IPV4

#define UPF_ACCEL_VERSION_IHL_IPV4   0x4500

Definition at line 42 of file upf_accel_pipeline.h.

Function Documentation

◆ upf_accel_pipe_static_entry_add()

doca_error_t upf_accel_pipe_static_entry_add ( struct upf_accel_ctx upf_accel_ctx,
enum upf_accel_port  port_id,
uint16_t  pipe_queue,
struct doca_flow_pipe *  pipe,
const struct doca_flow_match match,
const struct doca_flow_actions actions,
const struct doca_flow_monitor mon,
const struct doca_flow_fwd fwd,
uint32_t  flags,
void *  usr_ctx,
struct doca_flow_pipe_entry **  entry 
)

Definition at line 43 of file upf_accel_pipeline.c.

◆ upf_accel_pipeline_create()

doca_error_t upf_accel_pipeline_create ( struct upf_accel_ctx upf_accel_ctx)

Definition at line 1583 of file upf_accel_pipeline.c.