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 BFA7642D0A; Wed, 21 Jun 2023 03:54:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 55AA6410FD; Wed, 21 Jun 2023 03:54:52 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id DEC0340DFB for ; Wed, 21 Jun 2023 03:54:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687312491; x=1718848491; h=from:to:cc:subject:date:message-id; bh=sCMR52GcoknutYV5WeOBb1Hk63zwMWTaHDP1bxNMD/Y=; b=SITQsx1oiVahAGeNXPsqSWDHCa0pbfuHHyoMeIFiy45keQNjjdt9Cr66 03WFvdFMDrjA6vpJGf5Ii9uNp1Oc98g0vfz5WWgEFStgO2wDiA4BgrNYI feJ6wj8P21u6HreuPSfP1MXBqVA6pE0vOjKBzb1cY1Xihb822rple3Ib7 lnx0cRiEeCdymBY55V2vb2LYotFQM5vQkKfsAYn0Ritremhts+q6kSaeX uWcoTlZfoU3vCx118ruyFS1HUZEdOT/vsHc84kGABOLMGskBaqwpz0PIj EXZtoxVNzBLyUiTc7I3/X2zqtI2lMHApsP+IGvN1m1BuhJhGGXzZgftX9 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10747"; a="358906501" X-IronPort-AV: E=Sophos;i="6.00,258,1681196400"; d="scan'208";a="358906501" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2023 18:54:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10747"; a="708515715" X-IronPort-AV: E=Sophos;i="6.00,258,1681196400"; d="scan'208";a="708515715" Received: from dpdk-wenzhuo-cascadelake.sh.intel.com ([10.67.110.255]) by orsmga007.jf.intel.com with ESMTP; 20 Jun 2023 18:54:46 -0700 From: Wenzhuo Lu To: dev@dpdk.org Cc: Wenzhuo Lu Subject: [PATCH] net/iavf: fix SCTP tunnel packet forwarding issue Date: Wed, 21 Jun 2023 09:15:21 +0800 Message-Id: <1687310121-130508-1-git-send-email-wenzhuo.lu@intel.com> X-Mailer: git-send-email 1.8.3.1 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 The SCTP tunnel packets cannot be forwarded in AVX2 mode. As 2 features are developed in parallel, 5712bf9d6e14 ("net/iavf: add Tx AVX2 offload path") doesn't consider the impact of 4f8259df563a ("net/iavf: enable Tx outer checksum offload on AVX512"). So, the wrong TX path is selected. Fixes: 5712bf9d6e14 ("net/iavf: add Tx AVX2 offload path") Signed-off-by: Wenzhuo Lu --- drivers/net/iavf/iavf_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rxtx.c index 4c59c1a..a22abb1 100644 --- a/drivers/net/iavf/iavf_rxtx.c +++ b/drivers/net/iavf/iavf_rxtx.c @@ -3919,7 +3919,7 @@ struct iavf_tx_context_desc_qws { check_ret = iavf_tx_vec_dev_check(dev); - if (check_ret >= 0 && + if ((check_ret == IAVF_VECTOR_PATH || check_ret == IAVF_VECTOR_OFFLOAD_PATH) && rte_vect_get_max_simd_bitwidth() >= RTE_VECT_SIMD_128) { /* SSE not support offload path yet. */ if (check_ret == IAVF_VECTOR_PATH) { -- 1.8.3.1