#include <stdint.h>
#include <string.h>
#include <unistd.h>
#include <signal.h>
#include <errno.h>
#include <sys/time.h>
#include <doca_dev.h>
#include <doca_log.h>
#include <doca_flow.h>
#include "doca_error.h"
#include "flow_common.h"
Go to the source code of this file.
|
| | DOCA_LOG_REGISTER (FLOW_SWITCH_HOT_UPGRADE) |
| |
| static doca_error_t | create_switch_pipe (struct doca_flow_port *port, struct doca_flow_pipe **pipe) |
| |
| static doca_error_t | add_switch_pipe_entries (uint8_t switch_port_idx, struct port_control *control, struct entries_status *status) |
| |
| static doca_error_t | port_control_init (struct doca_flow_port *port, struct doca_dev *dev, uint8_t switch_port_idx, enum doca_flow_port_operation_state state, struct entries_status *status, struct port_control *control) |
| |
| static void | ports_operation_state_modify (enum doca_flow_port_operation_state state) |
| |
| static void | activate_signal_handler (int signum) |
| |
| static void | quit_signal_handler (int signum) |
| |
| static int | signal_handler_register (void) |
| |
| static doca_error_t | port_control_query (struct port_control *control) |
| |
| doca_error_t | flow_switch_hot_upgrade (int nb_queues, int nb_ports, struct doca_dev *dev_main, struct doca_dev *dev_sec, enum doca_flow_port_operation_state state) |
| |
◆ DEFAULT_CTRL_PIPE_SIZE
| #define DEFAULT_CTRL_PIPE_SIZE (8192) |
◆ FLOW_SWITCH_PROXY_PORT_NB
| #define FLOW_SWITCH_PROXY_PORT_NB 2 |
◆ INTERVAL_QUERY_TIME
| #define INTERVAL_QUERY_TIME 1 |
◆ SEC2USEC
| #define SEC2USEC |
( |
|
sec | ) |
((sec) * (1000000L)) |
◆ activate_signal_handler()
| static void activate_signal_handler |
( |
int |
signum | ) |
|
|
static |
◆ add_switch_pipe_entries()
◆ create_switch_pipe()
| static doca_error_t create_switch_pipe |
( |
struct doca_flow_port * |
port, |
|
|
struct doca_flow_pipe ** |
pipe |
|
) |
| |
|
static |
◆ DOCA_LOG_REGISTER()
| DOCA_LOG_REGISTER |
( |
FLOW_SWITCH_HOT_UPGRADE |
| ) |
|
◆ flow_switch_hot_upgrade()
◆ port_control_init()
◆ port_control_query()
◆ ports_operation_state_modify()
◆ quit_signal_handler()
| static void quit_signal_handler |
( |
int |
signum | ) |
|
|
static |
◆ signal_handler_register()
| static int signal_handler_register |
( |
void |
| ) |
|
|
static |
◆ current_state
◆ switch_ports
◆ waiting_for_traffic
| uint8_t waiting_for_traffic |
|
static |