Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
session: segment manager refactor
[vpp.git]
/
src
/
vnet
/
session
/
application_interface.c
diff --git
a/src/vnet/session/application_interface.c
b/src/vnet/session/application_interface.c
index
ad4c28b
..
efdd3dd
100644
(file)
--- a/
src/vnet/session/application_interface.c
+++ b/
src/vnet/session/application_interface.c
@@
-406,7
+406,7
@@
vnet_application_attach (vnet_app_attach_args_t * a)
a->app_event_queue_address = pointer_to_uword (app->event_queue);
sm = segment_manager_get (app->first_segment_manager);
a->app_event_queue_address = pointer_to_uword (app->event_queue);
sm = segment_manager_get (app->first_segment_manager);
- fs = segment_manager_get_segment
(sm->segment_indices[0]
);
+ fs = segment_manager_get_segment
_w_lock (sm, 0
);
if (application_is_proxy (app))
application_setup_proxy (app);
if (application_is_proxy (app))
application_setup_proxy (app);
@@
-415,6
+415,8
@@
vnet_application_attach (vnet_app_attach_args_t * a)
a->segment = &fs->ssvm;
a->app_index = app->index;
a->segment = &fs->ssvm;
a->app_index = app->index;
+ segment_manager_segment_reader_unlock (sm);
+
return 0;
}
return 0;
}