From patchwork Thu Mar 19 19:13:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zoltan Kiss X-Patchwork-Id: 46077 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f197.google.com (mail-we0-f197.google.com [74.125.82.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BD8F22153C for ; Thu, 19 Mar 2015 19:14:30 +0000 (UTC) Received: by wesu56 with SMTP id u56sf14088057wes.2 for ; Thu, 19 Mar 2015 12:14:30 -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=2gPLvdQU06B4UdQVAJBebA5vpXxtr2W4cN2eKZ/HaVk=; b=Txq7AAPXWTtDBQz14m5J+parNv6G3hpInd6RPQ7HZrHLDFaVeOLFJ8OqTe1RtEPSD9 QqBU4jvPkaGeqYy0D2TWmXZpvtpVpfSyJ6OTBT1ydi53YVE91YFPJ/an4W94gpve8Y5V pOH6kFWeqondgBNbyfeQOuhj3qcdYcSosVGw76bX/s2MkvkvD9EA0BViRPfqJe+5rF4D To6r6nHncHPQSJPhILrTO6vpm0qrXsUCfzVRHeg7IAFQ5SzQ24Qh9F81Gt+k5le1jnPz sdQDxfKCGa5k6nEYmnUNJ6AIsDkdJ2RIzYcnrG1aluyCiR8QjqSrjdt3DeEfLh/3AVAR 8r8w== X-Gm-Message-State: ALoCoQnVu10dB4jazOEm2DeuWntRsrLbqjh66zjeXDs2cGjmm+5/E7E3dEamSGIWpPhwah1RwGde X-Received: by 10.112.97.37 with SMTP id dx5mr3639169lbb.15.1426792470068; Thu, 19 Mar 2015 12:14:30 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.180.138 with SMTP id do10ls243172lac.29.gmail; Thu, 19 Mar 2015 12:14:29 -0700 (PDT) X-Received: by 10.152.9.200 with SMTP id c8mr68710485lab.67.1426792469919; Thu, 19 Mar 2015 12:14:29 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id te1si1635384lbb.72.2015.03.19.12.14.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Mar 2015 12:14:29 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbcgn8 with SMTP id gn8so60034325lbc.2 for ; Thu, 19 Mar 2015 12:14:29 -0700 (PDT) X-Received: by 10.112.25.38 with SMTP id z6mr19561201lbf.106.1426792469801; Thu, 19 Mar 2015 12:14:29 -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.35.133 with SMTP id h5csp589038lbj; Thu, 19 Mar 2015 12:14:29 -0700 (PDT) X-Received: by 10.140.34.36 with SMTP id k33mr96651636qgk.66.1426792468663; Thu, 19 Mar 2015 12:14:28 -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 w33si2153660qgw.43.2015.03.19.12.14.27 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 19 Mar 2015 12:14:28 -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 ) id 1YYfti-0001CO-00; Thu, 19 Mar 2015 19:14:26 +0000 Received: from mail-wi0-f177.google.com ([209.85.212.177]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YYftS-0001AR-3K for lng-odp@lists.linaro.org; Thu, 19 Mar 2015 19:14:10 +0000 Received: by wixw10 with SMTP id w10so78274622wix.0 for ; Thu, 19 Mar 2015 12:14:04 -0700 (PDT) X-Received: by 10.180.12.194 with SMTP id a2mr19222854wic.55.1426792444724; Thu, 19 Mar 2015 12:14:04 -0700 (PDT) Received: from localhost.localdomain ([90.152.119.35]) by mx.google.com with ESMTPSA id s19sm8680658wik.18.2015.03.19.12.14.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Mar 2015 12:14:03 -0700 (PDT) From: Zoltan Kiss To: lng-odp@lists.linaro.org Date: Thu, 19 Mar 2015 19:13:43 +0000 Message-Id: <1426792426-12507-4-git-send-email-zoltan.kiss@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1426792426-12507-1-git-send-email-zoltan.kiss@linaro.org> References: <1426792426-12507-1-git-send-email-zoltan.kiss@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 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: 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-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.217.171 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 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. Signed-off-by: Zoltan Kiss --- lib/netdev-odp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/netdev-odp.c b/lib/netdev-odp.c index 385401f..0b13f7f 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 #define SHM_PKT_POOL_BUF_SIZE 1856 #define SHM_OFPBUF_NUM_BUFS 512