From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=mJVmUIJVp+WC4k96LN5X0DA5qJlNtYVkmGJYUILt6i4=; b=xPDDdUWElZTaswafj57QPVbCrS5L4hztsym9506ZLMl0t8cyB/TKLxQs7IwMkdGSEU kfKVBLOHpjKltFzZgHSqe+n4nmbUvDTOC2sv9NUz5/RY1RlqI1B7Hg2YqR1a8pBzmquU LG0WL35kostKArWeSFXsvB7n4z/rrObOtUmHITnDZZg2hbunuHVyBFUblo9xRrMS/Bfm YFIjxRm0MSD7wA7DIyzqAyAWtsHSmXbTaPpV1G5nu86QJ4u+ubs84HHWAzfgecdWirVA tdkyd2S7kx5LOc9ol/stds1YfJEmxd6kCkxPybxAxA6E3cPjQNfJlDpje1FG0U88xjuM 3zYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=mJVmUIJVp+WC4k96LN5X0DA5qJlNtYVkmGJYUILt6i4=; b=PzYoJZXIxAjGJvSp8/ZogvPDnlW7KlhD49f0ZddkAsGiI+V6re3uYJ0Becd83JS+i4 hetx6iZvgTrEaF4RpY7uF9BkIh8B+GYg+Sn/kgzpRtANBmkXShOEuZWRo45PH37D7r7r 9xj+ShnzkkH5FqocwO4YOOOYSC9lK0dVY4FJqgbhsqOb1tP8BR7TP13oH5T0R3TyiiRm BQfOpLMnNmZo4wVrKG7neZm9/Jy1spokBsUMK6jHXoYAx0UlGhaPBZ5PbXUV6LUMyXG9 DwhmmjfTBpziZnIcOLjKuOgKamXa791j+FR4KYbAORMX5AaA/UNi76tllqm0C9hSda3H CfhA== X-Gm-Message-State: ALyK8tK/JYkoB6D0o1uVND7JzODXd/eKO5r/Ag2RT0S3OmoRXQRx/NL+Agn9zLpSF7wGOlke X-Received: by 10.28.61.215 with SMTP id k206mr2693613wma.80.1468155489068; Sun, 10 Jul 2016 05:58:09 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id b187sm1862692wmg.15.2016.07.10.05.58.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jul 2016 05:58:08 -0700 (PDT) From: Thomas Monjalon To: Yari Adan Petralanda , juan.antonio.montesinos.delgado@ericsson.com Cc: dev@dpdk.org, "De Lara Guarch, Pablo" Date: Sun, 10 Jul 2016 14:58:07 +0200 Message-ID: <10420826.67mXJbhyT9@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: References: <87ffa89f-1f89-4c27-14c0-c4a97eb74a60@ericsson.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v3] hash: new function to retrieve a key given its position 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: Sun, 10 Jul 2016 12:58:09 -0000 > > 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