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 A66F643694 for ; Thu, 7 Dec 2023 04:15:20 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9A44842E9E; Thu, 7 Dec 2023 04:15:20 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 3473A4028B; Thu, 7 Dec 2023 04:15:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701918917; x=1733454917; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=aOfWegiHkpu3gxFhVEfI2v0OFBupdvQiYzTF0mZ13TY=; b=aJVB8h9p0utYbK9gIummqEiht9/tEr2rqB2Ee+mIFBnO3PATlJcHtC4N yK88WB0Ajz7NdWiWZ4JEWKBCi9RE2A39c3vCgul6TbNGBjUGtWm0iXvM4 vrYCMLnJ77xw5B/pVu00H/JDblgFsbdi960lYGE7ZU64NbeOaTw2LLWos ERMGXZ1gZFtq+pbVDaNzEP+cbeUnPmJBpQqnKDbkHrHKW8+wCfnjrOMdN XtlbvgcuQMYbE4q6WonknYARwdxvfToduT9sqYTUtU8ANqecc863Y9Zse Pgdw/30v1i3tHjahdjSxfkPdU1zQMkpK6xOizoZRja3KiEfBRZcX3CKhr w==; X-IronPort-AV: E=McAfee;i="6600,9927,10916"; a="393036243" X-IronPort-AV: E=Sophos;i="6.04,256,1695711600"; d="scan'208";a="393036243" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Dec 2023 19:15:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10916"; a="764953160" X-IronPort-AV: E=Sophos;i="6.04,256,1695711600"; d="scan'208";a="764953160" 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; 06 Dec 2023 19:15:11 -0800 From: Kaiwen Deng To: dev@dpdk.org Cc: stable@dpdk.org, qiming.yang@intel.com, yidingx.zhou@intel.com, Kaiwen Deng , Qi Zhang , Ting Xu , Kevin Liu , Ajit Khaparde , Andrew Rybchenko , Jerin Jacob , Hemant Agrawal , Somnath Kotur Subject: [PATCH v2] net/ice: fix tso tunnel setting to not take effect Date: Thu, 7 Dec 2023 10:30:51 +0800 Message-Id: <20231207023051.1914021-1-kaiwenx.deng@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231124064441.1774807-1-kaiwenx.deng@intel.com> References: <20231124064441.1774807-1-kaiwenx.deng@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org The Tx offload capabilities of ICE ethdev doesn't include tso tunnel, which will result in tso tunnel setting to not take effect. The patch adds tunnel tso offload to ICE_TX_NO_VECTOR_FLAGS. This commit will add tso tunnel capabilities in ice_dev_info_get(). Bugzilla ID: 1327 Fixes: d852fec1be63 ("net/ice: fix Tx offload path choice") Fixes: 295968d17407 ("ethdev: add namespace") Cc: stable@dpdk.org Signed-off-by: Kaiwen Deng --- drivers/net/ice/ice_ethdev.c | 6 +++++- drivers/net/ice/ice_rxtx_vec_common.h | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index 3ccba4db80..fbc957fcd8 100644 --- a/drivers/net/ice/ice_ethdev.c +++ b/drivers/net/ice/ice_ethdev.c @@ -3876,7 +3876,11 @@ ice_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) RTE_ETH_TX_OFFLOAD_TCP_CKSUM | RTE_ETH_TX_OFFLOAD_SCTP_CKSUM | RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM | - RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM; + RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM | + RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO | + RTE_ETH_TX_OFFLOAD_GRE_TNL_TSO | + RTE_ETH_TX_OFFLOAD_IPIP_TNL_TSO | + RTE_ETH_TX_OFFLOAD_GENEVE_TNL_TSO; dev_info->flow_type_rss_offloads |= ICE_RSS_OFFLOAD_ALL; } diff --git a/drivers/net/ice/ice_rxtx_vec_common.h b/drivers/net/ice/ice_rxtx_vec_common.h index 55840cf170..4b73465af5 100644 --- a/drivers/net/ice/ice_rxtx_vec_common.h +++ b/drivers/net/ice/ice_rxtx_vec_common.h @@ -251,6 +251,10 @@ ice_rxq_vec_setup_default(struct ice_rx_queue *rxq) RTE_ETH_TX_OFFLOAD_MULTI_SEGS | \ RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM | \ RTE_ETH_TX_OFFLOAD_TCP_TSO | \ + RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO | \ + RTE_ETH_TX_OFFLOAD_GRE_TNL_TSO | \ + RTE_ETH_TX_OFFLOAD_IPIP_TNL_TSO | \ + RTE_ETH_TX_OFFLOAD_GENEVE_TNL_TSO | \ RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM) #define ICE_TX_VECTOR_OFFLOAD ( \ -- 2.34.1