From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp121.ord1c.emailsrvr.com (smtp121.ord1c.emailsrvr.com [108.166.43.121]) by dpdk.org (Postfix) with ESMTP id EC9115934 for ; Thu, 22 Jan 2015 12:07:58 +0100 (CET) Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp8.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id 194A78030C for ; Thu, 22 Jan 2015 06:07:58 -0500 (EST) X-Virus-Scanned: OK Received: by smtp8.relay.ord1c.emailsrvr.com (Authenticated sender: padam.singh-AT-inventum.net) with ESMTPSA id 74087801AE for ; Thu, 22 Jan 2015 06:07:57 -0500 (EST) X-Sender-Id: padam.singh@inventum.net Received: from [172.16.1.231] ([UNAVAILABLE]. [103.25.205.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA) by 0.0.0.0:465 (trex/5.4.2); Thu, 22 Jan 2015 11:07:58 GMT From: "Padam J. Singh" Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-Id: <44856217-077B-48C0-A527-3C6FB49A34E0@inventum.net> Date: Thu, 22 Jan 2015 16:37:53 +0530 To: dev@dpdk.org Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) X-Mailer: Apple Mail (2.1990.1) Subject: [dpdk-dev] Purge all entries in a rte_hash 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: Thu, 22 Jan 2015 11:07:59 -0000 Hello, Is there some way to purge all keys in an rte_hash while maintaining = read concurrency? I am assuming that I can=E2=80=99t do a free/create step while other = threads may still be doing lookups on it. What I can do is store the key as part of the value in the array of user = data, iterate this array and call delete on the hash with the key. Would = this be the most optimal way? Thanks, Padam=