From 6bd197ebb9fd9ae271449ad3937ae076d85c6479 Mon Sep 17 00:00:00 2001 From: Ondrej Fabry Date: Wed, 15 Aug 2018 08:46:46 +0200 Subject: Remove client_index field from replies in API - replies should not need to contain client_index since it is used to identify sender of requests to VPP Change-Id: Iece3853b3f020054ee1652b149d0cf8d9580db4e Signed-off-by: Ondrej Fabry --- src/vnet/session/session.api | 3 --- src/vnet/session/session_api.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'src/vnet/session') diff --git a/src/vnet/session/session.api b/src/vnet/session/session.api index 58054ae4ba2..c60e99ea14a 100644 --- a/src/vnet/session/session.api +++ b/src/vnet/session/session.api @@ -258,14 +258,11 @@ define reset_session { }; /** \brief client->vpp reset session reply - @param client_index - opaque cookie to identify the sender - client to vpp direction only @param context - sender context, to match reply w/ request @param retval - return code for the request @param handle - session handle obtained via accept/connect */ define reset_session_reply { - u32 client_index; u32 context; i32 retval; u64 handle; diff --git a/src/vnet/session/session_api.c b/src/vnet/session/session_api.c index d1cbc646e52..dddc1f5f03f 100755 --- a/src/vnet/session/session_api.c +++ b/src/vnet/session/session_api.c @@ -955,7 +955,7 @@ vl_api_reset_session_reply_t_handler (vl_api_reset_session_reply_t * mp) stream_session_t *s; u32 index, thread_index; - app = application_lookup (mp->client_index); + app = application_lookup (mp->context); if (!app) return; -- cgit 1.2.3-korg