Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5836883rwb; Mon, 5 Dec 2022 04:57:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf7b3TWDEOE5jKhApwkvQvg4e/84bz7XM8f07xVSzdvTEXsg22rCkP62SjHoxysX0tHCE0Ap X-Received: by 2002:a17:906:eb04:b0:7ae:77ef:d048 with SMTP id mb4-20020a170906eb0400b007ae77efd048mr54179651ejb.740.1670245063069; Mon, 05 Dec 2022 04:57:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670245063; cv=none; d=google.com; s=arc-20160816; b=DMTJ8NVUHJzNlKsxJNGoAbWe4gZQWgGE+0OcJQIvfAOl0sfYfl2eC610/MepsYIjDV nskr2iEf/MUqRReYZDU3FjpyHlZGTxHlxYeKuas3Wfb83XI17cNR/YfJA7Q3QQEWm/bk kLR5I3frTMzp0Es+DEb06xR42vilEfaIGK98KK6wR/XVsc23myOu+v3Bp86nxrGA2Whm Roc8Fwwn5KRcT36gvHTngkvuKLzJkWfFq3ukZ9+nvJeXIECs9YtZxG0iKhr/dRluZ7Jp TWx+X3Mz91U6Jcr6F+oIkKFU3H1ENbacbmr+sERoxDAeZ3hSN9Ji5jiyHP+kMS2wSK0U L0ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9Fpu1oLPXixRs8SXVb53vX2+k8zH4l62xyUnVTqnhLI=; b=o9Q8Zau15jLEMEIRAmLHRoDcQD8rWGLWDwwxgewnPUt6XBYfiUAoh6CjhfQXz2UfgS SezlUI2tn7rwqz/4Aib9SP/rnVrWIxxNEgcXANXgfB96k1zoDE1sYpbylsDNT1hP8DVG /p3W1bK6j0tmcSPOrdwnO235ieuCMn+A6iJvKnwNSoSb21TxJnwXqYJvo42DFUnKXZ3U TlgTZN/+GmPtVj4X8JN3d7Z2uPOS+KZNdlTrP6N2aP6NqEBe2Rqzk7BFqjhUce+0qL3f s68wYZTXkVMy9lEKLpXhwc0zVCFLPipg/KYu7sjNy+t6IEADK45zffBOiL19MumqAiuq rlQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dMQDya76; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e9-20020a056402190900b0046a2b7d2452si13167911edz.255.2022.12.05.04.57.22; Mon, 05 Dec 2022 04:57:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dMQDya76; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230092AbiLEMXu (ORCPT + 83 others); Mon, 5 Dec 2022 07:23:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231852AbiLEMXX (ORCPT ); Mon, 5 Dec 2022 07:23:23 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFC8AFAC9 for ; Mon, 5 Dec 2022 04:22:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1670242943; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9Fpu1oLPXixRs8SXVb53vX2+k8zH4l62xyUnVTqnhLI=; b=dMQDya763huKerwxVobS6BeuX5jwLh9sQmd5qcfnPClbwBVx8yBdagBmHsg+b5mbEkJNXc K4DK0CEW1n7hWM9c3lSrcmOh0sLluMksnVYL5Mjf2zTMy6DZ/1EjjENFcS/fODCQ66UNxt LzdZEWEsm413uh3xEkoGR26459G0584= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-311-DunJGTQ8MUu08MwnnVXqdQ-1; Mon, 05 Dec 2022 07:22:22 -0500 X-MC-Unique: DunJGTQ8MUu08MwnnVXqdQ-1 Received: by mail-wm1-f69.google.com with SMTP id m17-20020a05600c3b1100b003cf9cc47da5so6782289wms.9 for ; Mon, 05 Dec 2022 04:22:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=9Fpu1oLPXixRs8SXVb53vX2+k8zH4l62xyUnVTqnhLI=; b=TIKvqV5/hDWdSxV77Fcq6VNMcfjEAtBoBYjPyBkDzvQGQNAE8UTcWWxx6ZMGr/WDgW HLcxtQXDz19D/gGo1rKT4CMtsY6fNkVtkDEf/CQQ8+5QE4vcRLUtgFgy7GXZrdK3a9TC HBFa0PrJwEV0P/meAnBWNPmvE+AHVcmyjFi3Ggpv1HeLV+MBGVppmGq2HKC8vcZBhvzZ GVKja5OqEVuSTaieA+iWEzUMnR6lKJROO78VPqqaunRbEWJUwVHRXZt83DtaDbYQ0Zv1 pnTd1OMMHboiKZlO1PXolehhhgHZ1yj/JQ1O0w8iNfuFdcSRaGpmjXiWM3C/554JOKIZ zsWg== X-Gm-Message-State: ANoB5pnU6Cs9y7E2GoHoACyM2WlYoaua5p/gBU90PtoRgFkK3al9vRl3 e3AL3UfWBKnoPBxed4K9cu0UR3K5Ta+VUgnqGjthoTd5UGQcELiLeASASvdPdlxeMWb/9vN/QsJ hkSFYaO8rR2DaYcVhVFWbwyDN X-Received: by 2002:a05:6000:1b86:b0:241:9606:1123 with SMTP id r6-20020a0560001b8600b0024196061123mr45199174wru.537.1670242940834; Mon, 05 Dec 2022 04:22:20 -0800 (PST) X-Received: by 2002:a05:6000:1b86:b0:241:9606:1123 with SMTP id r6-20020a0560001b8600b0024196061123mr45199150wru.537.1670242940594; Mon, 05 Dec 2022 04:22:20 -0800 (PST) Received: from sgarzare-redhat (host-87-11-6-51.retail.telecomitalia.it. [87.11.6.51]) by smtp.gmail.com with ESMTPSA id a3-20020adffac3000000b0024245e543absm8823432wrs.88.2022.12.05.04.22.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Dec 2022 04:22:20 -0800 (PST) Date: Mon, 5 Dec 2022 13:22:14 +0100 From: Stefano Garzarella To: Bobby Eshleman Cc: Bobby Eshleman , Cong Wang , Jiang Wang , Krasnov Arseniy , Stefan Hajnoczi , "Michael S. Tsirkin" , Jason Wang , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5] virtio/vsock: replace virtio_vsock_pkt with sk_buff Message-ID: <20221205122214.bky3oxipck4hsqqe@sgarzare-redhat> References: <20221202173520.10428-1-bobby.eshleman@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20221202173520.10428-1-bobby.eshleman@bytedance.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 02, 2022 at 09:35:18AM -0800, Bobby Eshleman wrote: >This commit changes virtio/vsock to use sk_buff instead of >virtio_vsock_pkt. Beyond better conforming to other net code, using >sk_buff allows vsock to use sk_buff-dependent features in the future >(such as sockmap) and improves throughput. > >This patch introduces the following performance changes: > >Tool/Config: uperf w/ 64 threads, SOCK_STREAM >Test Runs: 5, mean of results >Before: commit 95ec6bce2a0b ("Merge branch 'net-ipa-more-endpoints'") > >Test: 64KB, g2h >Before: 21.63 Gb/s >After: 25.59 Gb/s (+18%) > >Test: 16B, g2h >Before: 11.86 Mb/s >After: 17.41 Mb/s (+46%) > >Test: 64KB, h2g >Before: 2.15 Gb/s >After: 3.6 Gb/s (+67%) > >Test: 16B, h2g >Before: 14.38 Mb/s >After: 18.43 Mb/s (+28%) > >Signed-off-by: Bobby Eshleman >--- >Changes in v5: >- last_skb instead of skb: last_hdr->len = cpu_to_le32(last_skb->len) With this issue fixed, I confirm that all the tests passed: Reviewed-by: Stefano Garzarella As pointed out in v4, this is net-next material, so you should use the net-next tag and base the patch on the net-next tree: https://www.kernel.org/doc/html/v6.0/process/maintainer-netdev.html#netdev-faq I locally applied the patch on net-next and everything is fine, so maybe the maintainers can apply it, otherwise you should resend it with the right tag. Ah, in that case I suggest you send it before the next merge window opens (I guess next week), because net-next closes and you'll have to wait for the next cycle. Thanks, Stefano