FD.io VPP  v16.06
Vector Packet Processing
jvpp.h File Reference
+ Include dependency graph for jvpp.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  vppjni_main_t
 

Macros

#define M(T, t)
 
#define M2(T, t, n)
 
#define S   (vl_msg_api_send_shmem (jm->vl_input_queue, (u8 *)&mp))
 

Functions

static u32 vppjni_get_context_id (vppjni_main_t *jm)
 
static void vppjni_lock (vppjni_main_t *jm, u32 tag)
 
static void vppjni_unlock (vppjni_main_t *jm)
 
static int vppjni_sanity_check (vppjni_main_t *jm)
 

Variables

vppjni_main_t vppjni_main
 

Macro Definition Documentation

#define M (   T,
 
)
Value:
do { \
jm->result_ready = 0; \
mp = vl_msg_api_alloc(sizeof(*mp)); \
memset (mp, 0, sizeof (*mp)); \
mp->_vl_msg_id = ntohs (VL_API_##T); \
mp->client_index = jm->my_client_index; \
} while(0);
void * vl_msg_api_alloc(int nbytes)

Definition at line 91 of file jvpp.h.

#define M2 (   T,
  t,
 
)
Value:
do { \
jm->result_ready = 0; \
mp = vl_msg_api_alloc(sizeof(*mp)+(n)); \
memset (mp, 0, sizeof (*mp)); \
mp->_vl_msg_id = ntohs (VL_API_##T); \
mp->client_index = jm->my_client_index; \
} while(0);
void * vl_msg_api_alloc(int nbytes)

Definition at line 100 of file jvpp.h.

#define S   (vl_msg_api_send_shmem (jm->vl_input_queue, (u8 *)&mp))

Definition at line 110 of file jvpp.h.

Function Documentation

static u32 vppjni_get_context_id ( vppjni_main_t jm)
inlinestatic

Definition at line 62 of file jvpp.h.

static void vppjni_lock ( vppjni_main_t jm,
u32  tag 
)
inlinestatic

Definition at line 67 of file jvpp.h.

static int vppjni_sanity_check ( vppjni_main_t jm)
inlinestatic

Definition at line 81 of file jvpp.h.

static void vppjni_unlock ( vppjni_main_t jm)
inlinestatic

Definition at line 74 of file jvpp.h.

Variable Documentation

vppjni_main_t vppjni_main

Definition at line 60 of file jvpp.h.