From patchwork Thu Feb 19 14:45:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 44842 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f199.google.com (mail-we0-f199.google.com [74.125.82.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 01B7221553 for ; Thu, 19 Feb 2015 14:46:45 +0000 (UTC) Received: by wesw55 with SMTP id w55sf169276wes.0 for ; Thu, 19 Feb 2015 06:46:44 -0800 (PST) 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=CXwqYh8JGJ7vTkyhdo1V4MuTwxJeJMhefVdVQIe1jW4=; b=WhfM4YHB65DJsZHSSgbhJ6KSbJlJdcQ5qHFkBo3qH3KMJKXlEoZskADhN2f2cSCCxA dxy+kUk45sOuiuaj/oO+F3eYoa27+WDv8kOCJa0jF8z8SB1XUqAWMNwNic2UU0HYlD49 KMtnU3LYFUnNaemVZoU7TeZyQvdPzKmz+zNeCes0pf9W2mnIkZOACQFd/Aix8bXWLX43 G0rKjsxBptGZ1l6ps0N2uzFGYcw3zuIjL4L/Gjntk6O+2wrb/eVvjBt5uxHLKtetUkpV 2gcG42QRwf7k47qmuq4j2tT1rjfYBnyL5IGkJkqVJfSRE24LrnUZ39xFTdXXcQCby1X0 S2QQ== X-Gm-Message-State: ALoCoQnTmtF1kH+mbbkYOW+FET4Kam1ZAuFZUPEQUj46wrMnlJ4TZJwNbkp4qNvp2lFBZzMWt/QI X-Received: by 10.194.239.41 with SMTP id vp9mr629457wjc.5.1424357204314; Thu, 19 Feb 2015 06:46:44 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.45.6 with SMTP id i6ls167826lam.10.gmail; Thu, 19 Feb 2015 06:46:44 -0800 (PST) X-Received: by 10.112.235.10 with SMTP id ui10mr4250254lbc.77.1424357204083; Thu, 19 Feb 2015 06:46:44 -0800 (PST) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id pk3si14937376lbc.70.2015.02.19.06.46.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Feb 2015 06:46:44 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by labpv20 with SMTP id pv20so8051443lab.8 for ; Thu, 19 Feb 2015 06:46:44 -0800 (PST) X-Received: by 10.112.56.139 with SMTP id a11mr4360200lbq.36.1424357203938; Thu, 19 Feb 2015 06:46:43 -0800 (PST) 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 h5csp536857lbj; Thu, 19 Feb 2015 06:46:43 -0800 (PST) X-Received: by 10.140.80.201 with SMTP id c67mr12125771qgd.74.1424357202649; Thu, 19 Feb 2015 06:46:42 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id 63si11949847qhy.111.2015.02.19.06.46.41 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 19 Feb 2015 06:46:42 -0800 (PST) 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 1YOSND-0006ob-BD; Thu, 19 Feb 2015 14:46:39 +0000 Received: from mail-lb0-f171.google.com ([209.85.217.171]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YOSN0-0006nc-D0 for lng-odp@lists.linaro.org; Thu, 19 Feb 2015 14:46:26 +0000 Received: by lbdu10 with SMTP id u10so172968lbd.7 for ; Thu, 19 Feb 2015 06:46:20 -0800 (PST) X-Received: by 10.152.87.50 with SMTP id u18mr4270763laz.82.1424357180703; Thu, 19 Feb 2015 06:46:20 -0800 (PST) Received: from localhost.localdomain (ppp91-76-170-205.pppoe.mtu-net.ru. [91.76.170.205]) by mx.google.com with ESMTPSA id rm3sm4863822lbb.47.2015.02.19.06.46.19 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Feb 2015 06:46:19 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Thu, 19 Feb 2015 17:45:49 +0300 Message-Id: <1424357149-14761-3-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.8.5.1.163.gd7aced9 In-Reply-To: <1424357149-14761-1-git-send-email-maxim.uvarov@linaro.org> References: <1424357149-14761-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [RFC/PATCH 2/2] linux-generic: jumbo frames raw sockets 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: maxim.uvarov@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.54 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 Signed-off-by: Maxim Uvarov --- platform/linux-generic/odp_buffer_pool.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/platform/linux-generic/odp_buffer_pool.c b/platform/linux-generic/odp_buffer_pool.c index f8e35b4..c6d1585 100644 --- a/platform/linux-generic/odp_buffer_pool.c +++ b/platform/linux-generic/odp_buffer_pool.c @@ -283,9 +283,7 @@ odp_pool_t odp_pool_create(const char *name, pool->s.flags.unsegmented = unseg; pool->s.flags.zeroized = zeroized; - pool->s.seg_size = unseg ? - blk_size : ODP_CONFIG_PACKET_SEG_LEN_MIN; - + pool->s.seg_size = blk_size; uint8_t *block_base_addr = pool->s.pool_base_addr; uint8_t *mdata_base_addr =