From patchwork Mon Apr 25 20:14:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 66637 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp1237472qge; Mon, 25 Apr 2016 13:17:32 -0700 (PDT) X-Received: by 10.107.180.194 with SMTP id d185mr17941079iof.151.1461615452863; Mon, 25 Apr 2016 13:17:32 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id k185si25347267iof.134.2016.04.25.13.17.32; Mon, 25 Apr 2016 13:17:32 -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 3EA2C617DA; Mon, 25 Apr 2016 20:17:32 +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 25BD66178E; Mon, 25 Apr 2016 20:15:00 +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 19E2F617F7; Mon, 25 Apr 2016 20:14:55 +0000 (UTC) Received: from mail-oi0-f53.google.com (mail-oi0-f53.google.com [209.85.218.53]) by lists.linaro.org (Postfix) with ESMTPS id 02536617B1 for ; Mon, 25 Apr 2016 20:14:26 +0000 (UTC) Received: by mail-oi0-f53.google.com with SMTP id k142so188801032oib.1 for ; Mon, 25 Apr 2016 13:14:25 -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=ReaTotw1dAapJTZRGfBaVhPwFDVTyFtcbdRHBEU3nwI=; b=TvfVJIk/8C08NGNEnr/8ZvFlIudzGMB7rEvWModALc/fn9+y9ZkYwe8vhOeuT/IzRq XQLilHGbZE4tzgjDyGzFntEpNP6RFxgPgQNVugAQHs0urUkPStDfaQZcGkIgQiwsImx8 pHRO43fQu0SBpc+wKBa6Kqu4b0nICfvCtUFv8SVY14P2gzgZBK56vKeXwyLOk+Pvz9b0 y/T4aSFosC1u7eReDlkJGM9du28H46P5RhruVskhxK7dCiFg18nQcWnPSFR0QTLTf5im /miyBTy+yEiz1FHH2lExgsP3YWahkWFSg9p0ZGqsY2lH9aDcM71GK9Q0xTHTp6XhSGAQ Ot7g== X-Gm-Message-State: AOPr4FV73KX9iLUxbWq0ZF/SFEY8Wx7MOuDINzRWbgedmaxbLH0mDVnVoH2AjlROiu/oc5a6GfA= X-Received: by 10.202.44.19 with SMTP id s19mr14772005ois.78.1461615265464; Mon, 25 Apr 2016 13:14:25 -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 b3sm6959158otc.30.2016.04.25.13.14.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Apr 2016 13:14:25 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Mon, 25 Apr 2016 15:14:15 -0500 Message-Id: <1461615258-17929-5-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1461615258-17929-1-git-send-email-bill.fischofer@linaro.org> References: <1461615258-17929-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv2 4/7] 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 8619e6b..8c8bd9a 100644 --- a/test/validation/packet/packet.c +++ b/test/validation/packet/packet.c @@ -288,6 +288,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); @@ -955,6 +961,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);