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 0854C45BE5; Mon, 28 Oct 2024 03:08:54 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 747D14065E; Mon, 28 Oct 2024 03:08:52 +0100 (CET) Received: from smtpbgeu2.qq.com (smtpbgeu2.qq.com [18.194.254.142]) by mails.dpdk.org (Postfix) with ESMTP id 068FE40652; Mon, 28 Oct 2024 03:08:45 +0100 (CET) X-QQ-mid: bizesmtpsz8t1730081312t7zlijl X-QQ-Originating-IP: 9nMgD5BClozsQ+gXOWwWkPYfMM3IFD6LGzofyQO6/VY= Received: from wxdbg.localdomain.com ( [36.24.66.21]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 28 Oct 2024 10:08:31 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 7714603451660356390 From: Jiawen Wu To: dev@dpdk.org Cc: Jiawen Wu , stable@dpdk.org Subject: [PATCH v2 03/13] net/txgbe: remove outer UDP checksum capability Date: Mon, 28 Oct 2024 10:31:37 +0800 Message-Id: <20241028023147.60157-4-jiawenwu@trustnetic.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20241028023147.60157-1-jiawenwu@trustnetic.com> References: <20241023064836.2017879-1-jiawenwu@trustnetic.com> <20241028023147.60157-1-jiawenwu@trustnetic.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtpsz:trustnetic.com:qybglogicsvrgz:qybglogicsvrgz8a-1 X-QQ-XMAILINFO: MPEorwW6cFo9cLk8rNCuVo+FfZPMz+kDa4dAqwKxWSQ3miBPt8G4Pb4f SG/hQIazZIkiHS9gl4XrSOLhal8zLwjPZJienuM9ZpLTxufi5358HaQuwV+WvjHFNlmKLqB NQvuRxRkjk7LZDgorYfbrAhtkD90OmJWSqBzr4fwjMSUef1hbKfh/GKOppuVg5V2tnMq7TU KbtQGnOEEi4FjQ3IBu1B5BoI9q1HwSzK+DKkAvxCzqCOf3FHStWJ6H0TzQ/fn9ibZU/hehA RG6dn/3S22Z9N/o+r6N9qPvjyqVXbtFDzTZqitpmL7Zks0gxPiDngoi3uCL1OCq3m8RjNjU aTwILqsvSjuh3wIZbiEELrF++k9D1/VFAZWrA6X9NMWS33aJ+IWmvuunbXBNUzw0RfrSumE VVSeII7tgPgotVACgQRWgHV1cu7tS9AtHoBIOAaF8Y9ZLtckEHq0WDPgIvE+Zr20XAmNMtl /Mh2rw7MgSLaAlltfKLh2xXCTjSlycmVUIHkou0aJh1wR+RhgSum/PteoUs3J4NplIGoNUE bCSj3QSD7YXfGtehtKC5wvq1YDJjjtJvw9+vLhIc88ByUR651gFscGlP6ThUykaXnPNWGud Vc8k1TbXrMM6ZBdG0IUKKieqhIjk0ILnhhfmjc5kKGHtRjnosxP8gOqPDV4K8L50SD89CKw SxEcrIxM4Nc9QlyS+MCqCJ57ufUtOYNz0C7K3/QVRfc6v5GusXFxDrSZH0nrmYo41p79Bek c6WN7oaWBd3G2jdSV+25kq1gOd6BTnfw8e6xrwKxfb8ni/MiBhhekqrcD369SkE/LXlqun7 gYYt4UDzpobxH8qnCkGSA4007wljJD+nK4STB/hZZk9OklWpqatNhhwWT5jUXsYPoAomCBQ GlfCaaPslvjNKSdYWTOWkXysvK5pjRhlPI50tRSFUnf6YcfsXbUpuQZ8U/A2OYaMBaDYXTg DvReWQXr0RSaq42hz4SvKKKwJ0k65IFHrxEU9SJChY0oVPA== X-QQ-XMRINFO: Mp0Kj//9VHAxr69bL5MkOOs= X-QQ-RECHKSPAM: 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 The hardware does not support outer UDP checksum for tunnel packets. It's wrong to claim this Tx offload capability, so fix it. Bugzilla ID: 1529 Fixes: b950203be7f1 ("net/txgbe: support VXLAN-GPE") Fixes: 295968d17407 ("ethdev: add namespace") Cc: stable@dpdk.org Signed-off-by: Jiawen Wu --- drivers/net/txgbe/txgbe_rxtx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/txgbe/txgbe_rxtx.c b/drivers/net/txgbe/txgbe_rxtx.c index 5bc0f8772f..c12726553c 100644 --- a/drivers/net/txgbe/txgbe_rxtx.c +++ b/drivers/net/txgbe/txgbe_rxtx.c @@ -2284,8 +2284,7 @@ txgbe_get_tx_port_offloads(struct rte_eth_dev *dev) tx_offload_capa |= RTE_ETH_TX_OFFLOAD_MACSEC_INSERT; - tx_offload_capa |= RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM | - RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM; + tx_offload_capa |= RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM; #ifdef RTE_LIB_SECURITY if (dev->security_ctx) -- 2.27.0