From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id B65901B1C1 for ; Wed, 24 Jan 2018 16:39:35 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 6939722430; Wed, 24 Jan 2018 10:39:35 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 24 Jan 2018 10:39:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=M3dZqysxPwMm0gd1s AkRymL5FfB8wxEH+FxHNIE/R9U=; b=lYuKcIXNeQHlAc+M4+D+mlnsseA333AlT vT4vRCmboAr1HBAITgyVGAlHw35dSOFP6VWUTQFHKkLPWcoSLn5vDNTewg8LJ/0g Wuk8ymcaxav3YXAXd/5cQ8MEcsUv2a8qL2wC0nVLh8yNBW1vL1c3arSdiHRddkg/ A8Eh5S90EXhcGYCr3clM6MxtTc3oGd6Qydgqr4lEmc624kGgQgqat1rBpJAl0MyB FmzNzPgkSsTJDhSxhLpebDI4m2W7diU5sPfl4zsoZNYOJRmDAf2PoxL7OgJN5Db/ WfT4dxs2+ikgSCIuWZndC3cfDIxT9t++Hl7U/0mZvBHg65RCuM3mQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=M3dZqysxPwMm0gd1sAkRymL5FfB8wxEH+FxHNIE/R9U=; b=HXQupup+ 3lMOtq51a1DJfVutroPMhN4CrZRrowLRuwaW6yAEpi8omIqOXz5qhnk5Px36+SjL tnQtzMhw0UAXicMMIpvDmztFGjMPmVMXOU+ARkMAcinK72gvHGaXRH35YaSsbaSH xQmxPzsO2WZrWSm47T/O6bltBjS4pY9ya9YlS979pK5mpxET9LeZsF7ZgTO4NMeh frJw/inojClET8c3dmT7QEbNul06qUcAlTNmIhPkrM7l2AG+yr9tFG4qHjMKoIGK QX4Cmy//Mmq65RHzvlFq/V6ES+nmC4pMGhd8YieILN6U89da1yXoyWCRzFRNVc4h 87q8un47d/7zFg== X-ME-Sender: Received: from localhost.localdomain (unknown [115.150.27.206]) by mail.messagingengine.com (Postfix) with ESMTPA id AA7BA7E3D6; Wed, 24 Jan 2018 10:39:33 -0500 (EST) From: Yuanhan Liu To: Hemant Agrawal Cc: dpdk stable Date: Wed, 24 Jan 2018 23:32:30 +0800 Message-Id: <1516808026-25523-82-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> References: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/dpaa: fix uninitialized and unused variables' has been queued to LTS release 17.11.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jan 2018 15:39:36 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 01/26/18. So please shout if anyone has objections. Thanks. --yliu --- >>From deb7adc2a8b678049e94f3ad2327a4bbc827a9a0 Mon Sep 17 00:00:00 2001 From: Hemant Agrawal Date: Wed, 10 Jan 2018 16:16:23 +0530 Subject: [PATCH] net/dpaa: fix uninitialized and unused variables [ upstream commit 8d804cf1a2f75b935a70de40cc1d0b286d50bf60 ] This patch fixes the issues reported by NXP's internal coverity build. Fixes: 05ba55bc2b1a ("net/dpaa: add packet dump for debugging") Fixes: 37f9b54bd3cf ("net/dpaa: support Tx and Rx queue setup") Signed-off-by: Hemant Agrawal --- drivers/net/dpaa/dpaa_ethdev.c | 6 +++--- drivers/net/dpaa/dpaa_rxtx.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index cf5a2ec..3023302 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -723,7 +723,7 @@ static int dpaa_fc_set_default(struct dpaa_if *dpaa_intf) static int dpaa_rx_queue_init(struct qman_fq *fq, uint32_t fqid) { - struct qm_mcc_initfq opts; + struct qm_mcc_initfq opts = {0}; int ret; PMD_INIT_FUNC_TRACE(); @@ -769,7 +769,7 @@ static int dpaa_rx_queue_init(struct qman_fq *fq, static int dpaa_tx_queue_init(struct qman_fq *fq, struct fman_if *fman_intf) { - struct qm_mcc_initfq opts; + struct qm_mcc_initfq opts = {0}; int ret; PMD_INIT_FUNC_TRACE(); @@ -800,7 +800,7 @@ static int dpaa_tx_queue_init(struct qman_fq *fq, /* Initialise a DEBUG FQ ([rt]x_error, rx_default). */ static int dpaa_debug_queue_init(struct qman_fq *fq, uint32_t fqid) { - struct qm_mcc_initfq opts; + struct qm_mcc_initfq opts = {0}; int ret; PMD_INIT_FUNC_TRACE(); diff --git a/drivers/net/dpaa/dpaa_rxtx.c b/drivers/net/dpaa/dpaa_rxtx.c index 41e57f2..771e141 100644 --- a/drivers/net/dpaa/dpaa_rxtx.c +++ b/drivers/net/dpaa/dpaa_rxtx.c @@ -665,7 +665,7 @@ tx_on_external_pool(struct qman_fq *txq, struct rte_mbuf *mbuf, return 1; } - DPAA_MBUF_TO_CONTIG_FD(mbuf, fd_arr, dpaa_intf->bp_info->bpid); + DPAA_MBUF_TO_CONTIG_FD(dmable_mbuf, fd_arr, dpaa_intf->bp_info->bpid); return 0; } -- 2.7.4