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 6A5F343258; Wed, 1 Nov 2023 03:14:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EBC3D40633; Wed, 1 Nov 2023 03:13:59 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 29BBF402B0; Wed, 1 Nov 2023 03:13:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698804838; x=1730340838; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mZnyg4/IoHrjSs4xPD7m+wYuYsSvZfHh6VyftPW4LQI=; b=Bg5XwHE1cDyoMXDumRl6oIB/nlMcgP/JbkOE7fPS3sk8Pk3CKlMZyLpA hP+tNDJA85YILkC02bo6mSqiV36j8UBQDr5Q2f0vCwg3+ZS7oLC51bKo9 /eL1BpMWmyyfPuJMDwvaUs6wYtfSaMF1BSARU2zW5i4jkdH0gp5jDNl4m Wv0DY8Hjv9aqwKw5QyrVl4BIzCBBbv99+kcd27clHO3LJtyxZwpUAwnq3 eOBK4VNvt27uhzRgbp13sjuP4xuQRg2oa8IA80L9EZh/vRjB+iBvsfCHU 3yzuyJhIeFc9DoTnqIWrdIEOrufydevNSULsrDfEkznrjPAqjZ90904S+ Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10880"; a="378804588" X-IronPort-AV: E=Sophos;i="6.03,266,1694761200"; d="scan'208";a="378804588" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Oct 2023 19:13:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10880"; a="754338557" X-IronPort-AV: E=Sophos;i="6.03,266,1694761200"; d="scan'208";a="754338557" Received: from shwdenpg561.ccr.corp.intel.com (HELO dpdk..) ([10.239.252.3]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Oct 2023 19:13:54 -0700 From: Kaiwen Deng To: dev@dpdk.org Cc: stable@dpdk.org, qiming.yang@intel.com, yidingx.zhou@intel.com, Kaiwen Deng , Jingjing Wu , Beilei Xing , Zhichao Zeng Subject: [PATCH v2] net/iavf: fix coredump when exiting testpmd Date: Wed, 1 Nov 2023 09:34:33 +0800 Message-Id: <20231101013433.534399-1-kaiwenx.deng@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231026085444.497296-1-kaiwenx.deng@intel.com> References: <20231026085444.497296-1-kaiwenx.deng@intel.com> 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 Avf releasing mbuf using the vector path release API causes a coredump when the basic Tx path is selected. This commit changes to use the basic path release API when selecting the basic Tx path. Fixes: 22f1e7608ebc ("net/iavf: fix AVX2 Tx selection") Cc: stable@dpdk.org Signed-off-by: Kaiwen Deng --- drivers/net/iavf/iavf_rxtx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rxtx.c index 610912f635..a16e03d88c 100644 --- a/drivers/net/iavf/iavf_rxtx.c +++ b/drivers/net/iavf/iavf_rxtx.c @@ -4022,6 +4022,7 @@ iavf_set_tx_function(struct rte_eth_dev *dev) PMD_DRV_LOG(DEBUG, "AVX2 does not support outer checksum offload, using Basic Tx (port %d).", dev->data->port_id); + return; } else { dev->tx_pkt_burst = iavf_xmit_pkts_vec_avx2_offload; dev->tx_pkt_prepare = iavf_prep_pkts; -- 2.34.1