From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by mail.toke.dk (Postfix) with ESMTPS id 36071ABA50C for ; Tue, 07 Jan 2025 18:07:43 +0100 (CET) Authentication-Results: mail.toke.dk; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=D5h8wk90 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-2163dc5155fso229837085ad.0 for ; Tue, 07 Jan 2025 09:07:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736269662; x=1736874462; darn=xdp-project.net; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=H6IgG8TBqPF+D4hNW02w96Pdr6FXNShPU0XiGtGLP2U=; b=D5h8wk90OktLCD+zfBtGrW+RfQGK2tY5/gNHqbCrWK15Wbn3B/L/KhLzB69pQGgwyC CVRQLsfzyYzC/PT/ohgD0iqecLmgJw8ERg1d9p1F23y+tqbXnwc4v4cfDP4tZAiOg+mo fRR/aGzlL7QIHU+E04tnej8kwjUTloH3Yec0cg0vKXU+gTdu6uavoHxsAX0izDXbLcjD iEy55AmmKJzV2roTUKrIiyaUbLKC6KaSUuGM/GRw+fDh9yTyyzOWIx1nek5c7JyAz+PR Bgq0tfS0WRRnjfHGhIhuTFWFq+3sWijhdPH34reQAyyG7doZF6UYavnqiQUdmOb1GHH8 ZDUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736269662; x=1736874462; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=H6IgG8TBqPF+D4hNW02w96Pdr6FXNShPU0XiGtGLP2U=; b=doECeq1utHTgpqeUOh4wABwlhbrdgXhrSgYjnmqWm+sMg9u1BN0xE82nHCUnx0qnT4 cKsuC4FUPPMrgNX9WM+sYDYObCjIi+53TnKMBEc1EdFHVS/NbukGvoa3AM0yudMOrafj BxkunY5bSSN4ZnZGs5CCwP0OHFymgB9Xw20U/yNCDaXUIHpdAmv82K/PYh7wHTkMMPmP F40D3pRjtnIPYSb0FbeHHTs3p2Y9Ryu7/H/b/tfztVDvZnvWd1DCx+QvIAIair5FqRiU IHj4QOIgummXbgyQNrt8QcZzj1bsapC2YE0Oush8TdeaYr1+H3JCNXjo2emN+pZ2bzIb 8MYQ== X-Forwarded-Encrypted: i=1; AJvYcCVUoRFv1uUfpgJ3wuJErTDE+uLQqLLp8iAkQPz07z/AjbaRPaPkpF1OgKLmBKA51UyZfq8XhoNlvE0=@xdp-project.net X-Gm-Message-State: AOJu0YweFi3A47Vh7pkMbcQYeRD/F3KtolPsvTc0Pbxw4NtFn44cDFE6 FiDreWNpAVXJcQevz+t2gHYcqGL835WRma43XeLkwRDpobKYR+A= X-Gm-Gg: ASbGnctM0PKlL+ilNSgi0ygl1OlBVvSDYX+sodDoRqqqBWCeJsOJEtMjrig9B/ICyR8 COkgyWKMTCctoatcE2YxqmtoMuls5kDD1fUxBkMK01mV7h6Kp7nCIIuU2cNmqCzPSr7iolLcVup CtIUAx5uWf34z86N1Iu4k++GyEO5iNZ/xKGZqqCNuVd0Em5YBGdvIpiiUDd45CLs9eoYmg7JLWD v2uF94II9JnpavUFkSWCt0M/mch5YP8TT2MP+r+ss3Os4JY+X+YeHd1 X-Google-Smtp-Source: AGHT+IHI4UAilr4fOsWcWRXO8E8vJoNjH2hq0o3vxddLmqIYgmVN8lBTyI8wQrNNttLzXRdwB4KPiw== X-Received: by 2002:a17:902:ce92:b0:215:5ea2:6544 with SMTP id d9443c01a7336-219e6e8c365mr758236605ad.7.1736269661645; Tue, 07 Jan 2025 09:07:41 -0800 (PST) Received: from localhost ([2601:646:9e00:f56e:123b:cea3:439a:b3e3]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dca04ce7sm305940015ad.283.2025.01.07.09.07.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2025 09:07:41 -0800 (PST) Date: Tue, 7 Jan 2025 09:07:40 -0800 From: Stanislav Fomichev To: Song Yoong Siang Message-ID: References: <20250106135658.9734-1-yoong.siang.song@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20250106135658.9734-1-yoong.siang.song@intel.com> Message-ID-Hash: KIJBL4XTUTRYAPKVRG3BWXTV5TPMFPBZ X-Message-ID-Hash: KIJBL4XTUTRYAPKVRG3BWXTV5TPMFPBZ X-MailFrom: stfomichev@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Willem de Bruijn , Florian Bezdeka , Donald Hunter , Jonathan Corbet , Bjorn Topel , Magnus Karlsson , Maciej Fijalkowski , Jonathan Lemon , Andrew Lunn , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Joe Damato , Stanislav Fomichev , Xuan Zhuo , Mina Almasry , Daniel Jurgens , Amritha Nambiar , Andrii Nakryiko , Eduard Zingerman , Mykola Lysenko , Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , Hao Luo , Jiri Olsa , Shuah Khan , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Tony Nguyen , Przemek Kitszel , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, intel-wired-lan@lists.osuosl.org, xdp-hints@xdp-project.net X-Mailman-Version: 3.3.10 Precedence: list Subject: [xdp-hints] Re: [PATCH bpf-next v4 3/4] net: stmmac: Add launch time support to XDP ZC List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On 01/06, Song Yoong Siang wrote: > Enable launch time (Time-Based Scheduling) support to XDP zero copy via XDP > Tx metadata framework. > > This patch is tested with tools/testing/selftests/bpf/xdp_hw_metadata on > Intel Tiger Lake platform. Below are the test steps and result. > > Test Steps: > 1. Add mqprio qdisc: > $ sudo tc qdisc add dev enp0s30f4 handle 8001: parent root mqprio num_tc > 4 map 0 1 2 3 3 3 3 3 3 3 3 3 3 3 3 3 queues 1@0 1@1 1@2 1@3 hw 0 > > 2. Enable launch time hardware offload on hardware queue 1: > $ sudo tc qdisc replace dev enp0s30f4 parent 8001:2 etf offload clockid > CLOCK_TAI delta 500000 > > 3. Add an ingress qdisc: > $ sudo tc qdisc add dev enp0s30f4 ingress > > 4. Add a flower filter to route incoming packet with VLAN priority 1 into > hardware queue 1: > $ sudo tc filter add dev enp0s30f4 parent ffff: protocol 802.1Q flower > vlan_prio 1 hw_tc 1 > > 5. Enable VLAN tag stripping: > $ sudo ethtool -K enp0s30f4 rxvlan on > > 6. Start xdp_hw_metadata selftest application: > $ sudo ./xdp_hw_metadata enp0s30f4 -l 1000000000 > > 7. Send an UDP packet with VLAN priority 1 to port 9091 of DUT. Tangential: I wonder whether we can add the setup steps to the xdp_hw_metadata tool? It is useful to have one command to run that takes care of all the details. Same way it already enables HW tstamping.. Or, if not the full setup, some kind of detection we can signal to the user that some things might be missing?