Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A3347C636D7 for ; Tue, 31 Jan 2023 21:47:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229776AbjAaVrz (ORCPT ); Tue, 31 Jan 2023 16:47:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230104AbjAaVrw (ORCPT ); Tue, 31 Jan 2023 16:47:52 -0500 Received: from mail-yw1-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C011E5A805 for ; Tue, 31 Jan 2023 13:47:49 -0800 (PST) Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-510476ee20aso114201217b3.3 for ; Tue, 31 Jan 2023 13:47:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=EvA04MAVbr1UuAjYFXOV/pgoyn0pjItg1LdvvQcMI8c=; b=H0BHVeKa4qEFSSRzJElwMZ4GewmdUx3WiPFixCTp+9kb6GH0ec4EOCufp1bGBVJoaU 0vzBHCsXLtM7wxZ2o+duBMw3vgJs3cLrYgZ9KViPKlw8qA+8b7pncYkWLM8wXM4EMiLT Wz+vm9YD0dgqaYLnmlzQ2uD+fjZwC8EBuadn+BREBwfGPH1E2O+YTq8b/FRKugSEH02k ljvVLMI9/GzzEOgqq9Fz4PdOk0kVlQvITmFVxUjPOo1bhNIw+qHhlRNO7vo5qmE5gZrM aTNiq7MdRlWqfHXXQoQI45iks7npKbF0tcjRA0fCzl4nVZWRo/5HVY88Y6EJAatig2CY X5Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EvA04MAVbr1UuAjYFXOV/pgoyn0pjItg1LdvvQcMI8c=; b=q0F2uz9SQiCThWw4Ze8GPoMIZNzPZmfDNOINJZCfB0qaYBks37jwyT7/wfEnD6TiQW 9AXF16DGiemdmEcWFkpQj7lxyUIJGeiblAqmpovEKRQzRbsfityqBymFU014fCwDj2Pp Gv1ZbFraalmNsLWMTqbiyoz2M2KUmru4qQw3OY9VQ7ho75C9N5aGottONHaD/MbbEcpm y8vvp5+9PJJqlMVRIf55QZdxug4BHqmHhe6qbqJ/Ex42VAnIN5ip/gPklxZ7KHyyWcvb jKN/kHxSl9w7JxpBj5Lo6wjLJH4qgvBfwWrjtV5sa6BNcT1Vn88JlbPwhvgyleenUeJn HuVw== X-Gm-Message-State: AFqh2kqReIh4KX8w6/DDi3YoGAj5IBEjahoz6PrjrXOBb7qp9R70Sbsm DlPcpM/kziduzXUz4XHZvDaCJktCbTbrRnQQ2mzGkLdoPfEw4jew X-Google-Smtp-Source: AMrXdXvxUzexZvvtDOoB1xHI01ESP1152UTaWhUHhWH0zrdl0HhwlkoUzxS9ShAH3OIgN7jOLAH+IeIK7nYk3bvnCVk= X-Received: by 2002:a81:4006:0:b0:46b:c07c:c1d9 with SMTP id l6-20020a814006000000b0046bc07cc1d9mr4380896ywn.56.1675201668950; Tue, 31 Jan 2023 13:47:48 -0800 (PST) MIME-Version: 1.0 References: <20230131210051.475983-4-andrei.gherzan@canonical.com> In-Reply-To: <20230131210051.475983-4-andrei.gherzan@canonical.com> From: Willem de Bruijn Date: Tue, 31 Jan 2023 16:47:13 -0500 Message-ID: Subject: Re: [PATCH net-next v3 4/4] selftests: net: udpgso_bench_tx: Cater for pending datagrams zerocopy benchmarking To: Andrei Gherzan Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan , Fred Klassen , netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 31, 2023 at 4:01 PM Andrei Gherzan wrote: > > The test tool can check that the zerocopy number of completions value is > valid taking into consideration the number of datagram send calls. This can > catch the system into a state where the datagrams are still in the system > (for example in a qdisk, waiting for the network interface to return a > completion notification, etc). > > This change adds a retry logic of computing the number of completions up to > a configurable (via CLI) timeout (default: 2 seconds). > > Fixes: 79ebc3c26010 ("net/udpgso_bench_tx: options to exercise TX CMSG") > Signed-off-by: Andrei Gherzan > Cc: Willem de Bruijn > Cc: Paolo Abeni Fixes should go to net, instead of net-next. But the code itself looks good to me. Reviewed-by: Willem de Bruijn