[dpdk-dev] Safe practices for adding to rte_table_hash_lru

Neil Horman nhorman at tuxdriver.com
Wed Sep 24 22:11:05 CEST 2014


On Wed, Sep 24, 2014 at 07:38:49PM +0000, Saha, Avik (AWS) wrote:
> Hey guys
>    Is it safe to add an entry to the rte_table_hash while the pipeline is being run - for instance if I were to try and add an entry on a port reader action when the packet enters the pipeline?
> 
> Thanks
> Avik
> 

No, none of the table implementations are currently thread safe.  They all
assume that you will do your own locking between threads and processes.  There
were a few patches to support thread safety recently, but they are being
reworked currently.

Neil



More information about the dev mailing list