#include <string.h>
#include <unistd.h>
#include <stdint.h>
#include <signal.h>
#include <rte_ethdev.h>
#include <doca_log.h>
#include <doca_flow.h>
#include <doca_bitfield.h>
#include "flow_common.h"
Go to the source code of this file.
|
| #define | PACKET_BURST 128 /* The number of packets in the rx queue */ |
| |
|
| | DOCA_LOG_REGISTER (FLOW_LOOPBACK) |
| |
| static void | signal_handler (int signum) |
| |
| static void | process_packets (int ingress_port) |
| |
| static doca_error_t | create_rss_tcp_ip_pipe (struct doca_flow_port *port, struct doca_flow_pipe *miss_pipe, struct doca_flow_pipe **pipe) |
| |
| static doca_error_t | add_rss_tcp_ip_pipe_entry (struct doca_flow_pipe *pipe, struct entries_status *status) |
| |
| static doca_error_t | create_rss_udp_ip_pipe (struct doca_flow_port *port, struct doca_flow_pipe **pipe) |
| |
| static doca_error_t | add_rss_rss_udp_ip_pipe_entry (struct doca_flow_pipe *pipe, struct entries_status *status) |
| |
| static doca_error_t | create_loopback_pipe (struct doca_flow_port *port, uint16_t port_id, struct doca_flow_pipe **pipe) |
| |
| static doca_error_t | add_loopback_pipe_entry (struct doca_flow_pipe *pipe, struct entries_status *status, uint8_t dst_mac[6]) |
| |
| static int | populate_macs (const int nb_ports, uint8_t mac_addresses[2][6]) |
| |
| doca_error_t | flow_loopback (int nb_queues, uint8_t mac_addresses[2][6]) |
| |
◆ PACKET_BURST
| #define PACKET_BURST 128 /* The number of packets in the rx queue */ |
◆ add_loopback_pipe_entry()
◆ add_rss_rss_udp_ip_pipe_entry()
◆ add_rss_tcp_ip_pipe_entry()
◆ create_loopback_pipe()
| static doca_error_t create_loopback_pipe |
( |
struct doca_flow_port * |
port, |
|
|
uint16_t |
port_id, |
|
|
struct doca_flow_pipe ** |
pipe |
|
) |
| |
|
static |
◆ create_rss_tcp_ip_pipe()
| static doca_error_t create_rss_tcp_ip_pipe |
( |
struct doca_flow_port * |
port, |
|
|
struct doca_flow_pipe * |
miss_pipe, |
|
|
struct doca_flow_pipe ** |
pipe |
|
) |
| |
|
static |
◆ create_rss_udp_ip_pipe()
| static doca_error_t create_rss_udp_ip_pipe |
( |
struct doca_flow_port * |
port, |
|
|
struct doca_flow_pipe ** |
pipe |
|
) |
| |
|
static |
◆ DOCA_LOG_REGISTER()
| DOCA_LOG_REGISTER |
( |
FLOW_LOOPBACK |
| ) |
|
◆ flow_loopback()
| doca_error_t flow_loopback |
( |
int |
nb_queues, |
|
|
uint8_t |
mac_addresses[2][6] |
|
) |
| |
◆ populate_macs()
| static int populate_macs |
( |
const int |
nb_ports, |
|
|
uint8_t |
mac_addresses[2][6] |
|
) |
| |
|
static |
◆ process_packets()
| static void process_packets |
( |
int |
ingress_port | ) |
|
|
static |
◆ signal_handler()
| static void signal_handler |
( |
int |
signum | ) |
|
|
static |
◆ force_quit