#include <string.h>
#include <unistd.h>
#include <rte_byteorder.h>
#include <rte_ethdev.h>
#include <doca_log.h>
#include <doca_flow.h>
#include "flow_common.h"
#include "flow_switch_common.h"
Go to the source code of this file.
|
| | DOCA_LOG_REGISTER (FLOW_SHARED_MIRROR) |
| |
| static doca_error_t | create_shared_mirror_pipe (struct doca_flow_port *port, enum doca_flow_l4_type_ext out_l4_type, struct doca_flow_fwd *fwd, bool match_src, uint32_t mirror_id, struct doca_flow_pipe **pipe) |
| |
| static doca_error_t | add_shared_mirror_pipe_entry (struct doca_flow_pipe *pipe, enum doca_flow_l4_type_ext out_l4_type, struct doca_flow_fwd *fwd, bool match_src, uint32_t shared_mirror_id, struct entries_status *status) |
| |
| static doca_error_t | create_control_pipe (struct doca_flow_port *port, struct doca_flow_pipe **pipe) |
| |
| static doca_error_t | add_control_pipe_entries (struct doca_flow_pipe *control_pipe, struct doca_flow_pipe *tcp_pipe, struct doca_flow_pipe *udp_pipe, struct entries_status *status) |
| |
| doca_error_t | flow_shared_mirror (int nb_ports, int nb_queues, struct flow_switch_ctx *ctx) |
| |
◆ SAMPLE_ENTRY_TOTAL
◆ SAMPLE_MIRROR_CONTROL_ENTRY_MAX
| #define SAMPLE_MIRROR_CONTROL_ENTRY_MAX 2 |
◆ SAMPLE_MIRROR_ENTRY_MAX
| #define SAMPLE_MIRROR_ENTRY_MAX 4 |
◆ SET_L4_PORT
| #define SET_L4_PORT |
( |
|
layer, |
|
|
|
port, |
|
|
|
value |
|
) |
| |
Value: do { \
match.layer.tcp.l4_port.port = (
value); \
match.layer.udp.l4_port.port = (
value); \
} while (0)
@ DOCA_FLOW_L4_TYPE_EXT_TCP
@ DOCA_FLOW_L4_TYPE_EXT_UDP
Definition at line 40 of file flow_shared_mirror_sample.c.
◆ add_control_pipe_entries()
| static doca_error_t add_control_pipe_entries |
( |
struct doca_flow_pipe * |
control_pipe, |
|
|
struct doca_flow_pipe * |
tcp_pipe, |
|
|
struct doca_flow_pipe * |
udp_pipe, |
|
|
struct entries_status * |
status |
|
) |
| |
|
static |
◆ add_shared_mirror_pipe_entry()
◆ create_control_pipe()
| static doca_error_t create_control_pipe |
( |
struct doca_flow_port * |
port, |
|
|
struct doca_flow_pipe ** |
pipe |
|
) |
| |
|
static |
◆ create_shared_mirror_pipe()
◆ DOCA_LOG_REGISTER()
| DOCA_LOG_REGISTER |
( |
FLOW_SHARED_MIRROR |
| ) |
|
◆ flow_shared_mirror()
◆ mirror_entries
◆ mirror_idx