From patchwork Fri Aug 7 10:56:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: yang_y_yi X-Patchwork-Id: 1342213 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=163.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=163.com header.i=@163.com header.a=rsa-sha256 header.s=s110527 header.b=QH7UNzx+; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BNMl23dJpz9sTF for ; Fri, 7 Aug 2020 20:57:34 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id E9D8F8836E; Fri, 7 Aug 2020 10:57:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XVXPUbAaFCQx; Fri, 7 Aug 2020 10:57:29 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by hemlock.osuosl.org (Postfix) with ESMTP id EBD69882B0; Fri, 7 Aug 2020 10:57:28 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id D8E36C0050; Fri, 7 Aug 2020 10:57:28 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id D8922C004C for ; Fri, 7 Aug 2020 10:57:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id C04C3872F3 for ; Fri, 7 Aug 2020 10:57:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XF0lZYe15bnm for ; Fri, 7 Aug 2020 10:57:26 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-m971.mail.163.com (mail-m971.mail.163.com [123.126.97.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4B7E7872EF for ; Fri, 7 Aug 2020 10:57:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=S7iaB 4XfRGnehfwt4aqe8Vs1+j+HuEqRYRx35P+Kd/g=; b=QH7UNzx+2+5xR4X8wq1Hz Z0XJzrAHdv/z0Dy+scOJxmMGpbowTY4KfTndvEYa7fdijMm6K52UP84i/bJekjqW Pu9JJzpsSRaJXA+qTurKe4HYyDH0Sb0GA4i8p6E6hn2fi85SuM/11ELdFBPS6V/K AcUQm1MuRnmRD7vAhub4Ag= Received: from yangyi0100.home.langchao.com (unknown [111.207.123.58]) by smtp1 (Coremail) with SMTP id GdxpCgBXfVpwMy1fICWdCA--.20S6; Fri, 07 Aug 2020 18:57:05 +0800 (CST) From: yang_y_yi@163.com To: ovs-dev@openvswitch.org Date: Fri, 7 Aug 2020 18:56:48 +0800 Message-Id: <20200807105648.94860-5-yang_y_yi@163.com> X-Mailer: git-send-email 2.19.2.windows.1 In-Reply-To: <20200807105648.94860-1-yang_y_yi@163.com> References: <20200807105648.94860-1-yang_y_yi@163.com> MIME-Version: 1.0 X-CM-TRANSID: GdxpCgBXfVpwMy1fICWdCA--.20S6 X-Coremail-Antispam: 1Uf129KBjvJXoW7WryfWFW7JF4kAFWxtF1xGrg_yoW8CFW5pa yUurWIqr9Iq34jg34kXr17Xr1xWFWkCay7Crnrt345Z3ZxJa4qvryUt3WYg3WUJFW3tayF vF1DtF15Can8ArUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07Uo6wZUUUUU= X-Originating-IP: [111.207.123.58] X-CM-SenderInfo: 51dqwsp1b1xqqrwthudrp/xtbB0gF5i1UMYIEdRQABsA Cc: yang_y_yi@163.com, fbl@sysclose.org Subject: [ovs-dev] [PATCH V3 4/4] Update Documentation/topics/userspace-tso.rst 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: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" From: Yi Yang With GSO and GRO enabled, OVS DPDK can do GSO by software if NIC can't support TSO or VXLAN TSO hardware offload. Signed-off-by: Yi Yang --- Documentation/topics/userspace-tso.rst | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Documentation/topics/userspace-tso.rst b/Documentation/topics/userspace-tso.rst index aafa4a1..3a255cd 100644 --- a/Documentation/topics/userspace-tso.rst +++ b/Documentation/topics/userspace-tso.rst @@ -87,8 +87,8 @@ used to enable same:: Limitations ~~~~~~~~~~~ -The current OvS userspace `TSO` implementation supports flat and VLAN networks -only (i.e. no support for `TSO` over tunneled connection [VxLAN, GRE, IPinIP, +The current OvS userspace `TSO` implementation supports flat, VLAN and VXLAN +networks only (i.e. no support for `TSO` over tunneled connection [GRE, IPinIP, etc.]). The NIC driver must support and advertise checksum offload for TCP and UDP. @@ -98,11 +98,10 @@ in Open vSwitch. Currently, if the NIC supports that, then the feature is enabled, otherwise TSO can still be enabled but SCTP packets sent to the NIC will be dropped. -There is no software implementation of TSO, so all ports attached to the -datapath must support TSO or packets using that feature will be dropped -on ports without TSO support. That also means guests using vhost-user -in client mode will receive TSO packet regardless of TSO being enabled -or disabled within the guest. +There is software implementation of TSO, which is called as GSO (Generic +Segment Offload), so all ports attached to the datapath mustn't support TSO. +That also means guests using vhost-user in client mode can receive TSO packet +regardless of TSO being enabled or disabled within the guest. ~~~~~~~~~~~~~~~~~~ Performance Tuning