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 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 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-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-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: 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