From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id 07B199A98 for ; Tue, 14 Jun 2016 18:08:42 +0200 (CEST) Received: by mail-wm0-f47.google.com with SMTP id n184so128681191wmn.1 for ; Tue, 14 Jun 2016 09:08:41 -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=v8d4eQupn9QdEuu5/bnTQKXm0RThXBvXB5NMTK07wh8=; b=KiQrQV2Hz2bIRpa7R9fh4oiyVgfvTLtFsKNLruxtz3z+YgzxiemUcZ0dqFUtAoYFwX shGkf4Zvyr8jB2OuiGvqaVGc0nMc/P9duz1L6Vgp6At9ZIggDyd3HaNFLn+tNu0Q7/Ws ofoZaNmp+jpndHU+FC1gN+xGWFW4zFg/nxs+q8vshu1YYA6N+0hv+VbJdrhCbDwH/b6t VsSeIjXOEnhfcBPlAIGS7jCfbNftONdddMpvnVMjdtcGfdsF/mMuTSYCd2tW8nyz2A3/ nej2MSASqEaOViN6Tu1BrNCUHHDIK743H62DIoJxlxVfUoV7V7hMhsBbXn+pfG8srCH6 NQ0Q== 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=v8d4eQupn9QdEuu5/bnTQKXm0RThXBvXB5NMTK07wh8=; b=SgMpFIBRe+uNMQodolvyXSzfyCW2BEHw2iPNskt56Q7Fj5VzDzzkZ57pQYQ7Haf5Qy 24zL9D6PhBRgWfVnu6KMQNt49b+40ZTLOi2vOx5JVrZHxUDrQW1K1qokcyv3OL4HWTyN 8Wl+BY1ggL6//C8mKVxLmgI5jov60HR9kQ6pAEYVptU7msbMAhsFp6oGwPavZYYFZcMu oOvaduWrR1N/Jvlfvv5XR6/AKFM18dVyHSD0YI78U5fkx7PA2N5WPTgPtyhP448elUGY HnDHjxwHc2OXr7zGg4JbcoIiN75PZ9yuFk775/KppXesQaEkexkW1YD1UHdpsknP6kv/ Rdfg== X-Gm-Message-State: ALyK8tLPzUt+m/UPJK5/L1U2zV8Wt98rPDid8UbCzt/0+ddq+f6Rq3sIoX/4qKGUDnsMWpmL X-Received: by 10.28.27.8 with SMTP id b8mr5513550wmb.40.1465920521650; Tue, 14 Jun 2016 09:08:41 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id hf7sm14734909wjc.48.2016.06.14.09.08.40 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 14 Jun 2016 09:08:40 -0700 (PDT) From: Thomas Monjalon To: David Hunt Cc: dev@dpdk.org, olivier.matz@6wind.com, viktorin@rehivetech.com, jerin.jacob@caviumnetworks.com, shreyansh.jain@nxp.com Date: Tue, 14 Jun 2016 18:08:39 +0200 Message-ID: <1731609.TaFs5CoLoa@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1465919341-3209-2-git-send-email-david.hunt@intel.com> References: <1465897575-37638-1-git-send-email-david.hunt@intel.com> <1465919341-3209-1-git-send-email-david.hunt@intel.com> <1465919341-3209-2-git-send-email-david.hunt@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v11 1/3] mempool: support external mempool operations 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: Tue, 14 Jun 2016 16:08:42 -0000 2016-06-14 16:48, David Hunt: > +Several external mempool managers may be used in the same application. A new > +mempool can be created by using the ``rte_mempool_create_empty()`` function, > +then using ``rte_mempool_set_ops_byname()`` to point the mempool to the > +relevant mempool manager callbacki (ops) structure. vim typo: callbacki > +/** > + * Register mempool operations. > + * > + * @param h > + * Pointer to and ops structure to register. Same error as in v10. > + * @return > + * - >=0: Success; return the index of the ops struct in the table. > + * - -EINVAL - some missing callbacks while registering ops struct. > + * - -ENOSPC - the maximum number of ops structs has been reached. > + */ > +int rte_mempool_ops_register(const struct rte_mempool_ops *ops);