From patchwork Thu Feb 19 18:50:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 44856 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 374C121553 for ; Thu, 19 Feb 2015 18:50:53 +0000 (UTC) Received: by lamq1 with SMTP id q1sf1049924lam.0 for ; Thu, 19 Feb 2015 10:50:52 -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=LWZKpZEVinMQPy6r5ZZz7lEGo68e1R4eeXcAqirtX8c=; b=OLWo+N14wt/rdlSYxbChrEP739GYlSLxig6XSRiuKY9uvMgudZhx2cpfu/03ziTAcG oenshwgBpFOTPcE/DagjEjkAlthdj8z+sjPMrxRI/wt8Lm9t3KSroXr6xOUS90+oTWsv z1vHcQnLrqNeFrrYH3wbGnAp6/YGK9kiOZ7DcU0IeqV0/r8szIqvINnXBSCnhZdRuX0/ 02kUFeOy4bZzYQekaSqH66bSMExSHx8zyxL1z+X4/uFLJKeUC3UwMRSnEdu3j0xygoi7 H7+FXa9DzL+0oQ2o0h52a6/s09zfvtaD0KtjK5xQI34z0PalqV3SpKy5xhYrknc1yEqG Q21A== X-Gm-Message-State: ALoCoQnGoecNth0RKNfJ6s4Et909UqdJIGbOTDaVZxJpPvVQeeiRNJJBsu/ookuPJy8OoEyGW6QG X-Received: by 10.152.28.137 with SMTP id b9mr796625lah.8.1424371852086; Thu, 19 Feb 2015 10:50:52 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.7.75 with SMTP id da11ls179671lad.95.gmail; Thu, 19 Feb 2015 10:50:51 -0800 (PST) X-Received: by 10.112.215.35 with SMTP id of3mr5186046lbc.101.1424371851714; Thu, 19 Feb 2015 10:50:51 -0800 (PST) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id pl3si16310152lac.43.2015.02.19.10.50.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Feb 2015 10:50:51 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by labhs14 with SMTP id hs14so1577585lab.1 for ; Thu, 19 Feb 2015 10:50:51 -0800 (PST) X-Received: by 10.152.45.100 with SMTP id l4mr5162419lam.112.1424371851587; Thu, 19 Feb 2015 10:50:51 -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 h5csp681811lbj; Thu, 19 Feb 2015 10:50:50 -0800 (PST) X-Received: by 10.229.182.9 with SMTP id ca9mr11025137qcb.31.1424371850113; Thu, 19 Feb 2015 10:50:50 -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 i204si17312817qhc.57.2015.02.19.10.50.48 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 19 Feb 2015 10:50:50 -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 1YOWBR-0001jJ-To; Thu, 19 Feb 2015 18:50:45 +0000 Received: from mail-ob0-f170.google.com ([209.85.214.170]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YOWB7-0001gu-9Z for lng-odp@lists.linaro.org; Thu, 19 Feb 2015 18:50:25 +0000 Received: by mail-ob0-f170.google.com with SMTP id va2so18072512obc.1 for ; Thu, 19 Feb 2015 10:50:20 -0800 (PST) X-Received: by 10.202.212.214 with SMTP id l205mr3519752oig.117.1424371819965; Thu, 19 Feb 2015 10:50:19 -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 z184sm15375902oie.0.2015.02.19.10.50.19 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Feb 2015 10:50:19 -0800 (PST) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 19 Feb 2015 12:50:00 -0600 Message-Id: <1424371800-4249-6-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1424371800-4249-1-git-send-email-bill.fischofer@linaro.org> References: <1424371800-4249-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv5 6/6] 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.41 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 ff9d5f2..8f1139d 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