From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yb1-xb2b.google.com (mail-yb1-xb2b.google.com [IPv6:2607:f8b0:4864:20::b2b]) by mail.toke.dk (Postfix) with ESMTPS id D69B9A41769 for ; Thu, 30 Nov 2023 21:29:40 +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=LWUw9SKl Received: by mail-yb1-xb2b.google.com with SMTP id 3f1490d57ef6-d9b9adaf291so1450732276.1 for ; Thu, 30 Nov 2023 12:29:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701376117; x=1701980917; darn=xdp-project.net; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=YYgokxpdXnom83isGSeLIiEWyDvQWuc8uahFIcEFCiU=; b=LWUw9SKl6L5KIAILlk7hCT8wC6z3BgkKtQqmgfkwnS4jKjPeyz7g0QsQ18Cm3anVDu FDgm50czpr91tqmb5zoIik/6/FJAGTy3EpFTHXXAH2f3NSY5TtR9fYyTwW85Ds0B3ePR JljXu0fttBvkvxw/ojbRiznB5fivFHcQfCJch46tpT+0rcO8Eho8bvgSMutUr4qGpoFx wUqJMIjHRD2Cw4KwWyaL9KgwcSa5YjEw016B8pXREPZqpHud1p/nWtKb4EmrqrWwbjZo p390NDW4p/ncow7MRLy2OA3gRMoteNK+z0pMf8OvE/48diYtGT3qEr5H8KaXMqL9XmPB frfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701376117; x=1701980917; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=YYgokxpdXnom83isGSeLIiEWyDvQWuc8uahFIcEFCiU=; b=Akweib8hwt5rGAiKMC4tqrXIrOhAdTtJyBt15AsYaQTdrJOaZX389PLFXw7A2FWK3R K+f9Q0ulHN5OyrgKE5+m/POCG1r3nBS7XmZWTe+48Sbr9amJE4FQGuzzgb08xqO4oPy8 TjAUfnKOBYAtSdKCJMo/r9sqfF5hbIsYLNycY3Y4XmQz3r24q+MStvioaUfdJm88A77t 1heWsS27BK2OXmXCRHBS6lsKARc1vc+JeDKZmGAnafCYnxZXn/+PUITnpPOvgxmoxxtq uBhmG3ouaG1cFglyAoPtCWUCOJ2gCTaAF3m0ZI1ss3vPRGj4ziOumQhjjE0wZXJzWlKe +7vA== X-Gm-Message-State: AOJu0YwjVavZhlY+BLGhEvpLbgvJr0NGQ2/lmt3exyDhLfd4WaWP1LB/ 5vpljxY5K6eOuCA47Tx1R0M= X-Google-Smtp-Source: AGHT+IHYZiQbkBLJ008rJXlLXZbrmVVGfJZyhDvQvrE7IAhJuIYy3iC3ruuDLfNDxv8+R4e1qKgz3Q== X-Received: by 2002:a25:268f:0:b0:db5:4938:483 with SMTP id m137-20020a25268f000000b00db549380483mr975627ybm.32.1701376116773; Thu, 30 Nov 2023 12:28:36 -0800 (PST) Received: from localhost (114.66.194.35.bc.googleusercontent.com. [35.194.66.114]) by smtp.gmail.com with ESMTPSA id q2-20020a0c9a42000000b00679d7e76b64sm800622qvd.126.2023.11.30.12.28.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 12:28:36 -0800 (PST) Date: Thu, 30 Nov 2023 15:28:36 -0500 From: Willem de Bruijn To: Song Yoong Siang , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Bjorn Topel , Magnus Karlsson , Maciej Fijalkowski , Jonathan Lemon , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Stanislav Fomichev , Lorenzo Bianconi , Tariq Toukan , Willem de Bruijn , Maxime Coquelin , Andrii Nakryiko , Mykola Lysenko , Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , Hao Luo , Jiri Olsa , Shuah Khan , Alexandre Torgue , Jose Abreu Message-ID: <6568f07418508_fbb8229478@willemb.c.googlers.com.notmuch> In-Reply-To: <20231130162028.852006-2-yoong.siang.song@intel.com> References: <20231130162028.852006-1-yoong.siang.song@intel.com> <20231130162028.852006-2-yoong.siang.song@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Message-ID-Hash: TQCVRM6QID3WTIKQ2PAQAZRKAZWH3IW7 X-Message-ID-Hash: TQCVRM6QID3WTIKQ2PAQAZRKAZWH3IW7 X-MailFrom: willemdebruijn.kernel@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, bpf@vger.kernel.org, xdp-hints@xdp-project.net, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, Song Yoong Siang X-Mailman-Version: 3.3.8 Precedence: list Subject: [xdp-hints] Re: [PATCH bpf-next 1/3] xsk: add launch time support to XDP Tx metadata List-Id: XDP hardware hints design discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Song Yoong Siang wrote: > This patch extends the XDP Tx metadata framework to include Time-Based > Scheduling (TBS) support where the NIC will schedule a packet for > transmission at a pre-determined time called launch time. The value of > launch time is communicated from user space to Ethernet driver via > launch_time field of struct xsk_tx_metadata. > > Suggested-by: Stanislav Fomichev > Signed-off-by: Song Yoong Siang > --- > Documentation/netlink/specs/netdev.yaml | 4 ++++ > Documentation/networking/xsk-tx-metadata.rst | 5 +++++ > include/net/xdp_sock.h | 10 ++++++++++ > include/net/xdp_sock_drv.h | 1 + > include/uapi/linux/if_xdp.h | 9 +++++++++ > include/uapi/linux/netdev.h | 3 +++ > net/core/netdev-genl.c | 2 ++ > net/xdp/xsk.c | 3 +++ > tools/include/uapi/linux/if_xdp.h | 9 +++++++++ > tools/include/uapi/linux/netdev.h | 3 +++ > tools/net/ynl/generated/netdev-user.c | 1 + > 11 files changed, 50 insertions(+) > > diff --git a/Documentation/netlink/specs/netdev.yaml b/Documentation/netlink/specs/netdev.yaml > index 00439bcbd2e3..a602776bbfb4 100644 > --- a/Documentation/netlink/specs/netdev.yaml > +++ b/Documentation/netlink/specs/netdev.yaml > @@ -66,6 +66,10 @@ definitions: > name: tx-checksum > doc: > L3 checksum HW offload is supported by the driver. > + - > + name: launch-time > + doc: > + HW Time-Based Scheduling (TBS) is supported by the driver. Can we avoid introducing another term? We already have too many: launchtime, earliest delivery time (EDT), SO_TXTIME, pacing offload, earliest txtime first (ETF).