From patchwork Fri Apr 15 00:25:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 65868 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp897994qge; Thu, 14 Apr 2016 17:33:51 -0700 (PDT) X-Received: by 10.50.241.13 with SMTP id we13mr1584662igc.66.1460680431183; Thu, 14 Apr 2016 17:33:51 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id fv6si6782174igc.9.2016.04.14.17.33.50; Thu, 14 Apr 2016 17:33: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; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id B7EC167544; Fri, 15 Apr 2016 00:33:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 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 [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 0161C61A0D; Fri, 15 Apr 2016 00:27:53 +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 8D9436195E; Fri, 15 Apr 2016 00:27:47 +0000 (UTC) Received: from mail-oi0-f50.google.com (mail-oi0-f50.google.com [209.85.218.50]) by lists.linaro.org (Postfix) with ESMTPS id D60AD675BC for ; Fri, 15 Apr 2016 00:25:43 +0000 (UTC) Received: by mail-oi0-f50.google.com with SMTP id y204so109887722oie.3 for ; Thu, 14 Apr 2016 17:25:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=X2ebD/0Qskd45EqImep5xle7AuguHpaU2G6OwQr9uwg=; b=JimoBxZ5i9W2/sNIEfVwq7pBueUaYGCwkSa9Ou5hULKVQS8RmxpyHLhKd6Y4ZQF+VI n1o6mW7xCiKqvkuahRU+So7HAbTyMbc1VTrDxYJXi6ffzX9CxOwsZ+v4ccQ32XStgjrn V9NbuCA33zH2PfwIwcGHtcztTicqfr2PW+CWkmFdoyKhEo3GWT8e5Zm1lyWQGhCZHeP+ b24rui2ExMJ7wLZE/k2cE+2KCYTxmVS6i63Gyo1v0mztdRD8Y1WtxuMaLuuxMcXNC3cp 7Ya/LLICijwMUlj2sjmQg7lIQLjOVHy7pIjDdCVl0DJYAIt3MHxGN3yz4+pe2Itq3iH/ oTug== X-Gm-Message-State: AOPr4FXd2H5Ligp+q7iYvaZA46h/yAso78F3AAf6Bh7BeTeX7HBxzUOB8cq3td5JvlYxpxgJH5Q= X-Received: by 10.202.102.100 with SMTP id a97mr9171648oic.122.1460679943406; Thu, 14 Apr 2016 17:25:43 -0700 (PDT) Received: from Ubuntu15.localdomain (cpe-66-68-129-43.austin.res.rr.com. [66.68.129.43]) by smtp.gmail.com with ESMTPSA id xd3sm2584743oeb.1.2016.04.14.17.25.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 14 Apr 2016 17:25:42 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Thu, 14 Apr 2016 19:25:29 -0500 Message-Id: <1460679929-30653-11-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1460679929-30653-1-git-send-email-bill.fischofer@linaro.org> References: <1460679929-30653-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv5 10/10] validation: packet: add validation test for odp_packet_prefetch() X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" 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" Signed-off-by: Bill Fischofer Reviewed-by: Bala Manoharan --- test/validation/packet/packet.c | 7 +++++++ test/validation/packet/packet.h | 1 + 2 files changed, 8 insertions(+) diff --git a/test/validation/packet/packet.c b/test/validation/packet/packet.c index da7ed5c..82e34a6 100644 --- a/test/validation/packet/packet.c +++ b/test/validation/packet/packet.c @@ -293,6 +293,12 @@ void packet_test_length(void) CU_ASSERT(buf_len >= packet_len + headroom + tailroom); } +void packet_test_prefetch(void) +{ + odp_packet_prefetch(test_packet, 0, odp_packet_len(test_packet)); + CU_PASS(); +} + void packet_test_debug(void) { CU_ASSERT(odp_packet_is_valid(test_packet) == 1); @@ -957,6 +963,7 @@ odp_testinfo_t packet_suite[] = { ODP_TEST_INFO(packet_test_debug), ODP_TEST_INFO(packet_test_segments), ODP_TEST_INFO(packet_test_length), + ODP_TEST_INFO(packet_test_prefetch), ODP_TEST_INFO(packet_test_headroom), ODP_TEST_INFO(packet_test_tailroom), ODP_TEST_INFO(packet_test_context), diff --git a/test/validation/packet/packet.h b/test/validation/packet/packet.h index 0d78feb..23ce424 100644 --- a/test/validation/packet/packet.h +++ b/test/validation/packet/packet.h @@ -16,6 +16,7 @@ void packet_test_alloc_segmented(void); void packet_test_event_conversion(void); void packet_test_basic_metadata(void); void packet_test_length(void); +void packet_test_prefetch(void); void packet_test_debug(void); void packet_test_context(void); void packet_test_layer_offsets(void);