From patchwork Tue Mar 19 15:45:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Wang X-Patchwork-Id: 1913700 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.137; helo=smtp4.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Tzc2951R4z1yWs for ; Wed, 20 Mar 2024 03:02:57 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 61CC14075D; Tue, 19 Mar 2024 16:02:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qAbnQslUEnMH; Tue, 19 Mar 2024 16:02:53 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=2605:bc80:3010:104::8cd3:938; helo=lists.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org B37EF406CF Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp4.osuosl.org (Postfix) with ESMTPS id B37EF406CF; Tue, 19 Mar 2024 16:02:53 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 7C4F7C0077; Tue, 19 Mar 2024 16:02:53 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 06CE7C0037 for ; Tue, 19 Mar 2024 15:52:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id EF7D460B1E for ; Tue, 19 Mar 2024 15:52:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lcrBRJASRG1z for ; Tue, 19 Mar 2024 15:52:29 +0000 (UTC) X-Greylist: delayed 387 seconds by postgrey-1.37 at util1.osuosl.org; Tue, 19 Mar 2024 15:52:28 UTC DMARC-Filter: OpenDMARC Filter v1.4.2 smtp3.osuosl.org 2FA8E60AFB Authentication-Results: smtp3.osuosl.org; dmarc=none (p=none dis=none) header.from=cestc.cn DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 2FA8E60AFB Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=15.184.121.248; helo=smtp.cecloud.com; envelope-from=junwang01@cestc.cn; receiver= Received: from smtp.cecloud.com (ba-smtp01.cecloud.com [15.184.121.248]) by smtp3.osuosl.org (Postfix) with ESMTP id 2FA8E60AFB for ; Tue, 19 Mar 2024 15:52:27 +0000 (UTC) Received: from smtp.cecloud.com (unknown [103.166.174.66]) by smtp.cecloud.com (Postfix) with ESMTP id 02C5D120 for ; Tue, 19 Mar 2024 23:45:58 +0800 (CST) Received: from localhost (localhost [127.0.0.1]) by smtp.cecloud.com (Postfix) with ESMTP id 518967C0113; Tue, 19 Mar 2024 23:45:46 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ANTISPAM-LEVEL: 2 X-ABS-CHECKED: 0 Received: from izgc79c142y6tt9fty3vzrz.localdomain (unknown [47.122.22.90]) by smtp.cecloud.com (postfix) whith ESMTP id P235493T281471604355440S1710863123057329_; Tue, 19 Mar 2024 23:45:46 +0800 (CST) X-RL-SENDER: junwang01@cestc.cn X-SENDER: junwang01@cestc.cn X-LOGIN-NAME: junwang01@cestc.cn X-FST-TO: dev@openvswitch.org X-RCPT-COUNT: 2 X-LOCAL-RCPT-COUNT: 0 X-MUTI-DOMAIN-COUNT: 0 X-SENDER-IP: 47.122.22.90 X-ATTACHMENT-NUM: 0 X-UNIQUE-TAG: <76aa215bdfa05180a6b06362c04c8e1d> X-System-Flag: 0 From: Jun Wang To: dev@openvswitch.org Date: Tue, 19 Mar 2024 23:45:18 +0800 Message-Id: <1710863118-2306-1-git-send-email-junwang01@cestc.cn> X-Mailer: git-send-email 1.8.3.1 X-Mailman-Approved-At: Tue, 19 Mar 2024 16:02:51 +0000 Cc: i.maximets@ovn.org Subject: [ovs-dev] [PATCH v1] netdev-dpdk: disable outer udp checksum offload for ice driver X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Signed-off-by: Jun Wang --- lib/netdev-dpdk.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index 29a6bf0..1820163 100644 --- a/lib/netdev-dpdk.c +++ b/lib/netdev-dpdk.c @@ -1354,6 +1354,12 @@ dpdk_eth_dev_init(struct netdev_dpdk *dev) info.tx_offload_capa &= ~RTE_ETH_TX_OFFLOAD_TCP_CKSUM; } + if (!strcmp(info.driver_name, "net_ice")) { + VLOG_INFO("%s: disabled Tx outer udp checksum offloads for a " + "net/ice port.", netdev_get_name(&dev->up)); + info.tx_offload_capa &= ~RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM; + } + if (info.tx_offload_capa & RTE_ETH_TX_OFFLOAD_IPV4_CKSUM) { dev->hw_ol_features |= NETDEV_TX_IPV4_CKSUM_OFFLOAD; } else {