FD.io VPP
v16.06
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | dpdk_frame_t |
struct | dpdk_efd_agent_t |
struct | dpdk_vu_vring |
struct | dpdk_vu_intf_t |
struct | tx_ring_hdr_t |
struct | dpdk_device_t |
struct | frame_queue_trace_t |
struct | frame_queue_nelt_counter_t |
struct | dpdk_worker_t |
struct | dpdk_device_and_queue_t |
struct | dpdk_efd_t |
struct | dpdk_main_t |
struct | dpdk_tx_dma_trace_t |
struct | dpdk_rx_dma_trace_t |
Macros | |
#define | always_inline static inline |
#define | NB_MBUF (32<<10) |
#define | foreach_dpdk_pmd |
#define | DPDK_EFD_MAX_DISCARD_RATE 10 |
#define | MAX_NELTS 32 |
#define | DPDK_TX_RING_SIZE (4 * 1024) |
#define | DPDK_STATS_POLL_INTERVAL (10.0) |
#define | DPDK_MIN_STATS_POLL_INTERVAL (0.001) /* 1msec */ |
#define | DPDK_LINK_POLL_INTERVAL (3.0) |
#define | DPDK_MIN_LINK_POLL_INTERVAL (0.001) /* 1msec */ |
#define | DPDK_EFD_DISABLED 0 |
#define | DPDK_EFD_DISCARD_ENABLED (1 << 0) |
#define | DPDK_EFD_MONITOR_ENABLED (1 << 1) |
#define | DPDK_EFD_DROPALL_ENABLED (1 << 2) |
#define | DPDK_EFD_DEFAULT_DEVICE_QUEUE_HI_THRESH_PCT 90 |
#define | DPDK_EFD_DEFAULT_CONSEC_FULL_FRAMES_HI_THRESH 6 |
#define | foreach_dpdk_error |
#define | EFD_OPERATION_LESS_THAN 0 |
#define | EFD_OPERATION_GREATER_OR_EQUAL 1 |
Typedefs | |
typedef void(* | dpdk_flowcontrol_callback_t) (vlib_main_t *vm, u32 hw_if_index, u32 n_packets) |
typedef struct dpdk_efd_t | dpdk_efd_t |
typedef void(* | dpdk_io_thread_callback_t) (vlib_main_t *vm) |
typedef struct vhost_user_memory | vhost_user_memory_t |
Variables | |
vnet_device_class_t | dpdk_device_class |
vlib_node_registration_t | dpdk_input_node |
(constructor) VLIB_REGISTER_NODE (dpdk_input_node) More... | |
vlib_node_registration_t | dpdk_io_input_node |
(constructor) VLIB_REGISTER_NODE (dpdk_io_input_node) More... | |
vlib_node_registration_t | handoff_dispatch_node |
(constructor) VLIB_REGISTER_NODE (handoff_dispatch_node) More... | |
dpdk_main_t | dpdk_main |
format_function_t | format_dpdk_device_name |
format_function_t | format_dpdk_device |
format_function_t | format_dpdk_tx_dma_trace |
format_function_t | format_dpdk_rx_dma_trace |
format_function_t | format_dpdk_rte_mbuf |
format_function_t | format_dpdk_rx_rte_mbuf |
unformat_function_t | unformat_socket_mem |
#define foreach_dpdk_error |
#define foreach_dpdk_pmd |
typedef struct dpdk_efd_t dpdk_efd_t |
typedef void(* dpdk_flowcontrol_callback_t) (vlib_main_t *vm, u32 hw_if_index, u32 n_packets) |
typedef void(* dpdk_io_thread_callback_t) (vlib_main_t *vm) |
typedef struct vhost_user_memory vhost_user_memory_t |
enum dpdk_device_type_t |
enum dpdk_error_t |
enum dpdk_pmd_t |
enum dpdk_port_type_t |
enum dpdk_rx_next_t |
void dpdk_device_lock_free | ( | dpdk_device_t * | xd | ) |
void dpdk_device_lock_init | ( | dpdk_device_t * | xd | ) |
void dpdk_efd_update_counters | ( | dpdk_device_t * | xd, |
u32 | n_buffers, | ||
u16 | enabled | ||
) |
i8 dpdk_get_cpu_socket | ( | vnet_hw_interface_t * | hi | ) |
clib_error_t* dpdk_get_hw_interface_stats | ( | u32 | hw_if_index, |
struct rte_eth_stats * | dest | ||
) |
dpdk_pmd_t dpdk_get_pmd_type | ( | vnet_hw_interface_t * | hi | ) |
uword dpdk_input_rss | ( | vlib_main_t * | vm, |
vlib_node_runtime_t * | node, | ||
vlib_frame_t * | f | ||
) |
u32 dpdk_interface_tx_vector | ( | vlib_main_t * | vm, |
u32 | dev_instance | ||
) |
void dpdk_io_thread | ( | vlib_worker_thread_t * | w, |
u32 | instances, | ||
u32 | instance_id, | ||
char * | worker_name, | ||
dpdk_io_thread_callback_t | callback | ||
) |
|
inlinestatic |
clib_error_t* dpdk_port_setup | ( | dpdk_main_t * | dm, |
dpdk_device_t * | xd | ||
) |
struct rte_mbuf* dpdk_replicate_packet_mb | ( | vlib_buffer_t * | b | ) |
void dpdk_rx_trace | ( | dpdk_main_t * | dm, |
vlib_node_runtime_t * | node, | ||
dpdk_device_t * | xd, | ||
u16 | queue_id, | ||
u32 * | buffers, | ||
uword | n_buffers | ||
) |
void dpdk_set_flowcontrol_callback | ( | vlib_main_t * | vm, |
dpdk_flowcontrol_callback_t | callback | ||
) |
int dpdk_set_link_state_poll_interval | ( | f64 | interval | ) |
clib_error_t* dpdk_set_mac_address | ( | vnet_hw_interface_t * | hi, |
char * | address | ||
) |
clib_error_t* dpdk_set_mc_filter | ( | vnet_hw_interface_t * | hi, |
struct ether_addr | mc_addr_vec[], | ||
int | naddr | ||
) |
void dpdk_set_next_node | ( | dpdk_rx_next_t | , |
char * | |||
) |
int dpdk_set_stat_poll_interval | ( | f64 | interval | ) |
void dpdk_thread_input | ( | dpdk_main_t * | dm, |
dpdk_device_t * | xd | ||
) |
void dpdk_update_link_state | ( | dpdk_device_t * | xd, |
f64 | now | ||
) |
int dpdk_vhost_user_create_if | ( | vnet_main_t * | vnm, |
vlib_main_t * | vm, | ||
const char * | sock_filename, | ||
u8 | is_server, | ||
u32 * | sw_if_index, | ||
u64 | feature_mask, | ||
u8 | renumber, | ||
u32 | custom_dev_instance, | ||
u8 * | hwaddr | ||
) |
Definition at line 1396 of file vhost_user.c.
int dpdk_vhost_user_delete_if | ( | vnet_main_t * | vnm, |
vlib_main_t * | vm, | ||
u32 | sw_if_index | ||
) |
Definition at line 1492 of file vhost_user.c.
int dpdk_vhost_user_dump_ifs | ( | vnet_main_t * | vnm, |
vlib_main_t * | vm, | ||
vhost_user_intf_details_t ** | out_vuids | ||
) |
Definition at line 1525 of file vhost_user.c.
int dpdk_vhost_user_modify_if | ( | vnet_main_t * | vnm, |
vlib_main_t * | vm, | ||
const char * | sock_filename, | ||
u8 | is_server, | ||
u32 | sw_if_index, | ||
u64 | feature_mask, | ||
u8 | renumber, | ||
u32 | custom_dev_instance | ||
) |
Definition at line 1442 of file vhost_user.c.
Definition at line 1615 of file vhost_user.c.
uword dpdk_vhost_user_process_if | ( | vlib_main_t * | vm, |
dpdk_device_t * | xd, | ||
void * | ctx | ||
) |
Definition at line 1620 of file vhost_user.c.
Definition at line 1603 of file vhost_user.c.
void dpdk_vhost_user_send_interrupt | ( | vlib_main_t * | vm, |
dpdk_device_t * | xd, | ||
int | idx | ||
) |
Definition at line 852 of file vhost_user.c.
u8 dpdk_vhost_user_want_interrupt | ( | dpdk_device_t * | xd, |
int | idx | ||
) |
struct rte_mbuf* dpdk_zerocopy_replicate_packet_mb | ( | vlib_buffer_t * | b | ) |
static_always_inline void increment_efd_drop_counter | ( | vlib_main_t * | vm, |
u32 | counter_index, | ||
u32 | count | ||
) |
u32 is_efd_discardable | ( | vlib_thread_main_t * | tm, |
vlib_buffer_t * | b0, | ||
struct rte_mbuf * | mb | ||
) |
void post_sw_interface_set_flags | ( | vlib_main_t * | vm, |
u32 | sw_if_index, | ||
u32 | flags | ||
) |
|
inline |
void vnet_buffer_needs_dpdk_mb | ( | vlib_buffer_t * | b | ) |
vnet_device_class_t dpdk_device_class |
vlib_node_registration_t dpdk_input_node |
vlib_node_registration_t dpdk_io_input_node |
dpdk_main_t dpdk_main |
format_function_t format_dpdk_device |
format_function_t format_dpdk_device_name |
format_function_t format_dpdk_rte_mbuf |
format_function_t format_dpdk_rx_dma_trace |
format_function_t format_dpdk_rx_rte_mbuf |
format_function_t format_dpdk_tx_dma_trace |
vlib_node_registration_t handoff_dispatch_node |
(constructor) VLIB_REGISTER_NODE (handoff_dispatch_node)
unformat_function_t unformat_socket_mem |