From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 9D2D65F13 for ; Fri, 26 Oct 2018 00:55:00 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 3162721F5C; Thu, 25 Oct 2018 18:55:00 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 25 Oct 2018 18:55:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=6slPSUT1bAnlYmaFql1eJ8j3isyrPeHp41Iwt1E4sfg=; b=Dlv1qlBuZz82 0SSy/ThahPwr5SOPLl5Bzrzb1LgiKL+fG/BBZwHSIL5oG4Ouh2DpIUEIv7xpBpT4 N2ojZ5nbK4CEgDV31ci6rcTVelhflK5qsd3fjG5KN2uoWSGlg5PegHYqTjAeV5lE yu/tllNBn4miBacYkrgVVeVpDNwUGoo= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=6slPSUT1bAnlYmaFql1eJ8j3isyrPeHp41Iwt1E4s fg=; b=B7pcJ/Ym0CIDvFFDdQot0GdRGTHXXTVhBdkyZqqDuhVldh4bq4j0voqAC y5B2cYW0FUHhC9PnuT+WODk0HReEweFfyab9VlHgorfE0nG5QFfDIv1115kxbTJS oM2Lpoes1qaTf6AKi2VPFqJ2vL0DHsOh3eFGz8To5J1oh882knMqNNvYn6VkvbYw eCCmRD77iI6OMLyjRAz8cHaA63mg2NPAYtJAaak0oCN7KixzOHSqMvWQtT3v3+eK 68IbkNJLrEE9n3rJJKd/UHKmeY+PdER4sRwQTCEc/hMp8M6pI8vECZP+OSeo4YkC Z5tqfTWzvW4DJLYgVJt9W+2UPmaQw== X-ME-Sender: X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 5B121E4897; Thu, 25 Oct 2018 18:54:58 -0400 (EDT) From: Thomas Monjalon To: Honnappa Nagarahalli Cc: dev@dpdk.org, bruce.richardson@intel.com, pablo.de.lara.guarch@intel.com, yipeng1.wang@intel.com, dharmik.thakkar@arm.com, gavin.hu@arm.com, nd@arm.com Date: Fri, 26 Oct 2018 00:55:01 +0200 Message-ID: <2691977.lcrpPM4Irn@xps> In-Reply-To: <1540344746-29045-3-git-send-email-honnappa.nagarahalli@arm.com> References: <1540344746-29045-1-git-send-email-honnappa.nagarahalli@arm.com> <1540344746-29045-3-git-send-email-honnappa.nagarahalli@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v6 2/5] hash: support do not free on delete X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Oct 2018 22:55:00 -0000 24/10/2018 03:32, Honnappa Nagarahalli: > /** > + * @warning > + * @b EXPERIMENTAL: this API may change without prior notice > + * > + * Free a hash key in the hash table given the position > + * of the key. This operation is not multi-thread safe and should > + * only be called from one thread by default. Thread safety > + * can be enabled by setting flag during table creation. > + * If RTE_HASH_EXTRA_FLAGS_NO_FREE_ON_DEL is enabled, > + * this API must be called, with the key index returned by rte_hash_add_key_xxx > + * APIs, after the key is deleted using rte_hash_del_key_xxx APIs. > + * This API does not validate if the key is already freed. > + * > + * @param h > + * Hash table to free the key from. > + * @param position > + * Position returned when the key was deleted. > + * @return > + * - 0 if freed successfully > + * - -EINVAL if the parameters are invalid. > + */ > +int __rte_experimental > +rte_hash_free_key_with_position(const struct rte_hash *h, > + const int32_t position); You need to add this new function to the map file, otherwise linking of shared library will fail.