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

Go to the source code of this file.

Data Structures

struct  name_sort_t
 
struct  sw_interface_details_t
 
struct  sw_interface_subif_t
 
struct  sw_if_config_t
 
struct  ipv4_address_t
 
struct  ipv6_address_t
 
struct  packet_counters_t
 
struct  if_counters_t
 
struct  sw_interface_stats_t
 
struct  vxlan_tunnel_details_t
 
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))
 
#define W
 
#define WNR
 

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 f64 vppjni_time_now (vppjni_main_t *jm)
 
static int vppjni_sanity_check (vppjni_main_t *jm)
 
void vl_api_generic_reply_handler (vl_api_generic_reply_t *mp)
 

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 260 of file vppjni.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 269 of file vppjni.h.

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

Definition at line 280 of file vppjni.h.

#define W
Value:
do { \
timeout = vppjni_time_now (jm) + 1.0; \
\
while (vppjni_time_now (jm) < timeout) { \
if (jm->result_ready == 1) { \
return (jm->retval); \
} \
} \
return -99; \
} while(0);
static f64 vppjni_time_now(vppjni_main_t *jm)
Definition: vppjni.h:235

Definition at line 283 of file vppjni.h.

#define WNR
Value:
do { \
timeout = vppjni_time_now (jm) + 1.0; \
\
rv = -99; \
while (vppjni_time_now (jm) < timeout) { \
if (jm->result_ready == 1) { \
rv = (jm->retval); \
break; \
} \
} \
} while(0);
static f64 vppjni_time_now(vppjni_main_t *jm)
Definition: vppjni.h:235

Definition at line 296 of file vppjni.h.

Function Documentation

void vl_api_generic_reply_handler ( vl_api_generic_reply_t *  mp)

Definition at line 395 of file vppjni.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 vppjni_get_context_id ( vppjni_main_t jm)
inlinestatic

Definition at line 214 of file vppjni.h.

+ Here is the caller graph for this function:

static void vppjni_lock ( vppjni_main_t jm,
u32  tag 
)
inlinestatic

Definition at line 221 of file vppjni.h.

+ Here is the caller graph for this function:

static int vppjni_sanity_check ( vppjni_main_t jm)
inlinestatic

Definition at line 240 of file vppjni.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static f64 vppjni_time_now ( vppjni_main_t jm)
inlinestatic

Definition at line 235 of file vppjni.h.

+ Here is the call graph for this function:

static void vppjni_unlock ( vppjni_main_t jm)
inlinestatic

Definition at line 228 of file vppjni.h.

+ Here is the caller graph for this function:

Variable Documentation

vppjni_main_t vppjni_main

Definition at line 211 of file vppjni.h.