From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id 1C7481F5 for ; Wed, 24 Sep 2014 22:04:58 +0200 (CEST) Received: from hmsreliant.think-freely.org ([2001:470:8:a08:7aac:c0ff:fec2:933b] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1XWsu2-0004l3-V2; Wed, 24 Sep 2014 16:11:11 -0400 Date: Wed, 24 Sep 2014 16:11:05 -0400 From: Neil Horman To: "Saha, Avik (AWS)" Message-ID: <20140924201105.GC4651@hmsreliant.think-freely.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -2.9 (--) X-Spam-Status: No Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] Safe practices for adding to rte_table_hash_lru X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Sep 2014 20:04:58 -0000 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