Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp115570rdb; Tue, 31 Oct 2023 02:23:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGN6HfTjZcbYgjPVKtybenklqhxQHvxkvQeY/cHVNDTB2JREPE7A+Dj1GPddGm0MxrQMxpD X-Received: by 2002:a05:6808:2994:b0:3ae:251f:923f with SMTP id ex20-20020a056808299400b003ae251f923fmr11263318oib.28.1698744224294; Tue, 31 Oct 2023 02:23:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698744224; cv=none; d=google.com; s=arc-20160816; b=in/fGcJQpSb1529gs43Lm7KAZGl7VimJtEw1LXOqgtv+2m2HJPXkGRfBqZCQ4etf6f ZYBaX6FryL0LrtyQAS6jYZxfYumX7EFAZ61VHnkJjcbzKJJzAHVj5VS7u+nsFjuCMMJT +eYJcsM84ObxANC7bEE4TlCfge7tIsSysUUrj8wjSKLr1QA+VA/2iQnPKGuPWOVPomRJ jnUgiNXv4x2szZdAXwWsPNlT2oMluCPqoQ1upd8AoiMTA5+NdGXpgMATuWrHaB/fahTZ cbxYN0d6ULhPh8rL8pjW/2nkLTqtWpnB3W4nKap2Tzw1gTK1jIc9O/+K/VBHdNKsotgw HGmQ== 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=Dmd8h3KmMTuLMQdZh3MBzTGUulf/MEu6C/sdxdxaqVw=; fh=6ZcJgW8ut5erg225UG4QiH0Klz5XCpO9K3XNOtkCuB8=; b=r9Tz66c1aQuHWY+FSQuSEPfbynkL67Blmuht/jorhsZUVTTwSGDezFMYdH1tS1wdwx X5xtWeW5/jiFHOiurMNdAGoJhLlesMxmGXkGfrRXj/DtkHole9TidxTuajs+7PtG/Pvt e4jxgkRzALZ2S0ZcufcJLHAM4vlDOeb/GStR5lnwnjl8wjdi5SDHreEcOTlNXHY9nSKg lHuKPomO1fxpePjfNiT0bJsHCgMiZQ/+9Ade/j04iW5lgzcPknh1Mu9wie7PT0j3IIAy tvWahylUs4+kRGt8nf790HU7wVuiDqH7hAspVN8mu43z+TeR1ifRLeV73U1KujePBKlE PwPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Cz1qjw34; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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. [23.128.96.37]) by mx.google.com with ESMTPS id f19-20020aa79693000000b0068fb95e5401si749930pfk.65.2023.10.31.02.23.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 02:23:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Cz1qjw34; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 E7EF280267CE; Tue, 31 Oct 2023 02:23: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 S1343853AbjJaJXk (ORCPT + 99 others); Tue, 31 Oct 2023 05:23:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235763AbjJaJXj (ORCPT ); Tue, 31 Oct 2023 05:23: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 8A0CB10E2 for ; Tue, 31 Oct 2023 02:22:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698744148; 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=Dmd8h3KmMTuLMQdZh3MBzTGUulf/MEu6C/sdxdxaqVw=; b=Cz1qjw34jE5Gu3OhJ4cUFTaizkaAS0MZXZ65eo3VY17V3jV6uUpJ+YV2J/GWVjXeExckMq f+wXlNNrbpkgZbc2+ddhB6Qhg4eBEszyxtkaRe24wr+UkFvoIZq/HgTjJEoxdivWewtY72 6Ym64IgEOgiTPuzVMVs9wRdq47M7j18= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-608-Og6Ek-VRPlWtjVXhFDY-TQ-1; Tue, 31 Oct 2023 05:22:27 -0400 X-MC-Unique: Og6Ek-VRPlWtjVXhFDY-TQ-1 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-32d89debaabso485536f8f.1 for ; Tue, 31 Oct 2023 02:22:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698744145; x=1699348945; 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=Dmd8h3KmMTuLMQdZh3MBzTGUulf/MEu6C/sdxdxaqVw=; b=C29cswdLhuTEHJMFN/CB/SofIS0ZleSnEsvG1La7cLe+Gh9PA+l4k/lyRUluNJRbAZ tJKVuE7BvjE1Dq0mkJhkXfYIEmhL6HYNw9K7CacMCMIRRjISbZ0S+VGK8Qbb7O6wByjM F+SfoN+fRssuNwmaCS610D57zCuWWWimazYPurwn/6O0xlx7G1FJf1Q7q12GTLAxM+OZ Ann8EadPyfJCC9adfGRuUTmjhla0F1nqg2yM/hbP4pcxBT42YfqS8KEilpE6AAiE6L2G WkiVoooan4hD9yVI4nwHbBtsugS0C48kccwpv81bhicvDALXW53bpJHl6avB0/KiFZW/ P5tQ== X-Gm-Message-State: AOJu0YxCsvAbSXAN9Sn7SnPWgGLN67RS888zX2JlycD9km0lCWZzfWho ryEh/i2mJRst25IJ+MrkxqFLRXNNz0z+nYKBikfv4Lk9r6VjUJoStzCp8i5Z6ywgPpYaKSIe2Mn D6MXcbR6+E3ln2L83Dji4wtB3WxjVDZA9 X-Received: by 2002:a5d:6984:0:b0:32f:76bb:a851 with SMTP id g4-20020a5d6984000000b0032f76bba851mr6653855wru.1.1698744145737; Tue, 31 Oct 2023 02:22:25 -0700 (PDT) X-Received: by 2002:a5d:6984:0:b0:32f:76bb:a851 with SMTP id g4-20020a5d6984000000b0032f76bba851mr6653837wru.1.1698744145407; Tue, 31 Oct 2023 02:22:25 -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 n6-20020a5d67c6000000b00323293bd023sm1030605wrw.6.2023.10.31.02.22.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 02:22:25 -0700 (PDT) Message-ID: <90def1f008a5c343ad6b0b2151c8ff972d2f468f.camel@redhat.com> Subject: Re: [PATCH v2] selftests/net: synchronize udpgso_bench rx and tx From: Paolo Abeni To: Lucas Karpinski , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, shuah@kernel.org Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 31 Oct 2023 10:22:23 +0100 In-Reply-To: <6ceki76bcv7qz6de5rxc26ot6aezdmeoz2g4ubtve7qwozmyyw@zibbg64wsdjp> 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=-2.6 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_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 31 Oct 2023 02:23:43 -0700 (PDT) On Mon, 2023-10-30 at 13:40 -0400, Lucas Karpinski wrote: > The sockets used by udpgso_bench_tx aren't always ready when > udpgso_bench_tx transmits packets. This issue is more prevalent in -rt > kernels, but can occur in both. Replace the hacky sleep calls with a > function that checks whether the ports in the namespace are ready for > use. >=20 > Suggested-by: Paolo Abeni > Signed-off-by: Lucas Karpinski > --- > https://lore.kernel.org/all/t7v6mmuobrbucyfpwqbcujtvpa3wxnsrc36cz5rr6kzzr= zkwtj@toz6mr4ggnyp/ >=20 I almost forgot ... > Changelog v2:=20 > - applied synchronization method suggested by Pablo ^^^^^ most common typo since match 2022 ;) Less irrelevant, please include the target tree in the next submission, in this case 'net-next'. Thanks, Paolo