From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0A60A45E71 for ; Wed, 11 Dec 2024 04:53:36 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D5388402DE; Wed, 11 Dec 2024 04:53:35 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) by mails.dpdk.org (Postfix) with ESMTP id 33516402DE for ; Wed, 11 Dec 2024 04:53:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1733889214; x=1765425214; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=HBibNgezNMBVHVzgtOxfuTAanfq8LVtBdS3w9EmLPnM=; b=HOXq5pvk3VtuA0EaEOqmNZtCD+LNF8Kn2xJEaxI0177V24O6tR+oypkD CoNq/fZL8cPda/3xwgeSAI6+BxepHwsdldeDK7ZUXF72dpOmtGtnHJZU2 Cdm4QSfQSjkZb9WlwzaAwVVSbHbFzqzi81myRmYzLRm/VSRzd3hw4aHoc 6yciDGPeyRqe0FTdPceTzGsg6S4L93AcmaKS2LK6c7lSLSR2CKJCx6S6t Q+QxuNAsZ+3wW0r54TLXBRCcGMU3MuilzE9k2lp2Bbyg6ZQHPhQRRni5h 9f8DIBCC5+nkKWaNVTlXXyK/rChqGrYiqBBMsGAr2geUdp+kuUvXASVBo Q==; X-CSE-ConnectionGUID: jdn7Ar/sTVqiPs4KGbVolw== X-CSE-MsgGUID: HNV0t4ItSxScG8Ztk+1Wrw== X-IronPort-AV: E=McAfee;i="6700,10204,11282"; a="45659288" X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208";a="45659288" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Dec 2024 19:53:32 -0800 X-CSE-ConnectionGUID: WQzE9XFITsiyxBCzzUAiaA== X-CSE-MsgGUID: FHL4lbNuRSGoL8n/KG8Ltw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208";a="99716763" Received: from shwdenpg561.ccr.corp.intel.com (HELO dpdk..) ([10.239.252.3]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Dec 2024 19:53:29 -0800 From: Kaiwen Deng To: stable@dpdk.org Cc: Kaiwen Deng , Bruce Richardson , Jingjing Wu , Beilei Xing , Zhichao Zeng , Qi Zhang Subject: [PATCH] net/iavf: fix uninitialized variable Date: Wed, 11 Dec 2024 10:33:18 +0800 Message-Id: <20241211023320.3108477-1-kaiwenx.deng@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org This patch fixes the variable 'descs_bh' may be used uninitialized. Fixes: 6ad2944f4e82 ("net/iavf: support Rx timestamp offload on AVX2") Signed-off-by: Kaiwen Deng --- drivers/net/iavf/iavf_rxtx_vec_sse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/iavf/iavf_rxtx_vec_sse.c b/drivers/net/iavf/iavf_rxtx_vec_sse.c index 3f1d5e2ce8..199f5f5ccd 100644 --- a/drivers/net/iavf/iavf_rxtx_vec_sse.c +++ b/drivers/net/iavf/iavf_rxtx_vec_sse.c @@ -825,7 +825,7 @@ _recv_raw_pkts_vec_flex_rxd(struct iavf_rx_queue *rxq, rxdp += IAVF_VPMD_DESCS_PER_LOOP) { __m128i descs[IAVF_VPMD_DESCS_PER_LOOP]; #ifndef RTE_LIBRTE_IAVF_16BYTE_RX_DESC - __m128i descs_bh[IAVF_VPMD_DESCS_PER_LOOP]; + __m128i descs_bh[IAVF_VPMD_DESCS_PER_LOOP] = {_mm_setzero_si128()}; #endif __m128i pkt_mb0, pkt_mb1, pkt_mb2, pkt_mb3; __m128i staterr, sterr_tmp1, sterr_tmp2; -- 2.34.1