Dave,

Does VPP support the concept of  additional  threads that are spawned from  
within a  plugin, lets call  them 'external threads',  and the  allocation of a 
 vlib_main_t / vlib_buffer_pool_thread_t for these external threads, or should 
all interactions such as freeing a buffer, be performed from within the  worker 
thread that the buffer was originally presented to the plugin on..

Cheers

Simon




From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Dave Barach via 
lists.fd.io
Sent: Thursday, August 11, 2022 12:07 PM
To: vpp-dev@lists.fd.io
Subject: [EXTERNAL] Re: [vpp-dev] Free from a vlib buffer from out a VPP worker 
thread

You don't often get email from 
vpp=barachs....@lists.fd.io<mailto:vpp=barachs....@lists.fd.io>. Learn why this 
is important<https://aka.ms/LearnAboutSenderIdentification>
As long as the thread has an associated vlib_main_t / vlib_buffer_pool_thread_t 
not accidentally shared with another thread, you shouldn't have any problems...

FWIW... Dave

From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
<vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>> On Behalf Of Simon Barber via 
lists.fd.io
Sent: Thursday, August 11, 2022 6:42 AM
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
Subject: [vpp-dev] Free from a vlib buffer from out a VPP worker thread

Hi,

Does anybody anticipate any issues calling  vlib_buffer_free_one to free a 
buffer when running on a thread that is not registered as a VPP worker thread.

Initial testing indicates that it works.

Regards

Simon


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21797): https://lists.fd.io/g/vpp-dev/message/21797
Mute This Topic: https://lists.fd.io/mt/92979452/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to