From patchwork Fri Jul 10 15:07:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 51041 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 4E4FC2290A for ; Fri, 10 Jul 2015 15:09:12 +0000 (UTC) Received: by laar3 with SMTP id r3sf83885052laa.1 for ; Fri, 10 Jul 2015 08:09:11 -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: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=OdoypioqKfA0f/r+82Xh+HPDqqMynVMQ1ou1xUAjRFg=; b=K0V3fEo7ZCAqPklt/iBt948wVwWt8vYnFV0dJXbKolRFtMbvp6a5LM5WE1veH5T3Ca m7slydSgloAMJZemPUlU3c4lLA4Q5IqRnxyZ1ugeM01slC7kbQfZmie7AdXZzt2w8vl/ mIF56M5598XObgRB33WaNH5HROW1wAMBCNC09gOZ+8nzMy1hc2ionyzPx3HZdqoKrsds SWhGh/1d12ebhHTSXzjpRLErNT+LwmeZWOPWlz58Va2Z3zRkHHWeBPZQ0roGqdd07Mcl 1IMg7fPVytc+1kE2fs7QKrNjs0170yFoXkDDCm1kcr/QaDPaZf4i2FXt2Zgh38iE96Sk Zb9g== X-Gm-Message-State: ALoCoQlG6eEkaQUi/OLHPsvUCzUjZy51xYc/FoxmxGA7a2y09deTFeu9mb8uwixj1WXTFBlFMJUu X-Received: by 10.112.122.12 with SMTP id lo12mr11127147lbb.5.1436540951276; Fri, 10 Jul 2015 08:09:11 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.4.199 with SMTP id m7ls1253232lam.83.gmail; Fri, 10 Jul 2015 08:09:11 -0700 (PDT) X-Received: by 10.152.2.2 with SMTP id 2mr20764583laq.58.1436540951128; Fri, 10 Jul 2015 08:09:11 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id o2si7902350lbl.51.2015.07.10.08.09.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jul 2015 08:09:11 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by lagx9 with SMTP id x9so267018065lag.1 for ; Fri, 10 Jul 2015 08:09:11 -0700 (PDT) X-Received: by 10.112.222.133 with SMTP id qm5mr20339172lbc.86.1436540951025; Fri, 10 Jul 2015 08:09:11 -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 hn6csp46853lbb; Fri, 10 Jul 2015 08:09:09 -0700 (PDT) X-Received: by 10.140.129.151 with SMTP id 145mr35557009qhb.83.1436540949240; Fri, 10 Jul 2015 08:09:09 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id t39si11114617qgd.40.2015.07.10.08.09.05; Fri, 10 Jul 2015 08:09:09 -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 0DC2B6200D; Fri, 10 Jul 2015 15:09:05 +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_H2, 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 0682662008; Fri, 10 Jul 2015 15:08:11 +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 7EEAB6200D; Fri, 10 Jul 2015 15:08:03 +0000 (UTC) Received: from mail-oi0-f48.google.com (mail-oi0-f48.google.com [209.85.218.48]) by lists.linaro.org (Postfix) with ESMTPS id BB13E61FEF for ; Fri, 10 Jul 2015 15:07:33 +0000 (UTC) Received: by oiyy130 with SMTP id y130so213172134oiy.0 for ; Fri, 10 Jul 2015 08:07:33 -0700 (PDT) X-Received: by 10.202.129.70 with SMTP id c67mr18977250oid.42.1436540853272; Fri, 10 Jul 2015 08:07:33 -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 rg1sm4602028oeb.11.2015.07.10.08.07.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Jul 2015 08:07:32 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Fri, 10 Jul 2015 10:07:24 -0500 Message-Id: <1436540845-2890-3-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1436540845-2890-1-git-send-email-bill.fischofer@linaro.org> References: <1436540845-2890-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [prefix=API-NEXT PATCH 3/4] example: use odp_queue_param_init routine 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.51 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 Signed-off-by: Bill Fischofer --- example/classifier/odp_classifier.c | 2 ++ example/generator/odp_generator.c | 1 + example/ipsec/odp_ipsec.c | 3 +++ example/packet/odp_pktio.c | 1 + example/timer/odp_timer_test.c | 2 +- 5 files changed, 8 insertions(+), 1 deletion(-) diff --git a/example/classifier/odp_classifier.c b/example/classifier/odp_classifier.c index 6f7b101..82a74c0 100644 --- a/example/classifier/odp_classifier.c +++ b/example/classifier/odp_classifier.c @@ -209,6 +209,7 @@ static odp_pktio_t create_pktio(const char *dev, odp_pool_t pool) exit(EXIT_FAILURE); } + odp_queue_param_init(&qparam); qparam.sched.prio = ODP_SCHED_PRIO_DEFAULT; qparam.sched.sync = ODP_SCHED_SYNC_ATOMIC; qparam.sched.group = ODP_SCHED_GROUP_ALL; @@ -320,6 +321,7 @@ static void configure_default_queue(odp_pktio_t pktio, appl_args_t *args) sprintf(cos_name, "Default%s", args->if_name); cos_default = odp_cos_create(cos_name); + odp_queue_param_init(&qparam); qparam.sched.prio = ODP_SCHED_PRIO_DEFAULT; qparam.sched.sync = ODP_SCHED_SYNC_NONE; qparam.sched.group = ODP_SCHED_GROUP_ALL; diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c index 780cdf2..940ed67 100644 --- a/example/generator/odp_generator.c +++ b/example/generator/odp_generator.c @@ -340,6 +340,7 @@ static odp_pktio_t create_pktio(const char *dev, odp_pool_t pool) * Create and set the default INPUT queue associated with the 'pktio' * resource */ + odp_queue_param_init(&qparam); qparam.sched.prio = ODP_SCHED_PRIO_DEFAULT; qparam.sched.sync = ODP_SCHED_SYNC_ATOMIC; qparam.sched.group = ODP_SCHED_GROUP_ALL; diff --git a/example/ipsec/odp_ipsec.c b/example/ipsec/odp_ipsec.c index d892803..fd44765 100644 --- a/example/ipsec/odp_ipsec.c +++ b/example/ipsec/odp_ipsec.c @@ -323,6 +323,7 @@ void ipsec_init_pre(void) * - completion queue (should eventually be ORDERED) * - sequence number queue (must be ATOMIC) */ + odp_queue_param_init(&qparam); qparam.sched.prio = ODP_SCHED_PRIO_HIGHEST; qparam.sched.sync = ODP_SCHED_SYNC_ATOMIC; qparam.sched.group = ODP_SCHED_GROUP_ALL; @@ -448,6 +449,7 @@ void initialize_loop(char *intf) } /* Create input queue */ + odp_queue_param_init(&qparam); qparam.sched.prio = ODP_SCHED_PRIO_DEFAULT; qparam.sched.sync = ODP_SCHED_SYNC_ATOMIC; qparam.sched.group = ODP_SCHED_GROUP_ALL; @@ -533,6 +535,7 @@ void initialize_intf(char *intf) * Create and set the default INPUT queue associated with the 'pktio' * resource */ + odp_queue_param_init(&qparam); qparam.sched.prio = ODP_SCHED_PRIO_DEFAULT; qparam.sched.sync = ODP_SCHED_SYNC_ATOMIC; qparam.sched.group = ODP_SCHED_GROUP_ALL; diff --git a/example/packet/odp_pktio.c b/example/packet/odp_pktio.c index 7dc867d..c0b7b64 100644 --- a/example/packet/odp_pktio.c +++ b/example/packet/odp_pktio.c @@ -152,6 +152,7 @@ static odp_pktio_t create_pktio(const char *dev, odp_pool_t pool, int mode) ODP_QUEUE_TYPE_PKTIN, NULL); break; case APPL_MODE_PKT_SCHED: + odp_queue_param_init(&qparam); qparam.sched.prio = ODP_SCHED_PRIO_DEFAULT; qparam.sched.sync = ODP_SCHED_SYNC_ATOMIC; qparam.sched.group = ODP_SCHED_GROUP_ALL; diff --git a/example/timer/odp_timer_test.c b/example/timer/odp_timer_test.c index aabc012..5d362ec 100644 --- a/example/timer/odp_timer_test.c +++ b/example/timer/odp_timer_test.c @@ -425,7 +425,7 @@ int main(int argc, char *argv[]) /* * Create a queue for timer test */ - memset(¶m, 0, sizeof(param)); + odp_queue_param_init(¶m); param.sched.prio = ODP_SCHED_PRIO_DEFAULT; param.sched.sync = ODP_SCHED_SYNC_NONE; param.sched.group = ODP_SCHED_GROUP_ALL;