aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/session/application.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-09-28 23:40:28 -0700
committerDamjan Marion <dmarion@me.com>2020-09-30 10:11:21 +0000
commit2a7c0b6fc027e86727c08d98b66e19ad8768c82b (patch)
treecf037f459b5620fcf4151d272b3fad3d5fa82a19 /src/vnet/session/application.c
parent5aa34d54de1e3dcdab1b74207ef8a24cc67a0f5d (diff)
svm session: use new clib mem apis for segments
"sh memory map" now reports shared memory segments mapped by session layer for applications. Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I7debdcd06c7728abfb5cf817a1ccc37de495472c
Diffstat (limited to 'src/vnet/session/application.c')
-rw-r--r--src/vnet/session/application.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/vnet/session/application.c b/src/vnet/session/application.c
index a0ddaed90cf..0b5c951fd70 100644
--- a/src/vnet/session/application.c
+++ b/src/vnet/session/application.c
@@ -876,11 +876,8 @@ vnet_application_attach (vnet_app_attach_args_t * a)
if (application_is_proxy (app))
{
application_setup_proxy (app);
- /*
- * I suspect the segment manager pool gets reallocated (because a new listener
- * is added, and each listener has a segment manager) so sm becomes a dangling
- * reference. That's why we need to re-grab sm.
- */
+ /* The segment manager pool is reallocated because a new listener
+ * is added. Re-grab segment manager to avoid dangling reference */
sm = segment_manager_get (app_wrk->first_segment_manager);
}