aboutsummaryrefslogtreecommitdiffstats
path: root/src/vpp-api/java/jvpp-snat/jvpp_snat.h
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2017-02-20 09:14:13 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2017-02-22 15:59:48 +0000
commit2291a36008e197423a0f0414f6dcca4afa3ac4c1 (patch)
treef52ef2fc21c0a5b719e38bd67f25cde268bd6e47 /src/vpp-api/java/jvpp-snat/jvpp_snat.h
parent2dd6852d8109e39d15a5c60f7ba58f1abcf9e455 (diff)
jvpp: remove unnecessary msg_id_base caching
Jvpp code uses CRCs to obtain msg IDs. Checking api_main_t.msg_index_by_name_and_crc is enough to detect API mismatch. Calling vl_client_get_first_plugin_msg_id is not needed. Also fixes VPP-627. Change-Id: Ie3085dfa458795fa11f17615ac94e76197a1c8cd Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'src/vpp-api/java/jvpp-snat/jvpp_snat.h')
-rw-r--r--src/vpp-api/java/jvpp-snat/jvpp_snat.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/vpp-api/java/jvpp-snat/jvpp_snat.h b/src/vpp-api/java/jvpp-snat/jvpp_snat.h
index 6426bda8834..7739a4114c1 100644
--- a/src/vpp-api/java/jvpp-snat/jvpp_snat.h
+++ b/src/vpp-api/java/jvpp-snat/jvpp_snat.h
@@ -24,9 +24,6 @@
/* Global state for JVPP-SNAT */
typedef struct {
- /* Base message index for the nsh plugin */
- u16 msg_id_base;
-
/* Pointer to shared memory queue */
unix_shared_memory_queue_t * vl_input_queue;