From patchwork Fri Jul 10 18:03:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Fischofer X-Patchwork-Id: 51049 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 03BF1228E5 for ; Fri, 10 Jul 2015 18:05:02 +0000 (UTC) Received: by lbbpo10 with SMTP id po10sf42242994lbb.1 for ; Fri, 10 Jul 2015 11:05:01 -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=Fd1U/zOlH6zaqumDBsxR/43b9WZnGPD9Y+N6F/xPcclW4ZRs3MWnafd33Pr0iJUbKy jOWIMk5SnV+9XyJpWS4uHC2xcq4qhyP2YLaqAloqEa5INZfGHYJg6+V97W6gN1zSeb4s KVGtNbvOAmbjlh77NkUzUP0SPREym6aiHLTuxC3z6i/66g5fNt1Oh+632OLCygAMmyh/ stI8eBxOzyWo3Ws3eMzfBinXSp/tOGdrF2ti6gEa2dAFHVL5TC9U0fzWrwM4Cgp8gIwB QUMsQ6/mvA+bHHTjmAhxl/bfbFz+TzQ88Ry8oqNUDFPF5LAHS3GMdw/Mr0PiiD75WtVk 0Z6A== X-Gm-Message-State: ALoCoQmeZgoB81EpAGublGat1SInnz9nOK+fvr4h+JmvING/xowOcLoAgVyMCGHvApg9rjTEUomd X-Received: by 10.112.148.101 with SMTP id tr5mr11384001lbb.13.1436551500937; Fri, 10 Jul 2015 11:05:00 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.19.39 with SMTP id b7ls1178068lae.85.gmail; Fri, 10 Jul 2015 11:05:00 -0700 (PDT) X-Received: by 10.152.9.5 with SMTP id v5mr20600709laa.111.1436551500780; Fri, 10 Jul 2015 11:05:00 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id is4si7909596lac.103.2015.07.10.11.05.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jul 2015 11:05:00 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by lagc2 with SMTP id c2so266894737lag.3 for ; Fri, 10 Jul 2015 11:05:00 -0700 (PDT) X-Received: by 10.112.166.2 with SMTP id zc2mr20783135lbb.29.1436551500674; Fri, 10 Jul 2015 11:05:00 -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 hn6csp147835lbb; Fri, 10 Jul 2015 11:04:59 -0700 (PDT) X-Received: by 10.140.17.139 with SMTP id 11mr14257118qgd.65.1436551499239; Fri, 10 Jul 2015 11:04:59 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id n35si11661578qge.91.2015.07.10.11.04.58; Fri, 10 Jul 2015 11:04:59 -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 5A05A62072; Fri, 10 Jul 2015 18:04:58 +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 4830462076; Fri, 10 Jul 2015 18:04:13 +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 B4F8562060; Fri, 10 Jul 2015 18:04:06 +0000 (UTC) Received: from mail-ob0-f174.google.com (mail-ob0-f174.google.com [209.85.214.174]) by lists.linaro.org (Postfix) with ESMTPS id 0C1D462074 for ; Fri, 10 Jul 2015 18:03:42 +0000 (UTC) Received: by obbgp5 with SMTP id gp5so83758650obb.0 for ; Fri, 10 Jul 2015 11:03:41 -0700 (PDT) X-Received: by 10.202.73.198 with SMTP id w189mr19498642oia.102.1436551421538; Fri, 10 Jul 2015 11:03:41 -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 fh3sm4374778obb.23.2015.07.10.11.03.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 10 Jul 2015 11:03:41 -0700 (PDT) From: Bill Fischofer To: lng-odp@lists.linaro.org Date: Fri, 10 Jul 2015 13:03:32 -0500 Message-Id: <1436551413-2609-3-git-send-email-bill.fischofer@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1436551413-2609-1-git-send-email-bill.fischofer@linaro.org> References: <1436551413-2609-1-git-send-email-bill.fischofer@linaro.org> X-Topics: patch Subject: [lng-odp] [API-NEXT PATCHv2 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.44 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;