Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp459944lqg; Fri, 1 Mar 2024 10:12:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWQcJlccvCL4BL8KP52YdCiZVCEZFKA2BcVeOYyGhsqAMx9rmMK1G/KlJeRJ0gG7k0S+Pb3w7tB72vUdfeqLMFlenOcjBv5teop6xSeiQ== X-Google-Smtp-Source: AGHT+IGufYu/f8PuCSGzXFmTflpwllng/B0ev3AgBsTDkhuIvroXiA1U+7aOIqzu4+tPCyXkl6vl X-Received: by 2002:ad4:4d49:0:b0:690:5745:5b49 with SMTP id m9-20020ad44d49000000b0069057455b49mr1959329qvm.11.1709316737153; Fri, 01 Mar 2024 10:12:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709316737; cv=pass; d=google.com; s=arc-20160816; b=Jl97sTK6jDDfZEqBqDdts55+coOqrByL0s4sTiToI8iqQt5RrWvoO/6MedRQf405FQ c0fCphbrtq2lVSGun+QBf3/cAvwPvq2ig9kj7Ia33Gz3Me1pI2hlWJywEjJkRn6NEhNc 0DQ74fyvRy6YRtoFKD8JkIcvNVMOkiE/+xEyleUCH9ObTtNkag9ujGMFm58yGdZhwX14 kyujk+cNPGuD9J6dNwXmvkMfzZqMrWWqwAUE8MZmQmJHLKzozuRQA5YKS4XOnG7GxHd0 8/JlC8aETiQeIxFofUirxzpa4goGjBgjVGpEf1uhQebz6TSZxBt3jJm26cpG5gUFvSli dyFg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=pgwkJ5zBKIvalm1RJIrALe5y36weQ/YKYrh2qwof5jE=; fh=2ER1cULEpzPOIy/SeQXvzrM9vt3TbzYLwswQa6T/QcQ=; b=zEgSLQFI2deGLJmshy6JquTceVYqxY/MONdGInEs6Q3d8bOnu4OvWvX4ZUhyzI6WaL xZYo6TrTS2hFmIdCfzUJI19tIM7lQ7pMhizK8vJMcnseJCdMy8NSYBD/o89cQnWfe4zr jHYja25yghfEAUYkXwQxT3qPkpLYOKlH+Qn0kq1ajQNw2Bq5s26Fr8WlvsVFTppAXOVm U1Y9/TBrIWI/ORESC761u6oVoISmCmpUjlSiPIU2Eh4OtGARyEuOHVOFOfjodYuRfZC5 I1qjFya63vt8NQTG+Qp0JFX/g5Oi/kHayJQa9T5qRxKhs/j4HDQSJ6RQDRZtdE+phHFr +yTg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=3u1OFBlZ; arc=pass (i=1 spf=pass spfdomain=flex--sdf.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-88888-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88888-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id gu11-20020a056214260b00b0068fe53248a6si4100927qvb.454.2024.03.01.10.12.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 10:12:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88888-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=3u1OFBlZ; arc=pass (i=1 spf=pass spfdomain=flex--sdf.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-88888-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88888-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 545381C257AC for ; Fri, 1 Mar 2024 18:10:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A81725632; Fri, 1 Mar 2024 18:10:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="3u1OFBlZ" Received: from mail-pj1-f74.google.com (mail-pj1-f74.google.com [209.85.216.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 03D07208A1 for ; Fri, 1 Mar 2024 18:10:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709316647; cv=none; b=QxI8j1wDcBiZ3saFSFCmI18XdVOkwLMd2vttZf/RPeQGBJVT22NrjQ+nMQzgC7MFsupAIPBUHlRxc3L1JD+NZQx3iPsj9n0Y8+0TCyHNiWZnAPh86IJoPyoQV2Ir7XCU/UFLV+LSjyk2S1GJT7gr8kQl5AilvmtoSXOAKYFAsbU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709316647; c=relaxed/simple; bh=/6jcISU9a2lnag5/ubrKOxe+3HSP1o+nV0AIAXp30PU=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Z7VMKxKP8/JmSDHKNXMJgLzM7+pdmcQhRxeWPhjfuzK25LFd2yMOY2rZJhCQ+hYypfe65a6TX0l4f8ZECZnDEYryxCE/BDEVlZtkOUP7pQKHkmjbn4mMrueHRoHXt8RI9YKgoBRg0bMLo0ttbDCVfpIVRvFl0OqJYJ+WoCxj8+4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--sdf.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=3u1OFBlZ; arc=none smtp.client-ip=209.85.216.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--sdf.bounces.google.com Received: by mail-pj1-f74.google.com with SMTP id 98e67ed59e1d1-29ad35a8650so2910161a91.0 for ; Fri, 01 Mar 2024 10:10:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709316645; x=1709921445; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=pgwkJ5zBKIvalm1RJIrALe5y36weQ/YKYrh2qwof5jE=; b=3u1OFBlZYlDwYDMaBGNvYsP/Pe7bCrKTk9rO35Zkj2EH0Y2HN8qyn4tCt9hhbrBOQW 060bAX/T3CzjtXIl6zmDevL1mQnfzPDQM7tnR+iyQAJxOeULy57SMTHdGuioYEJLVxQG XsgjG1HjuPzImNJfCRK2jeta+85kTzFWGxwHuYz7AkwOthWV5VX+PDiRrXK0Lh6K14jw no/WqSgV2aCib4O/QQ1S8zc5y4ZyyrUXiCX1miul9XZ9AEy9JksbG77PLebrNJDrzoQ8 ylseZTbjcDFxg7TcpMYPEU7QO+SvPoZNeSLhng04gwoWGqOLEzGgjihRjwo1E7qtkeOD 746w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709316645; x=1709921445; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pgwkJ5zBKIvalm1RJIrALe5y36weQ/YKYrh2qwof5jE=; b=eCe9fMjox1S0Fil2zZt5iHGlLlz2mCb+Kk60POsWlWkuzO2JAoOF6z2ZBNHZHBOAN1 RSd1QOAZK3ZH9hwMXhQFUqQvv7zI/tHwPqW6w7zuTcw33lnq8Og6ZMpjLP7Irk1ZHMUY OCxfpRvSwFkp+XiyhGSkft1oNlV5HHJQ2z+zzslheumudzSN8m5eS1/JUPvOpwLXQ3B8 V071dBVbMa5Y4HIM4H78EckmdvqHBtCHJWzfFFU+3cstLHKrMTBKUy3x9Zsj3mNPF9dR eDZdQ6/Nt+XXsyKpF2/T1hxbGBWpEItpCObVdbtcU+gc26zGwRCKbGZn+BxSa05hvne0 zVeg== X-Forwarded-Encrypted: i=1; AJvYcCX3DQ+slia3wQ+czuplWI4PEeBf6n0TMZLrCm/H6uN/9GvpUrrwNTddcpmVv4GhEQv7sY1r8U7YgqPj2JHF3TER3WeU3NesmmJPh/At X-Gm-Message-State: AOJu0Yy88DGuryL3FRtnIB09AfyPKWVqaasN3G8x6LbssqbMjc0wrnJL PoQYYCM4iOI8QADrvJJPvjdvZ+KTfg6il341YfUAOHS1KYuuK6c+mHpkSxH8PmPylg== X-Received: from sdf.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5935]) (user=sdf job=sendgmr) by 2002:a17:90b:3741:b0:29a:a70d:e5ce with SMTP id ne1-20020a17090b374100b0029aa70de5cemr24534pjb.3.1709316645070; Fri, 01 Mar 2024 10:10:45 -0800 (PST) Date: Fri, 1 Mar 2024 10:10:43 -0800 In-Reply-To: <20240301162348.898619-2-yoong.siang.song@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240301162348.898619-1-yoong.siang.song@intel.com> <20240301162348.898619-2-yoong.siang.song@intel.com> Message-ID: Subject: Re: [PATCH iwl-next,v2 1/2] selftests/bpf: xdp_hw_metadata reduce sleep interval From: Stanislav Fomichev To: Song Yoong Siang Cc: Jesse Brandeburg , Tony Nguyen , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Vinicius Costa Gomes , Florian Bezdeka , Andrii Nakryiko , Eduard Zingerman , Mykola Lysenko , Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , Hao Luo , Jiri Olsa , Shuah Khan , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, xdp-hints@xdp-project.net Content-Type: text/plain; charset="utf-8" On 03/02, Song Yoong Siang wrote: > In current ping-pong design, xdp_hw_metadata will wait until the packet > transmition completely done, then only start to receive the next packet. > > The current sleep interval is 10ms, which is unnecessary large. Typically, > a NIC does not need such a long time to transmit a packet. Furthermore, > during this 10ms sleep time, the app is unable to receive incoming packets. > > Therefore, this commit reduce sleep interval to 10us, so that > xdp_hw_metadata able to support periodic packets with shorter interval. > 10us * 500 = 5ms should be enough for packet transmission and status > retrival. > > Signed-off-by: Song Yoong Siang Acked-by: Stanislav Fomichev