Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2235263rdh; Tue, 26 Sep 2023 17:44:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHEJiM9QO5DYYz1P7/2pPcGNW22AyVMmaqw6MOYzmDrId9mkRFaeYV/UDkNkC59zUy0vkWt X-Received: by 2002:a0d:dbd6:0:b0:59b:54b5:7d60 with SMTP id d205-20020a0ddbd6000000b0059b54b57d60mr616300ywe.5.1695775497140; Tue, 26 Sep 2023 17:44:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695775497; cv=none; d=google.com; s=arc-20160816; b=xHB4fJYYbn19oRTjxHm5WJkhRmhzBBBVwlZNJw262ndPDVqkn1U5PRqfJeskZuekP1 Ca5B3vjsSIQ/XQAt7eA+R9/PQJDSSXzIFry4sn3Veo3cdoDz9aTzjmOp/w3+7vp2sduV nKxbmAUXkzPZmPQQ1HVGFGiqK9qHA+AFKxRoYQoHKJ/CdWAqNvubRivzlqqqKet+IlyS rG43g2joznAcIMjwC3ffEeL0W12JK6H/4pBX6lKbYm6GPx2kYMYMXrDNOEuXUK9a7WvQ vqKQ10nuQbNeBEibf59/FMmNZiMBkvNUPCTPB9XnGikTYJbwGcvaPMGGpMbfi2uxGLVu d6oQ== 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=pw3uLk1RX7EItsMeljDJQUwIv63n45/6NY/27SYTAmo=; fh=JEq7ZyqHwnKMAbPjHbEHIOO1u1YxTWxtQlCbJmwG+xw=; b=t4ZMCbMvDnA7cibfSpfS2htPA9GStwxWzNBXTflNdmqSH9d0n4vQBbsqIt1zC65fo0 fF8/WGC/TiRmLwoZTrcmaCAzF9NdDeSNzpWmrsJKMQJJzgRKSoZjvxfFjcwUC/0RUSiN Jnr5JsVMR+XtoSbitOOFDC+Q18gZtCdlJ8A+mJ0ZeyyOEymXmz0YXXvGtMRZg3UXv4+I pnlvWdwHj4VgiN8wKX9Ank3pqtBE6+SJ4UUcDP7hbbH7UyJv4fE1FNgNO1yt3Hd4flFk B6cG59TdRrZjMujO+UonZJyWYAR2ECsCJgd7e6ycnc2i1fio/l/bOVNND9kXflO7CkAw EVYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FOdNHx0O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id bg26-20020a056a02011a00b00573e7fd674esi13093357pgb.661.2023.09.26.17.44.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 17:44:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FOdNHx0O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 15E138129AC7; Tue, 26 Sep 2023 06:05:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234813AbjIZNFi (ORCPT + 99 others); Tue, 26 Sep 2023 09:05:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234792AbjIZNFb (ORCPT ); Tue, 26 Sep 2023 09:05:31 -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 2E59EFB for ; Tue, 26 Sep 2023 06:04:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695733479; 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=pw3uLk1RX7EItsMeljDJQUwIv63n45/6NY/27SYTAmo=; b=FOdNHx0O7Mzvr+gNApSPjRGbXufqoyCY6rUhahLgkbA50Qcg8XnOstCw4iz8udCis89Wvb jVZ7p9LL8wAWDG5JVgvRDc11Vn2t1JQiwKWPVSOW25VJjhTbemtGVGCSahTuMpsKkdc/I0 rXPEKg1j+M6ZUWGYWXTcXAqcDgDMc1g= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-371-dW_bTQ9JMkOuSec9sJvrcQ-1; Tue, 26 Sep 2023 09:04:37 -0400 X-MC-Unique: dW_bTQ9JMkOuSec9sJvrcQ-1 Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-99388334de6so753048266b.0 for ; Tue, 26 Sep 2023 06:04:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695733476; x=1696338276; 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=pw3uLk1RX7EItsMeljDJQUwIv63n45/6NY/27SYTAmo=; b=wxA3PyBJ6VxUzbtSioptbh4GccoT7CzCpPvMac7NO1Wvhbd4DAh1HWhyf2SQGkjN9N p5WqPkVQD6l971z4mRkmY7Zq1qYT17QKE6L31KaVrElzuNUiT9UBsAtnTW1VBujKCOPt DZuvF5B6A9KZ2bmrR503BTDk0ZExnxppciZsHVMmMdDovksGjdcvKKPgR1sePObMhh6J sCcmU/WjvnCm2xAbXlaspA5HI8V7PumtozbO323GiMj8MLAZ7LS0LBWdyy1cemy4U6tD EC49gKUIQbegCgxgka3GTfHS/LwJQilWoGSh8yKZV7wwg2JbYk0UrtAEAGfEedFod3WT eCGQ== X-Gm-Message-State: AOJu0YxkRVNEaSTLaMCvq1kzLoRoy6A5WsPUWBk8/mSawU6bT56wt65K pz7Uwjn07QUYA08YZ4ik6ntiPFdGyu4PLfhQY3L6+5dPCfZRzqYiqOA2pxOinob6Nkq5sbDWtlb MirnALw9OE6WJilETieLTal2x X-Received: by 2002:a17:906:3299:b0:9ae:6196:a4d0 with SMTP id 25-20020a170906329900b009ae6196a4d0mr8605615ejw.17.1695733476619; Tue, 26 Sep 2023 06:04:36 -0700 (PDT) X-Received: by 2002:a17:906:3299:b0:9ae:6196:a4d0 with SMTP id 25-20020a170906329900b009ae6196a4d0mr8605597ejw.17.1695733476299; Tue, 26 Sep 2023 06:04:36 -0700 (PDT) Received: from sgarzare-redhat ([46.6.146.182]) by smtp.gmail.com with ESMTPSA id r11-20020a170906704b00b00999bb1e01dfsm7746690ejj.52.2023.09.26.06.04.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 06:04:35 -0700 (PDT) Date: Tue, 26 Sep 2023 15:04:31 +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 v1 12/12] test/vsock: io_uring rx/tx tests Message-ID: References: <20230922052428.4005676-1-avkrasnov@salutedevices.com> <20230922052428.4005676-13-avkrasnov@salutedevices.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20230922052428.4005676-13-avkrasnov@salutedevices.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_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 26 Sep 2023 06:05:42 -0700 (PDT) On Fri, Sep 22, 2023 at 08:24:28AM +0300, Arseniy Krasnov wrote: >This adds set of tests which use io_uring for rx/tx. This test suite is >implemented as separated util like 'vsock_test' and has the same set of >input arguments as 'vsock_test'. These tests only cover cases of data >transmission (no connect/bind/accept etc). > >Signed-off-by: Arseniy Krasnov >--- > Changelog: > v5(big patchset) -> v1: > * Use LDLIBS instead of LDFLAGS. > > tools/testing/vsock/Makefile | 7 +- > tools/testing/vsock/vsock_uring_test.c | 321 +++++++++++++++++++++++++ > 2 files changed, 327 insertions(+), 1 deletion(-) > create mode 100644 tools/testing/vsock/vsock_uring_test.c > >diff --git a/tools/testing/vsock/Makefile b/tools/testing/vsock/Makefile >index 1a26f60a596c..c84380bfc18d 100644 >--- a/tools/testing/vsock/Makefile >+++ b/tools/testing/vsock/Makefile >@@ -1,12 +1,17 @@ > # SPDX-License-Identifier: GPL-2.0-only >+ifeq ($(MAKECMDGOALS),vsock_uring_test) >+LDLIBS = -luring >+endif >+ This will fails if for example we call make with more targets, e.g. `make vsock_test vsock_uring_test`. I'd suggest to use something like this: --- a/tools/testing/vsock/Makefile +++ b/tools/testing/vsock/Makefile @@ -1,13 +1,11 @@ # SPDX-License-Identifier: GPL-2.0-only -ifeq ($(MAKECMDGOALS),vsock_uring_test) -LDLIBS = -luring -endif - all: test vsock_perf test: vsock_test vsock_diag_test vsock_test: vsock_test.o vsock_test_zerocopy.o timeout.o control.o util.o vsock_diag_test: vsock_diag_test.o timeout.o control.o util.o vsock_perf: vsock_perf.o + +vsock_uring_test: LDLIBS = -luring vsock_uring_test: control.o util.o vsock_uring_test.o timeout.o CFLAGS += -g -O2 -Werror -Wall -I. -I../../include -I../../../usr/include -Wno-pointer-sign -fno-strict-overflow -fno-strict-aliasing -fno-common -MMD -U_FORTIFY_SOURCE -D_GNU_SOURCE > all: test vsock_perf > test: vsock_test vsock_diag_test > vsock_test: vsock_test.o vsock_test_zerocopy.o timeout.o control.o util.o > vsock_diag_test: vsock_diag_test.o timeout.o control.o util.o > vsock_perf: vsock_perf.o >+vsock_uring_test: control.o util.o vsock_uring_test.o timeout.o Shoud we add this new test to the "test" target as well? Stefano