From mboxrd@z Thu Jan 1 00:00:00 1970 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 03CCF1CA98 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=1709316648; cv=none; b=kdTbpXpGPt+LgS2F4Hajdd1inhY4LzHrELIXBvtCrYW/JLHKfHEJ6VB4JfRE721nEJ0jUukU/migoAHQGo5bnayogzSCREqECPBnorRs+88QJNTgtytG1uL77dGp2n9/lcpI/s2lRi6gs62YslOeXna6fnQQKWjdcVvWQFvJ4v0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709316648; 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=e4GTqPviYV7rFipoX97GyDef4b508iyqD/9egfXAnXF53k81p0gOHIB/Z6dcdAA75Jh7RnIcjKBm0t1qhW1b6rvklKJ8dsyCkLA8uZvz4fxPSBiNsdJAb+v/8FhRXkH5+bt675v2tj03UCRD6dbW7/TVHhdlH1FCi/pOg4GOZ3g= 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="3u1OFBlZ" Received: by mail-pj1-f74.google.com with SMTP id 98e67ed59e1d1-299c12daea5so2893677a91.1 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=SoZQFilgLVpnWk3BCMeo5w4bjsHObVnExLbJmyhVsMZadApiabs4Q8RyAnqxsHKhin G40YYEYnsHz1ybx509WFfE7vPUrItZC9Uq+giiEh6mjcQCjfs3pQMVYPKihHcpU1410x w0/kOycoUojPCXhA8ZzMWJIwL9WBjTVxjIJwedAiYc7r0l4BVhM7oRA0/pldjVuOB7q0 Cgo6SWRC2Ap4xflEFo+23x0jgSoYsO/DUCBDc/Cvg127VFEreKHDQlK5QCivDHLqvpqq jCiP4WISB401MQ7A6F7zN2GPmBwzguQgdHBqwsysyi0XWHKSxLkN/9UvQ5WXlFLkxLAM b7HQ== X-Forwarded-Encrypted: i=1; AJvYcCVFa7RHOcp5TvBe3WA1mMWWc/MRdPGkuC/aK9DnAeCR5jTeBngGmUgqR7YwwFRlsJZTvqq5o9PvYs8ciJcBNq7oIIfh X-Gm-Message-State: AOJu0Yyhf0bF6Vi2nKqOgFKbfTLiehD+iosCJFiaDjDgmQ7pTjPMQHpw LNu7/ilEFuY40MUR3JfHDvUzfzOOPieArsLQ00sanl8vBvbF/F4fCKYwTQz/xIioMA== X-Google-Smtp-Source: AGHT+IEGDx0IBS91RwXiEWVsOKX4bVPCV9F+AXiFnctjT3PsNi+Tc0z/aXyoMVHCH/0MRr3/ArbUUwo= 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: bpf@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