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 B2A55433B6 for ; Fri, 24 Nov 2023 08:27:27 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A489B42FFD; Fri, 24 Nov 2023 08:27:27 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id B245742F31; Fri, 24 Nov 2023 08:27:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700810845; x=1732346845; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=uD1vY+fzdMWwDKtYsDGdpQRiHQpxj4GjndTZnMSBQNs=; b=MwD9+xCVijT/zhfuEtqSyL44CGsE/v735rLsJTS3C2QhPMZXcrTYFx6O yS55p65PEaXTxyhGxanvYeU4LJs0A1I7wroLFLqE5CmSSZXGoaDnVB9aU g7yAK3JxPbKtMSmgpFobSGwsVp93pXCebDY7rCrqKHCmYBEV4hexbuJmG Pqkh1M51V2oO1KPbglT6C7eol+8rDRCnOCGhXTvxqRrZwHSdq1V9zOKLb twi3pxS2sOl1egCAhlLXvWjVLVjrqGpOwVEeNbzRmtzsJ7667IxOurbO9 0LkmPlNtWd4zy+nx2rSgYUzTQgDqIkskjrNcTg3RdDfSIy87SibiZauU9 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="377411609" X-IronPort-AV: E=Sophos;i="6.04,223,1695711600"; d="scan'208";a="377411609" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2023 23:27:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="796515897" X-IronPort-AV: E=Sophos;i="6.04,223,1695711600"; d="scan'208";a="796515897" Received: from shwdenpg561.ccr.corp.intel.com (HELO dpdk..) ([10.239.252.3]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2023 23:27:20 -0800 From: Kaiwen Deng To: dev@dpdk.org Cc: stable@dpdk.org, qiming.yang@intel.com, yidingx.zhou@intel.com, Kaiwen Deng , Qi Zhang , Jerin Jacob , Tyler Retzlaff , Somnath Kotur , Ajit Khaparde , Ferruh Yigit Subject: [PATCH] net/ice: fix tso tunnel setting to not take effect Date: Fri, 24 Nov 2023 14:44:40 +0800 Message-Id: <20231124064441.1774807-1-kaiwenx.deng@intel.com> X-Mailer: git-send-email 2.34.1 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. This commit will add tso tunnel capabilities in ice_dev_info_get(). Fixes: 295968d17407 ("ethdev: add namespace") Cc: stable@dpdk.org Signed-off-by: Kaiwen Deng --- drivers/net/ice/ice_ethdev.c | 6 +++++- 1 file changed, 5 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; } -- 2.34.1