From e1c702fef2fa7c0e21b4c6d850048c898e4ccfc8 Mon Sep 17 00:00:00 2001 From: Michal Cmarada Date: Wed, 15 May 2019 09:44:11 +0200 Subject: Add dump for interface names from stats api Change-Id: I051ce7500bbbef1088bbdd6f1cc68eb605f3ec61 Signed-off-by: Michal Cmarada --- java/jvpp-stats/jvpp_stats.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'java/jvpp-stats/jvpp_stats.c') diff --git a/java/jvpp-stats/jvpp_stats.c b/java/jvpp-stats/jvpp_stats.c index d3a0b18..f70877f 100644 --- a/java/jvpp-stats/jvpp_stats.c +++ b/java/jvpp-stats/jvpp_stats.c @@ -36,8 +36,6 @@ JNIEXPORT void JNICALL Java_io_fd_jvpp_stats_JVppStatsImpl_init0 (JNIEnv *env, jclass clazz, jobject callback, jlong queue_address, jint my_client_index) { stats_main_t *plugin_main = &stats_main; - clib_warning ("Java_io_fd_jvpp_stats_JVppStatsImpl_init0"); - plugin_main->my_client_index = my_client_index; plugin_main->vl_input_queue = uword_to_pointer (queue_address, svm_queue_t *); @@ -68,6 +66,10 @@ JNIEXPORT jint JNICALL Java_io_fd_jvpp_stats_JVppStatsImpl_interfaceStatisticsDu return getInterfaceStatisticsDump(env); } +JNIEXPORT jint JNICALL Java_io_fd_jvpp_stats_JVppStatsImpl_interfaceNamesDump0(JNIEnv *env, jclass jclazz) { + return getInterfaceNamesDump(env); +} + /* Attach thread to JVM and cache class references when initiating JVPP Stats */ jint JNI_OnLoad(JavaVM *vm, void *reserved) { JNIEnv *env; -- cgit 1.2.3-korg