Re: [vpp-dev] accessing object pools from multiple threads

2019-09-25 Thread Andrew Yourtchenko
git grep ‘!am->is_mp_safe’ --a > On 25 Sep 2019, at 10:24, Satya Murthy wrote: > > Thanks Andrew for the quick reply. > Can you please point me to the code where the barrier lock is getting applied > for acls. > > -- > Thanks & Regards, > Murthy > -=-=-=-=-=-=-=-=-=-=-=- > Links: You

Re: [vpp-dev] accessing object pools from multiple threads

2019-09-25 Thread Satya Murthy
Thanks Andrew for the quick reply. Can you please point me to the code where the barrier lock is getting applied for acls. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14051):

Re: [vpp-dev] accessing object pools from multiple threads

2019-09-25 Thread Andrew Yourtchenko
Yes, ACL update messages are not marked as Mp-safe, consequently are subject to barrier lock, thus we can use this pool in this way. Pools are *not* thread safe, which is why for example the session pools for reflexive acl processing are per-thread (see acl_fa_per_worker_data_t structure).

[vpp-dev] accessing object pools from multiple threads

2019-09-25 Thread Satya Murthy
Hi , I have a basic question on how object pools are accessed by multiple threads in VPP. Do we have any locks underlying that safe gaurd the object pools ? For example: In acl_main_t, we have a pool of acl lists as below. *acl_list_t *acls; /* Pool of ACLs */* This list will be populated by