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 F1C4C4614D; Thu, 30 Jan 2025 20:26:22 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8942640275; Thu, 30 Jan 2025 20:26:22 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) by mails.dpdk.org (Postfix) with ESMTP id 8E21C4025A for ; Thu, 30 Jan 2025 20:26:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1738265182; x=1769801182; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=PT4tChewbxodMFUkEmTZLm+4g8rV6nCrxrztWj6+wQU=; b=YjdfRi6AWzw8DltM11/TUeaQKr/GBpyaM5SXgRWBWmQH3g6moqIg5xY2 BKcB+ytiMv0ciO3Mci3uC8rQjmeJP//HrbQIfL5+m/39Vrc9LrDPmqPEN QNVOr3Eb+a9P+g6sqe1mP7QlJy7sgKW5NLp9Ien4WqeZSjrd7GYhA5PBh KA6bjaULSLB/DbNtwSLv+U4AJh4nh7T9/cemM4kryVTCW+M2ZKSB7hOdo Uv0/7uCBIVsI9q6IfLa3trup/AUiMrhp9LegxmLUkS9IfqKs4z9c9J2x0 GtJMN9Jc6SFC+A1jqMFciyY/Wccm5a4Xrj2ipItdAL2nns8wPX70XoAtQ Q==; X-CSE-ConnectionGUID: q3xww6p7TsGmWzCniWGsxQ== X-CSE-MsgGUID: 0Xf5c9YOSyGr4fFRRFwhUg== X-IronPort-AV: E=McAfee;i="6700,10204,11331"; a="38071669" X-IronPort-AV: E=Sophos;i="6.13,246,1732608000"; d="scan'208";a="38071669" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jan 2025 11:26:21 -0800 X-CSE-ConnectionGUID: A//w3jyyRFOgqn1oESKeiA== X-CSE-MsgGUID: veIcsIYJRZ+LpvABum3VLA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.13,246,1732608000"; d="scan'208";a="110021473" Received: from unknown (HELO silpixa00401176.ir.intel.com) ([10.243.23.51]) by fmviesa009.fm.intel.com with ESMTP; 30 Jan 2025 11:26:19 -0800 From: Vladimir Medvedkin To: dev@dpdk.org Cc: anatoly.burakov@intel.com, bruce.richardson@intel.com, andremue@linux.microsoft.com Subject: [PATCH] net/ice: fix segmentation fault Rx function Date: Thu, 30 Jan 2025 19:26:17 +0000 Message-ID: <20250130192617.2744705-1-vladimir.medvedkin@intel.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Fix a typo in avx512 rx function, where accidentally the _mm_load_si128 argument was passed by value instead of a pointer. Fixes: 43fd3624fdfe ("drivers: replace GCC pragma with cast") Cc: andremue@linux.microsoft.com Signed-off-by: Vladimir Medvedkin --- drivers/net/intel/ice/ice_rxtx_vec_avx512.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/intel/ice/ice_rxtx_vec_avx512.c b/drivers/net/intel/ice/ice_rxtx_vec_avx512.c index 681b31f61f..bd49be07c9 100644 --- a/drivers/net/intel/ice/ice_rxtx_vec_avx512.c +++ b/drivers/net/intel/ice/ice_rxtx_vec_avx512.c @@ -474,7 +474,7 @@ _ice_recv_raw_pkts_vec_avx512(struct ice_rx_queue *rxq, (RTE_CAST_PTR(const __m128i *, &rxdp[7].wb.status_error1)); rte_compiler_barrier(); const __m128i raw_desc_bh6 = _mm_load_si128 - (RTE_CAST_PTR(const __m128i *, rxdp[6].wb.status_error1)); + (RTE_CAST_PTR(const __m128i *, &rxdp[6].wb.status_error1)); rte_compiler_barrier(); const __m128i raw_desc_bh5 = _mm_load_si128 (RTE_CAST_PTR(const __m128i *, &rxdp[5].wb.status_error1)); -- 2.43.0