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 DA28641D8B; Mon, 27 Feb 2023 06:37:04 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 73D2340A84; Mon, 27 Feb 2023 06:37:04 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id C3F9A40A7D for ; Mon, 27 Feb 2023 06:37:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677476222; x=1709012222; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=XtUuEU5MCXy5xGo0FwvbwQPRtpT7HXA+21irdErWLhg=; b=U5xns+ooSkCLsOl7n6vsf6Pw1SKJETUJfHJamnrlhuIs6ctms1TGwfgc ctR0SXSwjG01bbnziI7cCLsukoyKNKMQOorNqIM4lXz0vGiYvMcHIGeqd JpfqIr+qwmxbPhnxYbrTBoAc8Dox671G/VPKm0o82kvOEWTt1EMEQPDMw pYLLjPPYqtqXWzNFihgis5uERH7tuB3tx8TNkMBtDXuK9VhdrkhXCdaBK vOfLgwAh/IWnMjGZ9UsouceMI0akbMkKWWrwNGVsdcHFZ/QuTjygniMhB L/Z1Iq4MRjYYxCwDebM6RUfW3QU9Cdi0wodcZ0LCZ4C5d7Yjv6QdK7o6L g==; X-IronPort-AV: E=McAfee;i="6500,9779,10633"; a="314208695" X-IronPort-AV: E=Sophos;i="5.97,331,1669104000"; d="scan'208";a="314208695" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2023 21:37:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10633"; a="703883017" X-IronPort-AV: E=Sophos;i="5.97,331,1669104000"; d="scan'208";a="703883017" Received: from dpdk-wuwenjun-icelake-ii.sh.intel.com ([10.67.110.153]) by orsmga008.jf.intel.com with ESMTP; 26 Feb 2023 21:36:59 -0800 From: Wenjun Wu To: dev@dpdk.org, jingjing.wu@intel.com, beilei.xing@intel.com, qi.z.zhang@intel.com Cc: Wenjun Wu Subject: [PATCH v1] net/idpf: fix datapath function configuration Date: Mon, 27 Feb 2023 13:36:53 +0800 Message-Id: <20230227053653.178661-1-wenjun1.wu@intel.com> X-Mailer: git-send-email 2.34.1 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 Vector datapath is not support any advanced features for now, so disable vector path if TX checksum offload or RX scatter is enabled. Fixes: e528d7c74819 ("common/idpf: add AVX512 data path for split queue model") Signed-off-by: Wenjun Wu --- drivers/net/idpf/idpf_rxtx_vec_common.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/net/idpf/idpf_rxtx_vec_common.h b/drivers/net/idpf/idpf_rxtx_vec_common.h index 9bb4ce62f8..2787d27616 100644 --- a/drivers/net/idpf/idpf_rxtx_vec_common.h +++ b/drivers/net/idpf/idpf_rxtx_vec_common.h @@ -25,7 +25,11 @@ RTE_ETH_RX_OFFLOAD_TIMESTAMP) #define IDPF_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 idpf_rx_vec_queue_default(struct idpf_rx_queue *rxq) @@ -80,6 +84,9 @@ idpf_rx_vec_dev_check_default(struct rte_eth_dev *dev) struct idpf_rx_queue *rxq; int i, default_ret, splitq_ret, ret = IDPF_SCALAR_PATH; + if (dev->data->scattered_rx) + return IDPF_SCALAR_PATH; + for (i = 0; i < dev->data->nb_rx_queues; i++) { rxq = dev->data->rx_queues[i]; default_ret = idpf_rx_vec_queue_default(rxq); -- 2.34.1