#include <string.h>
#include <unistd.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_PIPE_RESIZE) |
| |
| static doca_error_t | pipe_resize_sample_nr_entries_changed_cb (void *pipe_user_ctx, uint32_t nr_entries) |
| |
| static doca_error_t | pipe_resize_sample_entry_relocate_cb (void *pipe_user_ctx, uint16_t pipe_queue, void *entry_user_ctx, void **new_entry_user_ctx) |
| |
| static doca_error_t | create_resizable_pipe (struct doca_flow_port *port, bool is_basic_pipe, uint16_t nb_queues, struct doca_flow_pipe **pipe) |
| |
| static void | remove_resizable_pipe_entries (void) |
| |
| static doca_error_t | add_resizable_pipe_entries (struct doca_flow_pipe *pipe, int port_id, uint16_t nb_queues, bool is_basic_pipe) |
| |
| static void | pipe_process_cb (struct doca_flow_pipe *pipe, enum doca_flow_pipe_status status, enum doca_flow_pipe_op op, void *user_ctx) |
| |
| doca_error_t | flow_pipe_resize (uint16_t nb_queues, struct flow_switch_ctx *ctx, bool is_basic_pipe) |
| |
◆ MAX_ENTRIES
◆ PERCENTAGE
◆ PIPE_SIZE
◆ add_resizable_pipe_entries()
| static doca_error_t add_resizable_pipe_entries |
( |
struct doca_flow_pipe * |
pipe, |
|
|
int |
port_id, |
|
|
uint16_t |
nb_queues, |
|
|
bool |
is_basic_pipe |
|
) |
| |
|
static |
◆ create_resizable_pipe()
| static doca_error_t create_resizable_pipe |
( |
struct doca_flow_port * |
port, |
|
|
bool |
is_basic_pipe, |
|
|
uint16_t |
nb_queues, |
|
|
struct doca_flow_pipe ** |
pipe |
|
) |
| |
|
static |
◆ DOCA_LOG_REGISTER()
| DOCA_LOG_REGISTER |
( |
FLOW_PIPE_RESIZE |
| ) |
|
◆ flow_pipe_resize()
◆ pipe_process_cb()
◆ pipe_resize_sample_entry_relocate_cb()
| static doca_error_t pipe_resize_sample_entry_relocate_cb |
( |
void * |
pipe_user_ctx, |
|
|
uint16_t |
pipe_queue, |
|
|
void * |
entry_user_ctx, |
|
|
void ** |
new_entry_user_ctx |
|
) |
| |
|
static |
◆ pipe_resize_sample_nr_entries_changed_cb()
| static doca_error_t pipe_resize_sample_nr_entries_changed_cb |
( |
void * |
pipe_user_ctx, |
|
|
uint32_t |
nr_entries |
|
) |
| |
|
static |
◆ remove_resizable_pipe_entries()
| static void remove_resizable_pipe_entries |
( |
void |
| ) |
|
|
static |
◆ congestion_notified
◆ congestion_reached_flag
| int congestion_reached_flag |
|
static |
◆ entry
◆ entry_ctx
◆ entry_relocation_cb
◆ nr_entries_changed_cb
◆ ports
| struct doca_flow_port* ports[3] |
|
static |
◆ resize_cb_received