#include <string.h>
#include <unistd.h>
#include <rte_byteorder.h>
#include <rte_ethdev.h>
#include <rte_mempool.h>
#include <rte_mbuf.h>
#include <rte_net.h>
#include <doca_log.h>
#include <doca_flow.h>
#include <doca_dev.h>
#include "flow_common.h"
#include "flow_switch_common.h"
Go to the source code of this file.
|
| | DOCA_LOG_REGISTER (FLOW_SWITCH_TO_WIRE) |
| |
| static void | handle_rx_tx_pkts (uint32_t port_id, uint16_t nb_queues) |
| |
| static doca_error_t | create_rss_pipe (struct doca_flow_port *port, struct doca_flow_pipe **pipe) |
| |
| static doca_error_t | add_rss_pipe_entry (struct doca_flow_pipe *pipe, struct entries_status *status) |
| |
| static doca_error_t | create_switch_egress_pipe (struct doca_flow_port *sw_port, struct doca_flow_pipe **pipe) |
| |
| static doca_error_t | create_switch_ingress_pipe (struct doca_flow_port *sw_port, uint32_t mirror_id, struct doca_flow_pipe **pipe) |
| |
| static doca_error_t | create_switch_vport_pipe (struct doca_flow_port *sw_port, struct doca_flow_pipe **pipe) |
| |
| static doca_error_t | add_switch_egress_pipe_entries (struct doca_flow_pipe *pipe, struct entries_status *status) |
| |
| static doca_error_t | add_switch_ingress_pipe_entries (struct doca_flow_pipe *pipe, struct entries_status *status) |
| |
| static doca_error_t | add_switch_vport_pipe_entries (struct doca_flow_pipe *pipe, struct entries_status *status) |
| |
| doca_error_t | flow_switch_to_wire (int nb_queues, int nb_ports, struct flow_switch_ctx *ctx) |
| |
◆ MAX_PKTS
◆ NB_EGRESS_ENTRIES
| #define NB_EGRESS_ENTRIES 3 |
◆ NB_INGRESS_ENTRIES
| #define NB_INGRESS_ENTRIES 2 |
◆ NB_TOTAL_ENTRIES
◆ NB_VPORT_ENTRIES
| #define NB_VPORT_ENTRIES 3 |
◆ WAIT_SECS
◆ add_rss_pipe_entry()
◆ add_switch_egress_pipe_entries()
◆ add_switch_ingress_pipe_entries()
◆ add_switch_vport_pipe_entries()
◆ create_rss_pipe()
| static doca_error_t create_rss_pipe |
( |
struct doca_flow_port * |
port, |
|
|
struct doca_flow_pipe ** |
pipe |
|
) |
| |
|
static |
◆ create_switch_egress_pipe()
| static doca_error_t create_switch_egress_pipe |
( |
struct doca_flow_port * |
sw_port, |
|
|
struct doca_flow_pipe ** |
pipe |
|
) |
| |
|
static |
◆ create_switch_ingress_pipe()
| static doca_error_t create_switch_ingress_pipe |
( |
struct doca_flow_port * |
sw_port, |
|
|
uint32_t |
mirror_id, |
|
|
struct doca_flow_pipe ** |
pipe |
|
) |
| |
|
static |
◆ create_switch_vport_pipe()
| static doca_error_t create_switch_vport_pipe |
( |
struct doca_flow_port * |
sw_port, |
|
|
struct doca_flow_pipe ** |
pipe |
|
) |
| |
|
static |
◆ DOCA_LOG_REGISTER()
| DOCA_LOG_REGISTER |
( |
FLOW_SWITCH_TO_WIRE |
| ) |
|
◆ flow_switch_to_wire()
◆ handle_rx_tx_pkts()
| static void handle_rx_tx_pkts |
( |
uint32_t |
port_id, |
|
|
uint16_t |
nb_queues |
|
) |
| |
|
static |
◆ egress_entries
◆ ingress_entries
◆ pipe_egress
| struct doca_flow_pipe* pipe_egress |
|
static |
◆ pipe_ingress
| struct doca_flow_pipe* pipe_ingress |
|
static |
◆ pipe_rss
| struct doca_flow_pipe* pipe_rss |
|
static |
◆ pipe_vport
| struct doca_flow_pipe* pipe_vport |
|
static |
◆ rss_entry
| struct doca_flow_pipe_entry* rss_entry |
|
static |
◆ vport_entries