From patchwork Thu Feb 19 13:38:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 44840 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f71.google.com (mail-ee0-f71.google.com [74.125.83.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AC42A21554 for ; Thu, 19 Feb 2015 13:38:56 +0000 (UTC) Received: by mail-ee0-f71.google.com with SMTP id d17sf5540768eek.2 for ; Thu, 19 Feb 2015 05:38:55 -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=6nzDI5z3KB3o8RB/7X0e1UeVKQJXWoetviNuzWsuTik=; b=WJZznOAftr1H8113+dnqEmJVFJnsn2clLCrAjQNuB4fRKS23YqFv6e9kb2kcGfcxSX e5nRjnIO6WU5515dDJ5XtAt5d8Vwg3vCPzYytpoqSW3n1Q1vpoxYLmTixSD4egSZfhEs K+4aUcTkUCjDxYWGgkuSdGGnLyLvf5pz3F2ddZkOl0FmKpEe0h7GFiE1bnyJQL6Vp76H CHij3+Mxmb3ylsnMiG+RtT0Y2Kd9+65B0+gexheRGPaNHKAeCat6YcXeD9wCjMROAJPV c2VG6b6cvy7Z+05bQNsnz6UJeGjYf15Aa4TVrbodTybNue3Ihhylg54gHhF/U6QrwDTu bPUg== X-Gm-Message-State: ALoCoQlqQxYCNwkjHOp4NBGz280eZNRYj4/VNrPU20IaviQJMhjxqwiT0HlMEEDQzICs1mdVc3kY X-Received: by 10.112.124.142 with SMTP id mi14mr578662lbb.1.1424353135899; Thu, 19 Feb 2015 05:38:55 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.140 with SMTP id ay12ls174677lab.2.gmail; Thu, 19 Feb 2015 05:38:55 -0800 (PST) X-Received: by 10.112.110.103 with SMTP id hz7mr4113322lbb.62.1424353135369; Thu, 19 Feb 2015 05:38:55 -0800 (PST) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id t1si13435478lal.6.2015.02.19.05.38.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Feb 2015 05:38:55 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by labgm9 with SMTP id gm9so7721020lab.2 for ; Thu, 19 Feb 2015 05:38:55 -0800 (PST) X-Received: by 10.152.26.199 with SMTP id n7mr3897944lag.29.1424353135288; Thu, 19 Feb 2015 05:38:55 -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 h5csp497268lbj; Thu, 19 Feb 2015 05:38:50 -0800 (PST) X-Received: by 10.140.165.150 with SMTP id l144mr12347391qhl.39.1424353129331; Thu, 19 Feb 2015 05:38:49 -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 n16si24754798qaa.37.2015.02.19.05.38.48 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 19 Feb 2015 05:38:49 -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 1YORJW-0003OO-FL; Thu, 19 Feb 2015 13:38:46 +0000 Received: from mail-ob0-f174.google.com ([209.85.214.174]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YORJD-0003Mg-HA for lng-odp@lists.linaro.org; Thu, 19 Feb 2015 13:38:27 +0000 Received: by mail-ob0-f174.google.com with SMTP id wo20so14058839obc.5 for ; Thu, 19 Feb 2015 05:38:22 -0800 (PST) X-Received: by 10.60.178.209 with SMTP id da17mr2628474oec.65.1424353102290; Thu, 19 Feb 2015 05:38:22 -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 r83sm14906414oif.28.2015.02.19.05.38.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Feb 2015 05:38:21 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 19 Feb 2015 07:38:07 -0600 Message-Id: <1424353087-14302-5-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1424353087-14302-1-git-send-email-bill.fischofer@linaro.org> References: <1424353087-14302-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv4 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.47 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 | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/include/odp/api/config.h b/include/odp/api/config.h index 3ac9e2c..c15d340 100644 --- a/include/odp/api/config.h +++ b/include/odp/api/config.h @@ -95,15 +95,8 @@ 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 @@ -111,9 +104,8 @@ extern "C" { * 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. - * */ -#define ODP_CONFIG_PACKET_SEG_LEN_MAX ODP_CONFIG_PACKET_SEG_LEN_MIN +#define ODP_CONFIG_PACKET_SEG_LEN_MAX (64*1024) /** * Maximum packet buffer length