summaryrefslogtreecommitdiffstats
path: root/src/vnet/session/session.h
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-02-22 13:11:38 -0800
committerDamjan Marion <dmarion@me.com>2019-02-23 09:41:17 +0000
commitba7d8f5a3d4078d673486fbb91fe0ce87dfe7230 (patch)
tree84091faa4acbdd08c6a4386614bdb582f1d7dbfd /src/vnet/session/session.h
parentb691f768a1427094f6788a2f4f268ccfe7e9d15b (diff)
session: separate local session logic
Move local session to separate header and source files. First step to refactoring local sessions. Change-Id: I280fdfef20ba8a0977d15c1c8ce030ea2fb72dde Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session.h')
-rw-r--r--src/vnet/session/session.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vnet/session/session.h b/src/vnet/session/session.h
index f20e0db1d04..6a52be31b49 100644
--- a/src/vnet/session/session.h
+++ b/src/vnet/session/session.h
@@ -477,7 +477,7 @@ listen_session_parse_handle (session_handle_t handle, u32 * index,
}
always_inline session_t *
-listen_session_new (u8 thread_index, session_type_t type)
+listen_session_alloc (u8 thread_index, session_type_t type)
{
session_t *s;
s = session_alloc (thread_index);
@@ -487,13 +487,13 @@ listen_session_new (u8 thread_index, session_type_t type)
}
always_inline session_t *
-listen_session_get (u32 index)
+listen_session_get (u32 ls_index)
{
- return session_get (index, 0);
+ return session_get (ls_index, 0);
}
always_inline void
-listen_session_del (session_t * s)
+listen_session_free (session_t * s)
{
session_free (s);
}