From patchwork Thu Jan 14 17:12:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zoltan Kiss X-Patchwork-Id: 59748 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp9178lbb; Thu, 14 Jan 2016 09:12:32 -0800 (PST) X-Received: by 10.55.73.68 with SMTP id w65mr6972367qka.68.1452791552805; Thu, 14 Jan 2016 09:12:32 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id l21si8221757qhc.82.2016.01.14.09.12.32; Thu, 14 Jan 2016 09:12:32 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 49503618D6; Thu, 14 Jan 2016 17:12:32 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=T2rHQLHY; dkim-adsp=none (unprotected policy); dkim-atps=neutral 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=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, 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 6220261845; Thu, 14 Jan 2016 17:12:28 +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 4A8BC61843; Thu, 14 Jan 2016 17:12:26 +0000 (UTC) Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by lists.linaro.org (Postfix) with ESMTPS id 6068161843 for ; Thu, 14 Jan 2016 17:12:25 +0000 (UTC) Received: by mail-wm0-f46.google.com with SMTP id b14so445510611wmb.1 for ; Thu, 14 Jan 2016 09:12:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id; bh=pNJnOrOIXHGiixefVd0QhBgsXcRdF8wNBsgO9T3MKHE=; b=T2rHQLHY9Ycyr4bhoNmSgvOvtlZbhL2ePsPyhsneE8yKnJOtiV9dvxf7vC7/r3lnpE 0RPs6KXovcfXc/aRkcbNtFmV6KRx7a00mR+3UxTfPgE5/cSvDWEYPSMFj6ct3U5XwUuA LaMnYcK0pnW85jmDkIc0Npr6Sq1YtVeROxyvA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=pNJnOrOIXHGiixefVd0QhBgsXcRdF8wNBsgO9T3MKHE=; b=ch0akqGwJb6IEvYKYkZmJ1c31Ut1HabPo4vwgbRWLFNah2wtG6H5TgRCJlXkbs/1P9 FElHz+QbbKdRjYk2N4+mfCzvdZtcCKXfyoc2ok2PXHB/rTIcR6OVd9wbfAf5mRkZYrwD CJzwwWOxZkxVtTp43NQbOC4/zWSP+ul2X/C7fEI4YLGVBcdyzGTz2UQ+6/k6PJPAdQHc Fqj6OQwMnOY098uBc1ggWoasjuRVR1kmN9589ElMsbtLmtjHAXxKEDfQcnrGHVcdCU6u J2cOM5XUndmLP4UXi1dm1Rjmr6odOnK4gIGhKrVRTRDSnfMupZXUgj+d7JHZuARImXA2 sH9w== X-Gm-Message-State: ALoCoQmZWHs2eetitHFWuMedDzmQIIiTDfT+OjbU8JK16dn5ovmo3ahHmwS1dw9A8SEq6VaYx/9atUYl61oyw8eMewLpnN8/aA== X-Received: by 10.28.18.21 with SMTP id 21mr31190140wms.11.1452791544333; Thu, 14 Jan 2016 09:12:24 -0800 (PST) Received: from localhost.localdomain ([195.11.233.227]) by smtp.googlemail.com with ESMTPSA id i63sm8110542wmf.24.2016.01.14.09.12.23 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 14 Jan 2016 09:12:23 -0800 (PST) From: Zoltan Kiss To: lng-odp@lists.linaro.org Date: Thu, 14 Jan 2016 17:12:11 +0000 Message-Id: <1452791531-25639-1-git-send-email-zoltan.kiss@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] test: change l2fwd pool size 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: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" The current code looks awkward, it defines pkt.num as 564. Clean that up and set it to 8k to make sure even several big descriptor rings could be accomodated. Signed-off-by: Zoltan Kiss Reviewed-by: Bill Fischofer diff --git a/test/performance/odp_l2fwd.c b/test/performance/odp_l2fwd.c index a85b830..a4c6e49 100644 --- a/test/performance/odp_l2fwd.c +++ b/test/performance/odp_l2fwd.c @@ -33,7 +33,7 @@ /** @def SHM_PKT_POOL_SIZE * @brief Size of the shared memory block */ -#define SHM_PKT_POOL_SIZE (512*2048) +#define SHM_PKT_POOL_SIZE 8192 /** @def SHM_PKT_POOL_BUF_SIZE * @brief Buffer size of the packet pool buffer @@ -535,7 +535,7 @@ int main(int argc, char *argv[]) odp_pool_param_init(¶ms); params.pkt.seg_len = SHM_PKT_POOL_BUF_SIZE; params.pkt.len = SHM_PKT_POOL_BUF_SIZE; - params.pkt.num = SHM_PKT_POOL_SIZE/SHM_PKT_POOL_BUF_SIZE; + params.pkt.num = SHM_PKT_POOL_SIZE; params.type = ODP_POOL_PACKET; pool = odp_pool_create("packet pool", ¶ms);