summaryrefslogtreecommitdiffstats
path: root/src/vnet/session
diff options
context:
space:
mode:
authorOndrej Fabry <ofabry@cisco.com>2018-08-15 08:46:46 +0200
committerOle Trøan <otroan@employees.org>2018-08-15 13:09:16 +0000
commit6bd197ebb9fd9ae271449ad3937ae076d85c6479 (patch)
tree9502bb0813e059332a0f6e2cde2dba0855a662a5 /src/vnet/session
parent182e37e33f80cc65f3cf27b69e74d855dd858a7e (diff)
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 <ofabry@cisco.com>
Diffstat (limited to 'src/vnet/session')
-rw-r--r--src/vnet/session/session.api3
-rwxr-xr-xsrc/vnet/session/session_api.c2
2 files changed, 1 insertions, 4 deletions
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;