FD.io VPP  v17.07.01-10-g3be13f0
Vector Packet Processing
node.c File Reference
+ Include dependency graph for node.c:

Go to the source code of this file.

Data Structures

struct  session_queue_trace_t
 

Macros

#define foreach_session_queue_error
 

Enumerations

enum  session_queue_error_t { SESSION_QUEUE_N_ERROR }
 

Functions

static u8format_session_queue_trace (u8 *s, va_list *args)
 
static void session_tx_fifo_chain_tail (session_manager_main_t *smm, vlib_main_t *vm, u8 thread_index, svm_fifo_t *fifo, vlib_buffer_t *b0, u32 bi0, u8 n_bufs_per_seg, u32 *left_to_snd0, u16 *n_bufs, u32 *rx_offset, u16 deq_per_buf, u8 peek_data)
 
static int session_tx_fifo_read_and_snd_i (vlib_main_t *vm, vlib_node_runtime_t *node, session_manager_main_t *smm, session_fifo_event_t *e0, stream_session_t *s0, u32 thread_index, int *n_tx_packets, u8 peek_data)
 
int session_tx_fifo_peek_and_snd (vlib_main_t *vm, vlib_node_runtime_t *node, session_manager_main_t *smm, session_fifo_event_t *e0, stream_session_t *s0, u32 thread_index, int *n_tx_pkts)
 
int session_tx_fifo_dequeue_and_snd (vlib_main_t *vm, vlib_node_runtime_t *node, session_manager_main_t *smm, session_fifo_event_t *e0, stream_session_t *s0, u32 thread_index, int *n_tx_pkts)
 
stream_session_tsession_event_get_session (session_fifo_event_t *e0, u8 thread_index)
 
void dump_thread_0_event_queue (void)
 
static uword session_queue_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

vlib_node_registration_t session_queue_node
 (constructor) VLIB_REGISTER_NODE (session_queue_node) More...
 
static char * session_queue_error_strings []
 
static u32 session_type_to_next []
 

Macro Definition Documentation

#define foreach_session_queue_error
Value:
_(TX, "Packets transmitted") \
_(TIMER, "Timer events") \
_(NO_BUFFER, "Out of buffers")

Definition at line 48 of file node.c.

Enumeration Type Documentation

Enumerator
SESSION_QUEUE_N_ERROR 

Definition at line 53 of file node.c.

Function Documentation

void dump_thread_0_event_queue ( void  )

Definition at line 402 of file node.c.

+ Here is the call graph for this function:

static u8* format_session_queue_trace ( u8 s,
va_list *  args 
)
static

Definition at line 35 of file node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

stream_session_t* session_event_get_session ( session_fifo_event_t *  e0,
u8  thread_index 
)

Definition at line 382 of file node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword session_queue_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 459 of file node.c.

+ Here is the call graph for this function:

static void session_tx_fifo_chain_tail ( session_manager_main_t smm,
vlib_main_t vm,
u8  thread_index,
svm_fifo_t fifo,
vlib_buffer_t b0,
u32  bi0,
u8  n_bufs_per_seg,
u32 left_to_snd0,
u16 n_bufs,
u32 rx_offset,
u16  deq_per_buf,
u8  peek_data 
)
inlinestatic

Definition at line 75 of file node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int session_tx_fifo_dequeue_and_snd ( vlib_main_t vm,
vlib_node_runtime_t node,
session_manager_main_t smm,
session_fifo_event_t *  e0,
stream_session_t s0,
u32  thread_index,
int *  n_tx_pkts 
)

Definition at line 371 of file node.c.

+ Here is the call graph for this function:

int session_tx_fifo_peek_and_snd ( vlib_main_t vm,
vlib_node_runtime_t node,
session_manager_main_t smm,
session_fifo_event_t *  e0,
stream_session_t s0,
u32  thread_index,
int *  n_tx_pkts 
)

Definition at line 360 of file node.c.

+ Here is the call graph for this function:

static int session_tx_fifo_read_and_snd_i ( vlib_main_t vm,
vlib_node_runtime_t node,
session_manager_main_t smm,
session_fifo_event_t *  e0,
stream_session_t s0,
u32  thread_index,
int *  n_tx_packets,
u8  peek_data 
)
inlinestatic

Definition at line 127 of file node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

char* session_queue_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_session_queue_error
Definition: node.c:48

Definition at line 61 of file node.c.

vlib_node_registration_t session_queue_node
Initial value:
=
{
.function = session_queue_node_fn,
.name = "session-queue",
.format_trace = format_session_queue_trace,
.error_strings = session_queue_error_strings,
.n_next_nodes = SESSION_QUEUE_N_NEXT,
.state = VLIB_NODE_STATE_DISABLED,
.next_nodes =
{
[SESSION_QUEUE_NEXT_DROP] = "error-drop",
},
}
static char * session_queue_error_strings[]
Definition: node.c:61
#define ARRAY_LEN(x)
Definition: clib.h:59
static u8 * format_session_queue_trace(u8 *s, va_list *args)
Definition: node.c:35
static uword session_queue_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: node.c:459

(constructor) VLIB_REGISTER_NODE (session_queue_node)

Definition at line 25 of file node.c.