From patchwork Fri Jul 17 11:32:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 51230 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B045222A28 for ; Fri, 17 Jul 2015 11:32:53 +0000 (UTC) Received: by lafd3 with SMTP id d3sf25475855laf.1 for ; Fri, 17 Jul 2015 04:32:52 -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:delivered-to:from:to:date :message-id: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=8Znn/IuFOcMwgsI4M8kq0rCAN63xfm8LoezwCK6RVq0=; b=dcsaGuDyaIVQchCvHVkXAwLMyZnpUgUe8ZOMimA2+o01ZHTf5y0OYs2JhC5R2F7fZq ZT2V6qonmyV6OMVeq+gT0mqVhcDvUwWp9EzrZHbsZh/dnh9IuvUYZvVoBTKdJZWW5wBz CIOyZFiNWsVrs8Xr0gDWQhDsDFspk6nwIOWVqeTaiT3Ju9Y62n2nLSdRctmz8mi5qZL8 Ke6NJujBSZbi3iBdEw0rRLlCza1+Ev+5GQEWbfkLIR6Z/+m+0G1ItI2k6p9mqSDNhVVA 5otKoO4pP0oTTv5WeQCQqCTew3eEp0eiOtV3rb8JyZ6XKsWO4NkTpd/8cX0+Y+vj7Lws DTgQ== X-Gm-Message-State: ALoCoQlPRbmOZJo4Yjggp85j3n3Y5U2scGm7h4s3755gpuKQfGTo5B8VR0MZ7pmnLkDres4pSput X-Received: by 10.112.138.2 with SMTP id qm2mr7352232lbb.19.1437132772639; Fri, 17 Jul 2015 04:32:52 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.20.69 with SMTP id l5ls149264lae.73.gmail; Fri, 17 Jul 2015 04:32:52 -0700 (PDT) X-Received: by 10.112.47.73 with SMTP id b9mr14130103lbn.46.1437132772361; Fri, 17 Jul 2015 04:32:52 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id i18si9649584lbo.102.2015.07.17.04.32.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Jul 2015 04:32:52 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by lahh5 with SMTP id h5so59448240lah.2 for ; Fri, 17 Jul 2015 04:32:52 -0700 (PDT) X-Received: by 10.152.1.66 with SMTP id 2mr14464717lak.56.1437132772225; Fri, 17 Jul 2015 04:32:52 -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.108.230 with SMTP id hn6csp855863lbb; Fri, 17 Jul 2015 04:32:51 -0700 (PDT) X-Received: by 10.140.86.212 with SMTP id p78mr24742501qgd.49.1437132771041; Fri, 17 Jul 2015 04:32:51 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id r91si13384469qkr.48.2015.07.17.04.32.50; Fri, 17 Jul 2015 04:32:51 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 0BDB66211D; Fri, 17 Jul 2015 11:32:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 0895961E4A; Fri, 17 Jul 2015 11:32:46 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id D49DB61FD1; Fri, 17 Jul 2015 11:32:43 +0000 (UTC) Received: from mail-oi0-f46.google.com (mail-oi0-f46.google.com [209.85.218.46]) by lists.linaro.org (Postfix) with ESMTPS id C5E5861E39 for ; Fri, 17 Jul 2015 11:32:42 +0000 (UTC) Received: by oihq81 with SMTP id q81so68818727oih.2 for ; Fri, 17 Jul 2015 04:32:42 -0700 (PDT) X-Received: by 10.182.108.170 with SMTP id hl10mr12935017obb.17.1437132762341; Fri, 17 Jul 2015 04:32:42 -0700 (PDT) Received: from localhost.localdomain (cpe-24-28-70-239.austin.res.rr.com. [24.28.70.239]) by smtp.gmail.com with ESMTPSA id ke3sm6160859obb.28.2015.07.17.04.32.41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Jul 2015 04:32:41 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Fri, 17 Jul 2015 06:32:38 -0500 Message-Id: <1437132758-7098-1-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 X-Topics: patch Subject: [lng-odp] [PATCH] linux-generic: pool: use ODP_CONFIG_PACKET_SEG_LEN_MIN correctly X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 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" 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.53 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 Fix Bug https://bugs.linaro.org/show_bug.cgi?id=1696 Signed-off-by: Bill Fischofer --- platform/linux-generic/odp_pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_pool.c b/platform/linux-generic/odp_pool.c index dcbdf07..9a3ac16 100644 --- a/platform/linux-generic/odp_pool.c +++ b/platform/linux-generic/odp_pool.c @@ -205,7 +205,7 @@ odp_pool_t odp_pool_create(const char *name, tailroom = ODP_CONFIG_PACKET_TAILROOM; buf_num = params->pkt.num; - seg_len = params->pkt.seg_len == 0 ? + seg_len = params->pkt.seg_len <= ODP_CONFIG_PACKET_SEG_LEN_MIN ? ODP_CONFIG_PACKET_SEG_LEN_MIN : (params->pkt.seg_len <= ODP_CONFIG_PACKET_SEG_LEN_MAX ? params->pkt.seg_len : ODP_CONFIG_PACKET_SEG_LEN_MAX);