Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1963369rdb; Mon, 9 Oct 2023 08:18:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEJVsTJZJ101FC6DU8XoYzA5JfgikAOOb53KOWGDizOxZbX0F1/ii8M2qHiQsWUVsfVbvpq X-Received: by 2002:a05:6a00:198e:b0:690:d0d4:b757 with SMTP id d14-20020a056a00198e00b00690d0d4b757mr18585307pfl.20.1696864734772; Mon, 09 Oct 2023 08:18:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696864734; cv=none; d=google.com; s=arc-20160816; b=SzpPPgoSH09+oz/mTMT/DbHRcZCD9IsCqrKCJ3q06g01JyfPA6jN7m+uPAsac8FKON ikJ6ql5r9th854pnBqHqYXjPFshwJI9KAU411LNkvKhFqPL+PfLrxclh2zDTez4iHs8m 01Ku42jXQWbyhLb+FNIuHy54mubRMoQX7lxQz76+AbleeAcHLEHDWpIHO2OPYBK13HpJ 9ffSx0qn32z5+m/BqfXj5AKhS7ISZ/7tnyKc+Mflg0k7PJg5EsZ9gK9b6ZvyJomVdYcF AG1qvIiT8Sr8VtQriR3f8vgECLB1iLm4Fa8GLygYDdDI6lDPCfDqQgtqG0ss0FkGamQo PQcw== 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=u5JcXPIqedItIu+FW3AQTSKHWl8dmpt+dQk3rJLF9AU=; fh=JEq7ZyqHwnKMAbPjHbEHIOO1u1YxTWxtQlCbJmwG+xw=; b=lfkFWyxY8R6E5u+cMzzoeJ5Xzl5FoQnr5WbdbWaZk+EbfOcMHjkueWMrPTxZecI55Q hxkcsfVyJ0ypSTyEQQBxx+m3RK2Yu9otZiZwBKgCRy9tyaSauqMIM0RhxJ7Ks8nnuXEY hIXMLCS3aI3dDUftymz2u8C7fmBb/ZPJLATwTO3eV9h/HCU8CRkTc/lJGvsJQD6qDvdg zuq5ZRlmO6wIAqhdDYYX3JAfZ8yi0TSi7A96y3GGEOtXFqOwERiNV/yU8jZcdkZdOvF9 tO/Nj4yomHkJduIGxHBAxfD4gGmAvnpIA4nqbeEIoD8theFtgFXqdqsP8eGctzN6EtwB +wYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PC4LxMwd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id g67-20020a636b46000000b0058933a74376si9467710pgc.70.2023.10.09.08.18.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 08:18:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PC4LxMwd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 13CFE8058B58; Mon, 9 Oct 2023 08:18:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377005AbjJIPSd (ORCPT + 99 others); Mon, 9 Oct 2023 11:18:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377057AbjJIPSa (ORCPT ); Mon, 9 Oct 2023 11:18:30 -0400 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 03B7CA6 for ; Mon, 9 Oct 2023 08:17:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1696864662; 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=u5JcXPIqedItIu+FW3AQTSKHWl8dmpt+dQk3rJLF9AU=; b=PC4LxMwd1AjS0MzlaktxkiXQO4+idm+Cka8SP/4cunjYYOmRvEyj3tBx9jqOk+tyU4pxlh okN8FZ1dLr1lNlSnqheX41gnAHv2g2ciyuiTUvIOUsjdNBgnUhj39Pa6IeLFRA2REryr7B tfmQHMIDt2t30QgAM7t9PSJSJNI5aOw= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-635-4zJUge4TPpCK2NSFlCEiTw-1; Mon, 09 Oct 2023 11:17:39 -0400 X-MC-Unique: 4zJUge4TPpCK2NSFlCEiTw-1 Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-531373ea109so1300459a12.3 for ; Mon, 09 Oct 2023 08:17:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696864658; x=1697469458; 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=u5JcXPIqedItIu+FW3AQTSKHWl8dmpt+dQk3rJLF9AU=; b=NmIcXuCXdEbHpbuW3+Q2AhhkV8M4y1ULpy7WJLNl3pVdOBlSP2qOnUZQXzqaIoMcwq SdkKm2z8iT69KQyxJ0oOquJYltVkyrOqMQ/KrFWPx7Nv8ULtmLnU+Jc31tT0ZzCQWw4o edMJC57Iyra24iw+Q0yJPhmy+Mwg3poemmggN9LEreMHkIo/laoyj1JCPSYZetNH5I6D HEUXaW5EThxwLIcGFBGpiBprN3HqIYzLmllA5UDEZrWuBhRbMuhbzK0OlJAAVJdYRFCj Q5GIC+kGyq8Ug+GQ9Pq2oAup8cLfJLQs3a6HB+OkKnHJZr+CiRnJdNbxTWa790f/3QqR viHg== X-Gm-Message-State: AOJu0YxqIWAmGYodow+EpOjEIB5mh9OZtiuxa5cy+f/knVaJqU2ARwiJ MPIJAl8cKwX1AWa5WgYeXoMp6hVTImb5Zftv1Jw5/IhuZ+hxuPlu0yCEQFC6u71FDFMvQlRR+pG vtwWTDtNnuEPcThSeaKt9eGjW X-Received: by 2002:aa7:c991:0:b0:536:e5f7:b329 with SMTP id c17-20020aa7c991000000b00536e5f7b329mr13448856edt.33.1696864658511; Mon, 09 Oct 2023 08:17:38 -0700 (PDT) X-Received: by 2002:aa7:c991:0:b0:536:e5f7:b329 with SMTP id c17-20020aa7c991000000b00536e5f7b329mr13448839edt.33.1696864658056; Mon, 09 Oct 2023 08:17:38 -0700 (PDT) Received: from sgarzare-redhat (host-82-57-51-114.retail.telecomitalia.it. [82.57.51.114]) by smtp.gmail.com with ESMTPSA id w24-20020a50fa98000000b00532bec5f768sm6197050edr.95.2023.10.09.08.17.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 08:17:37 -0700 (PDT) Date: Mon, 9 Oct 2023 17:17:33 +0200 From: Stefano Garzarella To: Arseniy Krasnov Cc: Stefan Hajnoczi , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "Michael S. Tsirkin" , Jason Wang , Bobby Eshleman , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@sberdevices.ru, oxffffaa@gmail.com Subject: Re: [PATCH net-next v3 11/12] test/vsock: MSG_ZEROCOPY support for vsock_perf Message-ID: References: <20231007172139.1338644-1-avkrasnov@salutedevices.com> <20231007172139.1338644-12-avkrasnov@salutedevices.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20231007172139.1338644-12-avkrasnov@salutedevices.com> X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 09 Oct 2023 08:18:52 -0700 (PDT) X-Spam-Level: ** On Sat, Oct 07, 2023 at 08:21:38PM +0300, Arseniy Krasnov wrote: >To use this option pass '--zerocopy' parameter: > >./vsock_perf --zerocopy --sender ... > >With this option MSG_ZEROCOPY flag will be passed to the 'send()' call. > >Signed-off-by: Arseniy Krasnov >--- > Changelog: > v1 -> v2: > * Move 'SOL_VSOCK' and 'VSOCK_RECVERR' from 'util.c' to 'util.h'. > v2 -> v3: > * Use 'msg_zerocopy_common.h' for MSG_ZEROCOPY related things. > * Rename '--zc' option to '--zerocopy'. > * Add detail in help that zerocopy mode is for sender mode only. > > tools/testing/vsock/vsock_perf.c | 80 ++++++++++++++++++++++++++++---- > 1 file changed, 71 insertions(+), 9 deletions(-) Reviewed-by: Stefano Garzarella