Message ID | 1427397805-27395-4-git-send-email-zoltan.kiss@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBD34DVH7Y4DRB3FZ2GUAKGQEVZRG33Y@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8510F21585 for <linaro@patches.linaro.org>; Thu, 26 Mar 2015 19:24:29 +0000 (UTC) Received: by labcd2 with SMTP id cd2sf7977772lab.3 for <linaro@patches.linaro.org>; Thu, 26 Mar 2015 12:24:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=/52mAN4ojWGLS8EoPqJqONLC7VfW2Pq36aSYWnwiqb4=; b=XJE4NN9pn3PKXKugsVgDDU3GUyrm6zgrXimmw1JAb7jEjaD1UBfW+Jpci+es6KoRrZ bAxJVKQyf7G8vQhHGa9KGQ3AEdOV6i+Z5GK7I+IaFhkwiFQmKcucu9ZKMlNb+6Kk/v13 T2qjh4YTR9imlXsJYgjhwgNl8hTWypUU574aWamIk1Vcp2a0seJI4XTzN+ur0YTVnYhB jZVOZSEqWjJ5e2JdW7Wt9sDQvyDu/2wPOpjgspUM9ZNRLU9CpkmtBFh2z+tQNOFgWSHx RPJyJD47vaEY5M6FXRQrQqLlnhUvtiZGJtR1sSp62V03Cusf7JCdpSxIyMyPdsGzSPCI bXbQ== X-Gm-Message-State: ALoCoQnAmlOfu56MmEbXEZlmZm8b7eBQGgk3vTGTlKsLzRVDsVXhPiwe9EmTZnXPZX79BpnFYkJJ X-Received: by 10.112.17.105 with SMTP id n9mr3699813lbd.8.1427397868524; Thu, 26 Mar 2015 12:24:28 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.19.36 with SMTP id b4ls265402lae.46.gmail; Thu, 26 Mar 2015 12:24:28 -0700 (PDT) X-Received: by 10.112.89.71 with SMTP id bm7mr14879513lbb.20.1427397868383; Thu, 26 Mar 2015 12:24:28 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id m20si5312814lbg.107.2015.03.26.12.24.28 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Mar 2015 12:24:28 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by labto5 with SMTP id to5so54020776lab.0 for <patchwork-forward@linaro.org>; Thu, 26 Mar 2015 12:24:28 -0700 (PDT) X-Received: by 10.112.162.167 with SMTP id yb7mr14410076lbb.76.1427397868293; Thu, 26 Mar 2015 12:24:28 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.57.201 with SMTP id k9csp813603lbq; Thu, 26 Mar 2015 12:24:27 -0700 (PDT) X-Received: by 10.55.51.77 with SMTP id z74mr33065157qkz.84.1427397866994; Thu, 26 Mar 2015 12:24:26 -0700 (PDT) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id r103si5871284qkr.92.2015.03.26.12.24.25 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 26 Mar 2015 12:24:26 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from <lng-odp-bounces@lists.linaro.org>) id 1YbDOB-0000By-JM; Thu, 26 Mar 2015 19:24:23 +0000 Received: from mail-wi0-f173.google.com ([209.85.212.173]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from <zoltan.kiss@linaro.org>) id 1YbDNZ-00006a-Md for lng-odp@lists.linaro.org; Thu, 26 Mar 2015 19:23:45 +0000 Received: by wixm2 with SMTP id m2so18897318wix.0 for <lng-odp@lists.linaro.org>; Thu, 26 Mar 2015 12:23:40 -0700 (PDT) X-Received: by 10.194.121.136 with SMTP id lk8mr29638121wjb.49.1427397820317; Thu, 26 Mar 2015 12:23:40 -0700 (PDT) Received: from localhost.localdomain ([90.152.119.35]) by mx.google.com with ESMTPSA id g5sm9673433wjr.19.2015.03.26.12.23.39 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Mar 2015 12:23:39 -0700 (PDT) From: Zoltan Kiss <zoltan.kiss@linaro.org> To: lng-odp@lists.linaro.org Date: Thu, 26 Mar 2015 19:23:22 +0000 Message-Id: <1427397805-27395-4-git-send-email-zoltan.kiss@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1427397805-27395-1-git-send-email-zoltan.kiss@linaro.org> References: <1427397805-27395-1-git-send-email-zoltan.kiss@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH v2 3/6] netdev-odp: Increase packet pool size X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <http://lists.linaro.org/mailman/listinfo/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: zoltan.kiss@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 |
diff --git a/lib/netdev-odp.c b/lib/netdev-odp.c index 385401f..ae944f7 100644 --- a/lib/netdev-odp.c +++ b/lib/netdev-odp.c @@ -49,7 +49,7 @@ VLOG_DEFINE_THIS_MODULE(odp); -#define SHM_PKT_POOL_NUM_BUFS 512 +#define SHM_PKT_POOL_NUM_BUFS 32768 - 1 #define SHM_PKT_POOL_BUF_SIZE 1856 #define SHM_OFPBUF_NUM_BUFS 512
DPDK needs this otherwise it saturates the whole pool too fast. For some reason it doesn't work properly if the pool size is too small. Use a 2^q - 1 number as suggested by rte_mempool_create. Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org> --- v2: decrease by one on DPDK's recommendation lib/netdev-odp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)