Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
session: cleanup use of api_client_index
[vpp.git]
/
src
/
vcl
/
vcl_private.h
diff --git
a/src/vcl/vcl_private.h
b/src/vcl/vcl_private.h
index
d1a40b9
..
0204bd5
100644
(file)
--- a/
src/vcl/vcl_private.h
+++ b/
src/vcl/vcl_private.h
@@
-219,8
+219,12
@@
typedef struct vcl_worker_
/* Session pool */
vcl_session_t *sessions;
/* Session pool */
vcl_session_t *sessions;
+ /** Worker/thread index in current process */
u32 wrk_index;
u32 wrk_index;
+ /** Worker index in vpp*/
+ u32 vpp_wrk_index;
+
/** Message queues epoll fd. Initialized only if using mqs with eventfds */
int mqs_epfd;
/** Message queues epoll fd. Initialized only if using mqs with eventfds */
int mqs_epfd;
@@
-272,15
+276,26
@@
typedef struct vppcom_main_t_
u32 debug;
pthread_t main_cpu;
u32 debug;
pthread_t main_cpu;
- /** VPP binary api input queue */
- svm_queue_t *vl_input_queue;
+ /** Main process pid */
+ pid_t main_pid;
+
+ /** Current pid, may be different from main_pid if forked child */
+ pid_t current_pid;
+
+ /** App's index in vpp. It's used by vpp to identify the app */
+ u32 app_index;
/** API client handle */
u32 my_client_index;
/** API client handle */
u32 my_client_index;
+ /** VPP binary api input queue */
+ svm_queue_t *vl_input_queue;
+
/** State of the connection, shared between msg RX thread and main thread */
volatile app_state_t app_state;
/** State of the connection, shared between msg RX thread and main thread */
volatile app_state_t app_state;
+ u8 *app_name;
+
/** VCL configuration */
vppcom_cfg_t cfg;
/** VCL configuration */
vppcom_cfg_t cfg;