summaryrefslogtreecommitdiffstats
path: root/src/vlibapi/api_common.h
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2017-10-04 10:03:52 -0400
committerDamjan Marion <dmarion.lists@gmail.com>2017-10-05 09:51:41 +0000
commit7939f904600018aeed9d8cc9d19ca37c7e96f3d1 (patch)
tree93abcd79168d878b7c8adbb84bcd0d826a9125e4 /src/vlibapi/api_common.h
parent6f6311560380d0e992f710558e213df1b098ef94 (diff)
Clean up "show api ring" debug CLI
Add a primary svm_region_t pointer to the api_main_t so we can always find the primary region, even when processing an API message from a memfd segment. Change-Id: I07fffe2ac1088ce44de10a34bc771ddc93af967d Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vlibapi/api_common.h')
-rw-r--r--src/vlibapi/api_common.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vlibapi/api_common.h b/src/vlibapi/api_common.h
index 324b260ecc6..845199efcd0 100644
--- a/src/vlibapi/api_common.h
+++ b/src/vlibapi/api_common.h
@@ -239,9 +239,12 @@ typedef struct
/** Current process PID */
int our_pid;
- /** Binary api segment descriptor */
+ /** Current binary api segment descriptor */
svm_region_t *vlib_rp;
+ /** Primary api segment descriptor */
+ svm_region_t *vlib_primary_rp;
+
/** Vector of all mapped shared-VM segments */
svm_region_t **vlib_private_rps;
svm_region_t **mapped_shmem_regions;