From cc7c88e529eb3a2ca0934f27eb048c8ca3788f95 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 15 Sep 2020 15:56:51 -0700 Subject: vcl: refactor bapi client index for sapi reuse Type: refactor Signed-off-by: Florin Coras Change-Id: Ibebb6f7d4e610570693e213acd2f6d9332c563c6 --- src/vcl/vcl_private.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/vcl/vcl_private.h') diff --git a/src/vcl/vcl_private.h b/src/vcl/vcl_private.h index bbcc3fabedb..51bdd65a102 100644 --- a/src/vcl/vcl_private.h +++ b/src/vcl/vcl_private.h @@ -252,8 +252,11 @@ typedef struct vcl_worker_ /** Worker index in vpp*/ u32 vpp_wrk_index; - /** VPP bapi client handle */ - u32 bapi_client_index; + /** + * Generic api client handle. When binary api is in used, it stores + * the "client_index" and when socket api is use, it stores the sapi + * client handle */ + u32 api_client_handle; /** VPP binary api input queue */ svm_queue_t *vl_input_queue; -- cgit 1.2.3-korg