From patchwork Fri Apr 7 04:07:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 97010 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp111770qgd; Thu, 6 Apr 2017 21:08:04 -0700 (PDT) X-Received: by 10.55.24.219 with SMTP id 88mr16064457qky.249.1491538084246; Thu, 06 Apr 2017 21:08:04 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id p13si3567894qtg.6.2017.04.06.21.08.04; Thu, 06 Apr 2017 21:08:04 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id E5DD162D79; Fri, 7 Apr 2017 04:08:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 40BDB62D85; Fri, 7 Apr 2017 04:08:00 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 687E162D68; Fri, 7 Apr 2017 04:07:58 +0000 (UTC) Received: from mail-oi0-f44.google.com (mail-oi0-f44.google.com [209.85.218.44]) by lists.linaro.org (Postfix) with ESMTPS id CB16D62D68 for ; Fri, 7 Apr 2017 04:07:36 +0000 (UTC) Received: by mail-oi0-f44.google.com with SMTP id r203so73674385oib.3 for ; Thu, 06 Apr 2017 21:07:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=oS+CsSkBJ4y45GnKf8OZV0D3IEb7COq3j8HH7AbqS0M=; b=o54Wn/cTzGs5O55CtWiWubIAVdw1Xa10tFOJJlyKY0SmYCOxBdwljpwDqFLy2vMjWF 85sHcog5fvsjFp9wOUecvgLMcTTnvPztFWtkG7HUoAQCuPE81ksaivWDvFOtZtajPYNv xHtcHPKNXGAyMYh4DI4Tdsa9reJEvSomJaLtrdi6vqK3vdNKIZBlB10wEJ3cVjvWn757 aXvnKsGHUOrItXBc+nAoZg9bywqVIuKChagp2lVd3GZojgdykh63JYy9+GjxvxljYMRh 73uGhTYykP7ei8Bx6sm6M/twvAp8/qQUVVgBe6n4TGmuPmJzh9JbbYxtF9/PSWUegNep muRw== X-Gm-Message-State: AFeK/H1/f22iRrpnRNwIBa6ko8orlMouKJww79+vvgaCwyRz6dDZiiAIPSkW3yR6K8q2m7lpgRWe76z6 X-Received: by 10.157.84.42 with SMTP id j42mr22808427oth.80.1491538056059; Thu, 06 Apr 2017 21:07:36 -0700 (PDT) Received: from localhost.localdomain (cpe-70-113-26-109.austin.res.rr.com. [70.113.26.109]) by smtp.gmail.com with ESMTPSA id v49sm1638587otb.13.2017.04.06.21.07.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 06 Apr 2017 21:07:35 -0700 (PDT) From: Honnappa Nagarahalli To: lng-odp@lists.linaro.org Date: Thu, 6 Apr 2017 23:07:04 -0500 Message-Id: <1491538024-112904-2-git-send-email-honnappa.nagarahalli@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1491538024-112904-1-git-send-email-honnappa.nagarahalli@linaro.org> References: <1491538024-112904-1-git-send-email-honnappa.nagarahalli@linaro.org> Subject: [lng-odp] [PATCH 2/2] add queue size config to cuckoo table X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Some queue implementations in ODP take queue size input. Cuckoo table is modified to provide the queue size input while creating the queue. Signed-off-by: Honnappa Nagarahalli --- helper/cuckootable.c | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 Reviewed-by: Bill Fischofer diff --git a/helper/cuckootable.c b/helper/cuckootable.c index 80ff498..0d46300 100644 --- a/helper/cuckootable.c +++ b/helper/cuckootable.c @@ -256,6 +256,7 @@ odph_cuckoo_table_create( /* initialize free_slots queue */ odp_queue_param_init(&qparam); qparam.type = ODP_QUEUE_TYPE_PLAIN; + qparam.size = capacity; snprintf(queue_name, sizeof(queue_name), "fs_%s", name); queue = odp_queue_create(queue_name, &qparam);