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 B559745BAC; Wed, 23 Oct 2024 08:28:32 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4D26A40E0C; Wed, 23 Oct 2024 08:28:20 +0200 (CEST) Received: from smtpbgsg2.qq.com (smtpbgsg2.qq.com [54.254.200.128]) by mails.dpdk.org (Postfix) with ESMTP id 83B7C40E27; Wed, 23 Oct 2024 08:28:16 +0200 (CEST) X-QQ-mid: bizesmtpsz8t1729664893t4fksa5 X-QQ-Originating-IP: 0nEujmKGY81NtUVizeO9W+HdJhN1w7BXDl7bRi7yZ4M= Received: from wxdbg.localdomain.com ( [125.122.84.15]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 23 Oct 2024 14:28:12 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 4640885690338947477 From: Jiawen Wu To: dev@dpdk.org Cc: Jiawen Wu , stable@dpdk.org Subject: [PATCH 03/13] net/txgbe: remove outer UDP checksum capability Date: Wed, 23 Oct 2024 14:48:26 +0800 Message-Id: <20241023064836.2017879-4-jiawenwu@trustnetic.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20241023064836.2017879-1-jiawenwu@trustnetic.com> References: <20241023064836.2017879-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: N0jQ/i/W/QNThG0MnRzYybwuldzLObpSU2Jlc4aRGSGIaV0ORRwme5Ec YVdb4F3TW/TKKlWSKo3xvxH9bZlrpyBkqTU44r0nDVQGABqS/hGlpMDhme2WNvlLqkwmVmF 4592lVxVEYRagRAiBUsQfb5cg+WhXA4tFiCyw1J7yOW6GAjQXL5Pvbo1M3SDQQzRnGA1qVp gSQZoohrxb2aN98/f6cQ4SlSCgDayj3eZ+XAWIAOup4XL7KHsAFNl/lwGJHbejYWyHe/Or4 ENKoGC8lEDidDlVST28TJfpEjfMJtqQBMNeKnzNHDi381OJhzNuWdOqt36+nhymJ/QwP2Mt EoLZ/K31z6OUVCEhbF8cbAuEoElwO4F+COLx2+G3XZIT8SuWzSueJPMoRuqDxErVMItsRhp a2lYNyiMKVim/Brm+JmlkZZWNiqjrQLvNLcqBNuHLQ0Wi2rInB9MsBmYG/gzZ+L4zk4Rzab rfDwDkHKrXD+CCNQqfVmXwE9Vj9Y+5Pr/mRmDEwmchVn0MZ+DtNZFaYaw9j7qCuEbAmD2oT 6I8loBjhvBpTXVpP05OD6efufUWQRW36cTXbUOvTLQEYWNItppp9gUkQ9WCG5GDhgJo2ZC+ 7PI7tyXGSWVrMDE/RKiHp57Sgmvw6ZtaTC+tnd3veg65Uit6vBJD2pXglCYPod6vp/+gnID SRYKPmiIkYvRO9tjXPW7M/NzoAnGPr10XXPFQAzWXdsdCeXhnu8wdBaprR4Bm3xMrTb6klP ZO8gUnKP2VIAVKEBtjfHUwscK7o2fw8T6CGkaM9egFgDQqzl54kI0OX635EANdqsj7NgoV3 vfbDMLC2c+4eDm2qTbSxXjcXpW1TsGOMkDpAeCSs8Z+JxNpt/KbTq6cQI+JIPFMgdCClVXI srfB9iqDmfO+9diOTsL2xxJN2s1Kj7fAbTMbTnDt9+FdwXpfy3M8Oz9rAtEelPBl6PRK63Y UIZJ5gn+P672wvixJtXlW60Nt+cyRszU3D98= X-QQ-XMRINFO: OD9hHCdaPRBwq3WW+NvGbIU= 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