From patchwork Fri Dec 11 09:16:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Balasubramanian Manoharan X-Patchwork-Id: 58264 Delivered-To: patch@linaro.org Received: by 10.112.157.166 with SMTP id wn6csp3137lbb; Fri, 11 Dec 2015 01:16:50 -0800 (PST) X-Received: by 10.140.195.18 with SMTP id q18mr13295377qha.44.1449825409897; Fri, 11 Dec 2015 01:16:49 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id l108si19363821qge.8.2015.12.11.01.16.48; Fri, 11 Dec 2015 01:16:49 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: by lists.linaro.org (Postfix, from userid 109) id AE27B61FBA; Fri, 11 Dec 2015 09:16:48 +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=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID, 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 D094161D87; Fri, 11 Dec 2015 09:16:40 +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 2573561D8C; Fri, 11 Dec 2015 09:16:39 +0000 (UTC) Received: from mail-pf0-f174.google.com (mail-pf0-f174.google.com [209.85.192.174]) by lists.linaro.org (Postfix) with ESMTPS id 122A961D7F for ; Fri, 11 Dec 2015 09:16:38 +0000 (UTC) Received: by pfcc203 with SMTP id c203so1324672pfc.1 for ; Fri, 11 Dec 2015 01:16:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=FDWp4zWuE5byAMRFZTNdBtUQsuEFGG+UDozdjH+7m0o=; b=oCm/D8g8deufZQS4+XJUPfKxI+RBH051NUCBupPQIJqWegReMf1cePSFIZYBhqjYkP ODweAZl/8U6UFw57K6LgDr/ucCeZvlBmWKAxQ9RP5j5z45LyOW0KtJQavp4IfM4fhDfX TBhL6/feamHxEhuD3pIFcVj34ufcV3XTjp5joT9phs5Fxy1+4RssRdUxB5CdYrsV53mW CVJQXctBzn6BClcM+ekFb2v7ZO2+YDNSPPmVdCX3sYCSWkfiIcgTIxQpIQj1Fm1st4uK FLgroxwDB0JkZF7unZKOu/JiAuikgdB8Hu5fIk8TyIsfdMjGN+Wt/w6xA648rLiuDCA2 N1Fw== 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; bh=FDWp4zWuE5byAMRFZTNdBtUQsuEFGG+UDozdjH+7m0o=; b=emcTlY3DArlcLrUgM4B5mpu5ox2IY4Ho0Gc6iZ3rm3qtBFKRgzSwUqZD/YGEoPIwi9 z2ENDTaqHXIMuS9Xh0iWy3yznfK3VlmHVsGunPbjKQX/HbsWiwy6my9G8Lpt8qVIPOog 6I8swOULl3VbFsZLX2qdL+cQ5xsXnppPFrqYXAs8tZKK8nx+3ZbZ5yRi1K1hEStYx39a QV4Alz75wmcy4l1AZ0S6oufpc3+tTV0flbfi6/buz9L+TdpyDZgPdn17v7m1OMiWG0Df 5PnTRHE+ZMhuCgWEqDA5IltO+xcB8zs4ui5e1bhWXKd/GGU8ddNbOV4FTLqrzUd6z2/1 JNGg== X-Gm-Message-State: ALoCoQmA6L07bf2a7w6m4a7/olAKdt/B81FcAe/O9zMB65+t40oMC9KEOSdxpv+B0g4Rq46JKFQV+aJAamAMhzPjFczohQRtfw== X-Received: by 10.98.2.197 with SMTP id 188mr13527082pfc.135.1449825397285; Fri, 11 Dec 2015 01:16:37 -0800 (PST) Received: from bala-Vostro-2520.caveonetworks.com ([111.93.218.67]) by smtp.gmail.com with ESMTPSA id xr8sm24041405pab.26.2015.12.11.01.16.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 11 Dec 2015 01:16:36 -0800 (PST) From: Balasubramanian Manoharan To: lng-odp@lists.linaro.org Date: Fri, 11 Dec 2015 14:46:28 +0530 Message-Id: <1449825388-13506-1-git-send-email-bala.manoharan@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] example: classifier: fix add queue param init call 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" Fixes crash caused by queue param not being initialized. Signed-off-by: Balasubramanian Manoharan Reviewed-by: Stuart Haslam --- example/classifier/odp_classifier.c | 1 + 1 file changed, 1 insertion(+) diff --git a/example/classifier/odp_classifier.c b/example/classifier/odp_classifier.c index c8f264f..81e6bf0 100644 --- a/example/classifier/odp_classifier.c +++ b/example/classifier/odp_classifier.c @@ -401,6 +401,7 @@ static void configure_cos_queue(odp_pktio_t pktio, appl_args_t *args) }; stats->pmr = odp_pmr_create(&match); + odp_queue_param_init(&qparam); qparam.sched.prio = i % odp_schedule_num_prio(); qparam.sched.sync = ODP_SCHED_SYNC_NONE; qparam.sched.group = ODP_SCHED_GROUP_ALL;