#include <rte_ethdev.h>
#include <doca_log.h>
#include "utils.h"
#include "dpdk_utils.h"
#include "flow_pipes_manager.h"
#include "switch_core.h"
#include "flow_common.h"
Go to the source code of this file.
|
| | DOCA_LOG_REGISTER (SWITCH::Core) |
| |
| static void | pipe_create (struct doca_flow_pipe_cfg *cfg, uint16_t port_id, struct doca_flow_fwd *fwd, uint64_t fw_pipe_id, struct doca_flow_fwd *fwd_miss, uint64_t fw_miss_pipe_id) |
| |
| static void | pipe_add_entry (uint16_t pipe_queue, uint64_t pipe_id, struct doca_flow_match *match, struct doca_flow_actions *actions, struct doca_flow_monitor *monitor, struct doca_flow_fwd *fwd, uint64_t fw_pipe_id, uint32_t flags) |
| |
| static void | pipe_control_add_entry (uint16_t pipe_queue, uint8_t priority, uint64_t pipe_id, struct doca_flow_match *match, struct doca_flow_match *match_mask, struct doca_flow_fwd *fwd, uint64_t fw_pipe_id) |
| |
| static void | pipe_destroy (uint64_t pipe_id) |
| |
| static void | pipe_rm_entry (uint16_t pipe_queue, uint64_t entry_id, uint32_t flags) |
| |
| static void | port_pipes_flush (uint16_t port_id) |
| |
| static void | flow_query (uint64_t entry_id, struct doca_flow_resource_query *stats) |
| |
| static void | port_pipes_dump (uint16_t port_id, FILE *fd) |
| |
| static void | register_actions_on_flow_parser (void) |
| |
| doca_error_t | switch_init (struct application_dpdk_config *app_dpdk_config, struct flow_switch_ctx *ctx) |
| |
| void | switch_destroy (void) |
| |
◆ DEFAULT_TIMEOUT_US
| #define DEFAULT_TIMEOUT_US (10000) /* Timeout for processing pipe entries */ |
◆ MAX_PORT_STR_LEN
| #define MAX_PORT_STR_LEN 128 /* Maximal length of port name */ |
◆ DOCA_LOG_REGISTER()
| DOCA_LOG_REGISTER |
( |
SWITCH::Core |
| ) |
|
◆ flow_query()
◆ pipe_add_entry()
◆ pipe_control_add_entry()
◆ pipe_create()
| static void pipe_create |
( |
struct doca_flow_pipe_cfg * |
cfg, |
|
|
uint16_t |
port_id, |
|
|
struct doca_flow_fwd * |
fwd, |
|
|
uint64_t |
fw_pipe_id, |
|
|
struct doca_flow_fwd * |
fwd_miss, |
|
|
uint64_t |
fw_miss_pipe_id |
|
) |
| |
|
static |
◆ pipe_destroy()
| static void pipe_destroy |
( |
uint64_t |
pipe_id | ) |
|
|
static |
◆ pipe_rm_entry()
| static void pipe_rm_entry |
( |
uint16_t |
pipe_queue, |
|
|
uint64_t |
entry_id, |
|
|
uint32_t |
flags |
|
) |
| |
|
static |
◆ port_pipes_dump()
| static void port_pipes_dump |
( |
uint16_t |
port_id, |
|
|
FILE * |
fd |
|
) |
| |
|
static |
◆ port_pipes_flush()
| static void port_pipes_flush |
( |
uint16_t |
port_id | ) |
|
|
static |
◆ register_actions_on_flow_parser()
| static void register_actions_on_flow_parser |
( |
void |
| ) |
|
|
static |
◆ switch_destroy()
| void switch_destroy |
( |
void |
| ) |
|
◆ switch_init()
◆ actions_mem_size
◆ nb_ports
◆ pipes_manager
◆ ports