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 AB975433B5; Fri, 24 Nov 2023 08:51:03 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 768EC42F69; Fri, 24 Nov 2023 08:51:03 +0100 (CET) Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by mails.dpdk.org (Postfix) with ESMTP id 9DAC442F31; Fri, 24 Nov 2023 08:51:01 +0100 (CET) Received: from kwepemm000004.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4Sc6VW64DDzMnPZ; Fri, 24 Nov 2023 15:46:11 +0800 (CST) Received: from [10.67.121.59] (10.67.121.59) by kwepemm000004.china.huawei.com (7.193.23.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 24 Nov 2023 15:50:56 +0800 Message-ID: <7d881dc4-ea3e-0ad7-d74f-a4348ce9bc09@huawei.com> Date: Fri, 24 Nov 2023 15:50:56 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH] net/ice: fix tso tunnel setting to not take effect To: Kaiwen Deng , CC: , , , Qi Zhang , Jerin Jacob , Tyler Retzlaff , Somnath Kotur , Ajit Khaparde , Ferruh Yigit References: <20231124064441.1774807-1-kaiwenx.deng@intel.com> From: "lihuisong (C)" In-Reply-To: <20231124064441.1774807-1-kaiwenx.deng@intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.121.59] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemm000004.china.huawei.com (7.193.23.18) X-CFilter-Loop: Reflected 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 please add Bugzilla ID 在 2023/11/24 14:44, Kaiwen Deng 写道: > 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; > } > correct, Reviewed-by: Huisong Li