#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <rte_byteorder.h>
#include <rte_random.h>
#include <doca_flow.h>
#include <doca_flow_definitions.h>
#include <doca_log.h>
#include "flow_common.h"
Go to the source code of this file.
|
| | DOCA_LOG_REGISTER (FLOW_AGING) |
| |
| static void | check_for_valid_entry_aging (struct doca_flow_pipe_entry *entry, uint16_t pipe_queue, enum doca_flow_entry_status status, enum doca_flow_entry_op op, void *user_ctx) |
| |
| static doca_error_t | create_aging_pipe (struct doca_flow_port *port, int port_id, uint32_t n_entries, struct doca_flow_pipe **pipe) |
| |
| static doca_error_t | add_aging_pipe_entries (struct doca_flow_pipe *pipe, struct aging_user_data *user_data, struct doca_flow_port *port, int port_id, int num_of_aging_entries, struct entries_status *status) |
| |
| static doca_error_t | miss_counter_query (struct doca_flow_pipe *pipe, int port_id) |
| |
| static doca_error_t | handle_aged_flow (struct doca_flow_port *port, int *total_counter) |
| |
| doca_error_t | flow_aging (int nb_queues) |
| |
◆ add_aging_pipe_entries()
| static doca_error_t add_aging_pipe_entries |
( |
struct doca_flow_pipe * |
pipe, |
|
|
struct aging_user_data * |
user_data, |
|
|
struct doca_flow_port * |
port, |
|
|
int |
port_id, |
|
|
int |
num_of_aging_entries, |
|
|
struct entries_status * |
status |
|
) |
| |
|
static |
◆ check_for_valid_entry_aging()
◆ create_aging_pipe()
| static doca_error_t create_aging_pipe |
( |
struct doca_flow_port * |
port, |
|
|
int |
port_id, |
|
|
uint32_t |
n_entries, |
|
|
struct doca_flow_pipe ** |
pipe |
|
) |
| |
|
static |
◆ DOCA_LOG_REGISTER()
| DOCA_LOG_REGISTER |
( |
FLOW_AGING |
| ) |
|
◆ flow_aging()
◆ handle_aged_flow()
| static doca_error_t handle_aged_flow |
( |
struct doca_flow_port * |
port, |
|
|
int * |
total_counter |
|
) |
| |
|
static |
◆ miss_counter_query()
| static doca_error_t miss_counter_query |
( |
struct doca_flow_pipe * |
pipe, |
|
|
int |
port_id |
|
) |
| |
|
static |