From patchwork Wed Feb 18 20:02:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 44799 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f200.google.com (mail-we0-f200.google.com [74.125.82.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 10FEC21554 for ; Wed, 18 Feb 2015 20:03:33 +0000 (UTC) Received: by wesw55 with SMTP id w55sf2274293wes.0 for ; Wed, 18 Feb 2015 12:03:32 -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=zwc51/5pJ0+B0blbdArMb/EmEBEv+vmyjVap7pSmQ1M=; b=enWfo+IWtr3+lD9sCN5hZtvb7dCnkuDZD7rCTBnwiX2Qb4DOXbyeaZ1iRP2ZDz74KS w3JbYYgQVtInj27n3WtKDivDOwv2sqftQWuVpr7tsNzz2qm0c3ZQeUaBWF43LlQk5Qky oK+E6ZYAaZi16zVUTVcYVMxfBXhxVXp9hFpghECRWYDBoDlic0LqNcCi1CNzPk9ZfBO2 Eor2jhKiSW3Jq22io5FPjDExcahgu6VzBPedIJistPv2fdGhpajo4ibD3qWb5Obhoa+D /2SxxaFStzw9fIzfCjBYgFfIdPhXwahCNxjRQUl9g/wQOtvG7ENTF4Lxah7Lp7ik4sni SKVQ== X-Gm-Message-State: ALoCoQkwLECjG6+KGmY+vDurpP4HvXt1Gipo7Sf/4N0bcKDP9XqFGCAm1fo1f+GfRdZd93Tqot9J X-Received: by 10.112.25.7 with SMTP id y7mr132491lbf.21.1424289812240; Wed, 18 Feb 2015 12:03:32 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.204.12 with SMTP id ku12ls57870lac.105.gmail; Wed, 18 Feb 2015 12:03:32 -0800 (PST) X-Received: by 10.112.164.101 with SMTP id yp5mr1013318lbb.82.1424289812026; Wed, 18 Feb 2015 12:03:32 -0800 (PST) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id s1si13488475lbf.154.2015.02.18.12.03.32 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Feb 2015 12:03:32 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by labhs14 with SMTP id hs14so3588229lab.1 for ; Wed, 18 Feb 2015 12:03:31 -0800 (PST) X-Received: by 10.152.43.193 with SMTP id y1mr930881lal.35.1424289811937; Wed, 18 Feb 2015 12:03:31 -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 h5csp52439lbj; Wed, 18 Feb 2015 12:03:31 -0800 (PST) X-Received: by 10.140.109.164 with SMTP id l33mr3396913qgf.91.1424289810723; Wed, 18 Feb 2015 12:03:30 -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 q130si14107080qha.79.2015.02.18.12.03.29 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 18 Feb 2015 12:03:30 -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 1YOAqF-00051F-EE; Wed, 18 Feb 2015 20:03:27 +0000 Received: from mail-ob0-f171.google.com ([209.85.214.171]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YOApv-0004mX-S0 for lng-odp@lists.linaro.org; Wed, 18 Feb 2015 20:03:08 +0000 Received: by mail-ob0-f171.google.com with SMTP id gq1so6503922obb.2 for ; Wed, 18 Feb 2015 12:03:02 -0800 (PST) X-Received: by 10.182.60.197 with SMTP id j5mr606642obr.85.1424289782563; Wed, 18 Feb 2015 12:03:02 -0800 (PST) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by mx.google.com with ESMTPSA id fi4sm13672102obb.16.2015.02.18.12.03.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Feb 2015 12:03:01 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Wed, 18 Feb 2015 14:02:47 -0600 Message-Id: <1424289767-16347-5-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1424289767-16347-1-git-send-email-bill.fischofer@linaro.org> References: <1424289767-16347-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv3 5/5] api: config: simplify packet configuration 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: bill.fischofer@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.52 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 Remove headroom/tailroom from ODP_CONFIG_PACKET_SEG_LEN_MIN and clarify meaning of ODP_CONFIG_PACKET_SEG_LEN_MAX. Signed-off-by: Bill Fischofer --- include/odp/api/config.h | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/include/odp/api/config.h b/include/odp/api/config.h index 3ac9e2c..5f211f3 100644 --- a/include/odp/api/config.h +++ b/include/odp/api/config.h @@ -95,25 +95,17 @@ extern "C" { * This defines the minimum packet segment buffer length in bytes. The user * defined segment length (seg_len in odp_pool_param_t) will be rounded up into * this value. - * - * @internal In linux-generic implementation: - * - The value MUST be a multiple of 8. - * - The value MUST be a multiple of ODP_CACHE_LINE_SIZE - * - The default value (1664) is large enough to support 1536-byte packets - * with the default headroom shown above and is a multiple of both 64 and 128, - * which are the most common cache line sizes. */ -#define ODP_CONFIG_PACKET_SEG_LEN_MIN (1664) +#define ODP_CONFIG_PACKET_SEG_LEN_MIN (1598) /** * Maximum packet segment length * * This defines the maximum packet segment buffer length in bytes. The user * defined segment length (seg_len in odp_pool_param_t) must not be larger than - * this. - * + * this. A value of 0 indicates no upper limit. */ -#define ODP_CONFIG_PACKET_SEG_LEN_MAX ODP_CONFIG_PACKET_SEG_LEN_MIN +#define ODP_CONFIG_PACKET_SEG_LEN_MAX 0 /** * Maximum packet buffer length