From patchwork Tue Sep 19 08:32:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wenjun Wu X-Patchwork-Id: 131593 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6D3E0425FC; Tue, 19 Sep 2023 10:27:27 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0CBE0402DA; Tue, 19 Sep 2023 10:27:27 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 969B84026E for ; Tue, 19 Sep 2023 10:27:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695112044; x=1726648044; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=/ssJ+UdWn+g3laB5I0WB3lI3Ts0bjSJFK0H7TdqLRHg=; b=Giv+odw0rIkrjEXfPJhZR+TA4vtvKDY1m1kLJh3Wjeg3l0suQXVnyubc cfNXds1+rBUtEzdvtGBQM+S4Junsax6NioLkQNbIWu2KCuIYPuU2URp2B iO1SjAXLlnsDd9oZIQlGQGIPqXUnAEtF/n2oM4y65kLJp5h9x0O48Qsbn Nd7SBkGSXP9kMmeOL0l/mqGlEzv8TtIBPePB2akwLIBFZ+fJ+403kHqOh AIoScK8IGWtkf3Qgb53rK9X/SHOFygjdj4iI1Zuvm5XSFMt16gPsQPcK8 TReoXczD0ytT0htKQNvaQ5NomTCgBf3bbiHzwDzYrNJx5hwDhHmblV702 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="377195566" X-IronPort-AV: E=Sophos;i="6.02,159,1688454000"; d="scan'208";a="377195566" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2023 01:27:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="919778735" X-IronPort-AV: E=Sophos;i="6.02,159,1688454000"; d="scan'208";a="919778735" Received: from dpdk-wuwenjun-icelake-ii.sh.intel.com ([10.67.110.152]) by orsmga005.jf.intel.com with ESMTP; 19 Sep 2023 01:27:02 -0700 From: Wenjun Wu To: dev@dpdk.org, yuying.zhang@intel.com, beilei.xing@intel.com, qi.z.zhang@intel.com Cc: Wenjun Wu Subject: [PATCH v1] net/cpfl: fix datapath function configuration Date: Tue, 19 Sep 2023 16:32:37 +0800 Message-Id: <20230919083237.171374-1-wenjun1.wu@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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 Vector datapath is not support any advanced features for now, so disable vector path if TX checksum offload or RX scatter is enabled. Fixes: 2f39845891e6 ("net/cpfl: add AVX512 data path for single queue model") Signed-off-by: Wenjun Wu --- drivers/net/cpfl/cpfl_rxtx_vec_common.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/cpfl/cpfl_rxtx_vec_common.h b/drivers/net/cpfl/cpfl_rxtx_vec_common.h index d8e9191196..9d48620cee 100644 --- a/drivers/net/cpfl/cpfl_rxtx_vec_common.h +++ b/drivers/net/cpfl/cpfl_rxtx_vec_common.h @@ -25,7 +25,11 @@ RTE_ETH_RX_OFFLOAD_TIMESTAMP) #define CPFL_TX_NO_VECTOR_FLAGS ( \ RTE_ETH_TX_OFFLOAD_TCP_TSO | \ - RTE_ETH_TX_OFFLOAD_MULTI_SEGS) + RTE_ETH_TX_OFFLOAD_MULTI_SEGS | \ + RTE_ETH_TX_OFFLOAD_IPV4_CKSUM | \ + RTE_ETH_TX_OFFLOAD_SCTP_CKSUM | \ + RTE_ETH_TX_OFFLOAD_UDP_CKSUM | \ + RTE_ETH_TX_OFFLOAD_TCP_CKSUM) static inline int cpfl_rx_vec_queue_default(struct idpf_rx_queue *rxq)