From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp02.365-24.se (smtp02.365-24.se [217.151.195.247]) by dpdk.org (Postfix) with ESMTP id D798136E for ; Mon, 12 May 2014 10:29:19 +0200 (CEST) Received: from webmail.hiq.se (unknown [10.30.1.40]) by smtp02.365-24.se (Postfix) with ESMTP id 07E3C662 for ; Mon, 12 May 2014 10:29:27 +0200 (CEST) Received: from HIQQBEXC101.sto.hiq.se ([fe80::151b:556:5d11:edbe]) by hiqqbexc101.sto.hiq.se ([fe80::151b:556:5d11:edbe%17]) with mapi id 14.03.0123.003; Mon, 12 May 2014 10:29:27 +0200 From: Tomas Vestelind To: "dev@dpdk.org" Thread-Topic: Question regarding concurrency and hash table Thread-Index: Ac9tu/zDIoERiUZyRN6LDSz1CeTbmw== Date: Mon, 12 May 2014 08:29:25 +0000 Message-ID: Accept-Language: sv-SE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [194.218.229.28] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: [dpdk-dev] Question regarding concurrency and hash table 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: Mon, 12 May 2014 08:29:20 -0000 Hello all! I have a question regarding the possible concurrency issues in hash table. = My questions is: Is it possible to call rte_hash_add() and rte_hash_lookup() at the same tim= e without data inconsistency?=20 My guess is that I need to use a lock as protection. I see that you have a = couple of nice ones :) BR, Tomas Vestelind