From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v3] hash: new function to retrieve a key given its position Date: Sun, 10 Jul 2016 14:58:07 +0200 Message-ID: <10420826.67mXJbhyT9@xps13> References: <87ffa89f-1f89-4c27-14c0-c4a97eb74a60@ericsson.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, "De Lara Guarch, Pablo" To: Yari Adan Petralanda , juan.antonio.montesinos.delgado@ericsson.com Return-path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id 444D21396 for ; Sun, 10 Jul 2016 14:58:09 +0200 (CEST) Received: by mail-wm0-f49.google.com with SMTP id o80so19104051wme.1 for ; Sun, 10 Jul 2016 05:58:09 -0700 (PDT) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > > The function rte_hash_get_key_with_position is added in this patch. > > As the position returned when adding a key is frequently used as an > > offset into an array of user data, this function performs the operation > > of retrieving a key given this offset. > > > > A possible use case would be to delete a key from the hash table when > > its entry in the array of data has certain value. For instance, the key > > could be a flow 5-tuple, and the value stored in the array a time > > stamp. > > > > Signed-off-by: Juan Antonio Montesinos > > > > Signed-off-by: Yari Adan Petralanda > > Acked-by: Pablo de Lara Applied, thanks