Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp297449rdb; Tue, 31 Oct 2023 07:50:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGOrryF0b/X4rsWbZ65BuHP83JRlZz4p4HaEwJS3TNmF9vWnYQicnpVWBJRoXwNzczsKXcR X-Received: by 2002:a05:6358:63a6:b0:168:e697:ce0d with SMTP id k38-20020a05635863a600b00168e697ce0dmr12150178rwh.31.1698763849823; Tue, 31 Oct 2023 07:50:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698763849; cv=none; d=google.com; s=arc-20160816; b=MG13mEI7Xy6/rUPv3dDvfo3CuvernjIZWI2BE7Vewq+Ic/zfrkCuIvmUirlMBBlqP2 tzFK7BA9oaaBF+zpYHJFGaXG59v60G4x7uHinWXEkUeSpCfZZq7SkJEBokTPRR9dMzmC xBllP+MsJ9u+4IoqY+kvM13Bq2Q31ZH00IyEYw4blCwwv6Q+x0wVMEWzSgUEJBoGG9yG 819OKKUlHNKG/fQDh1Rg8xpgTMwzy9lSdqBN8eHTrUuY0xlgj2CrUe0804CZvAYaKMDq qIrXmYY8gNe42CxEUUQxPVRJ3O6Mglv69CfY6q+2HWCHBEpRnQqUU8dUf3E2Quj59EG6 u/EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=wC70NjzSUr4LvW8CC2+ZDGZgQqRztYwHl/WFtd4ZzKQ=; fh=hgFeDeL3zlCMZAGYCucEOiCP0tLa0YsuhMeG6DL2rNQ=; b=YxalumYZBP5dTzyBlZpYSpFyKQgEoY4/rjJcw6A/g/sWo5dFEnh7BUyrv9qAkjkkCX YGD9TMgS7QJUbZM8O5wHYL+KY8LTF2UYTGI6N198gC6YaN9mGjS86exqQ5K0LaWsz/Qp 6pw0YFi8gRCg1YYmKiIs9/17tCIDyF1tEP7PRu09uy8UQPn1MDOhmxujWJKPrfey31vD RMWPUV7mDbeGfXlE6XJ7RulkYZJhZjd/Fshvu5LJdixA4vZVBoBaaogIS1zf7EeOzOFV aCQmA/Jsvt+B0dupkYtHaLJav36ItU4wfQEVesZ9NsPVZkYbAyte8h2RtSAWoAEALMj1 s8Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=W6xGdnp+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id x5-20020a654145000000b005b503f56f03si1071951pgp.827.2023.10.31.07.50.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 07:50:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=W6xGdnp+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id F3628802A9F5; Tue, 31 Oct 2023 07:50:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344598AbjJaOul (ORCPT + 99 others); Tue, 31 Oct 2023 10:50:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344537AbjJaOuj (ORCPT ); Tue, 31 Oct 2023 10:50:39 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78B78DB for ; Tue, 31 Oct 2023 07:49:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698763790; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wC70NjzSUr4LvW8CC2+ZDGZgQqRztYwHl/WFtd4ZzKQ=; b=W6xGdnp+NZrX3XnWnClDT7ZKWRYiqIFD7LgZH4OPjQbqwMtSd5aHV8iypJDmQxJAurdy+o KseLHRM4OZgEEx20EsUWjsk4bzuFx+Br5ORl2NjG+JsX+cAamueEyMlzf0BTWwkUnrE9Lj xw8byqRJtb/bV6XBcLw7zrQormqznRo= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-670-GjygX67INJOScWAbzJ1hvg-1; Tue, 31 Oct 2023 10:49:49 -0400 X-MC-Unique: GjygX67INJOScWAbzJ1hvg-1 Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-41e1899175eso13690931cf.1 for ; Tue, 31 Oct 2023 07:49:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698763788; x=1699368588; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=wC70NjzSUr4LvW8CC2+ZDGZgQqRztYwHl/WFtd4ZzKQ=; b=PnqqPiu+HX962i2G4ebQtNSgM4o7bRvgGRFNyS8e2UyW845mPSK4Cf7/DHerAuOyQq OWj/9gN3yDUvTDKOghlyto9RiGmaQ8uZ9F3FHyITajlvFNklPuSlUK2CkNfGomUOyoFB pN3mYHhKwpjpbslglUAtCaORVWIVfP8rJpyBKIhO6kPJBribBy/8caECjzVzPdFdkqt6 zhfYYqKe4ScqdeP0rSgh+LNvue6uRSZmFCzDpyekSsOuYRSvwJRNxKvb8XsLxW3WwLux 8FtdY00qnnDFMPmo6wnyCymOwACabPMzSXl/dONouCQn3NrMkDpoKY5lOKV8ZlofwgsN cjIQ== X-Gm-Message-State: AOJu0YwPr/6N9jNcSPddprgom24ET1Iy2nhSwTQiqbS5Zi4RGr4l9Mtd TdmiXv40ElWBL24+TwQM/ZbIKiqqWkJf1epso1bz4lwXBZhGJvTNnxXeX9ud+RZzEYyPCNNRAwV Lgk7yqIdOr2xCjecAgaLHdT1I X-Received: by 2002:ac8:7f55:0:b0:412:3189:9fd6 with SMTP id g21-20020ac87f55000000b0041231899fd6mr17244329qtk.5.1698763788682; Tue, 31 Oct 2023 07:49:48 -0700 (PDT) X-Received: by 2002:ac8:7f55:0:b0:412:3189:9fd6 with SMTP id g21-20020ac87f55000000b0041231899fd6mr17244308qtk.5.1698763788353; Tue, 31 Oct 2023 07:49:48 -0700 (PDT) Received: from gerbillo.redhat.com (146-241-227-179.dyn.eolo.it. [146.241.227.179]) by smtp.gmail.com with ESMTPSA id jt21-20020a05622aa01500b0041b3deef647sm558815qtb.8.2023.10.31.07.49.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 07:49:48 -0700 (PDT) Message-ID: Subject: Re: [PATCH v2] selftests/net: synchronize udpgso_bench rx and tx From: Paolo Abeni To: Lucas Karpinski Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, shuah@kernel.org, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 31 Oct 2023 15:49:45 +0100 In-Reply-To: References: <6ceki76bcv7qz6de5rxc26ot6aezdmeoz2g4ubtve7qwozmyyw@zibbg64wsdjp> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) MIME-Version: 1.0 X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Tue, 31 Oct 2023 07:50:46 -0700 (PDT) On Tue, 2023-10-31 at 09:26 -0400, Lucas Karpinski wrote: > > Since you wrote the same function verbatim in 3 different files, I > > think it would be better place it in separate, new, net_helper.sh > > file > > and include such file from the various callers. Possibly > > additionally > > rename the function as wait_local_udp_port_listen. > >=20 > Thanks, I'll move it over. I think it would be best though to leave > udp out of the name and to just pass the protocol as an argument. Indeed. I suggested the other option just to keep it the simpler, but if you have time and will, please go ahead! Cheers, Paolo