Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp584379rdb; Thu, 30 Nov 2023 12:29:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1xX8b/GVIHhK2xF0MRtoHLwOCPSR3L9cUlejzK6wCQtWtrmIaPZM2a+YSSEmrb98DXda8 X-Received: by 2002:a05:6a20:e121:b0:18b:e49:fdd2 with SMTP id kr33-20020a056a20e12100b0018b0e49fdd2mr30903691pzb.9.1701376142736; Thu, 30 Nov 2023 12:29:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701376142; cv=none; d=google.com; s=arc-20160816; b=rBsPuMfSAXzDM2S8t4qWAxM10CjvOMPMUZvMa7ca3ZuhUOLLGHZKBQdGu2KRm8ASmU L86Nt0BgNDoCuwFRObhdz4GH9cSFjASbj04mqAoDWyVelyXrV8H9O5mmHwOWCWPWWsWN RTosYLFWZk8iEXAl+lQ+K01eSWhg6Tov288zNMZ3ici/kRAU2qByh/F3VFfqNbMeCqzf L+kvXL+IuNpHHqfYaGOiDV1wouYiytC8NkQka0vlyDgT6qFDq0ejLT4vOpMQBs6S1cl2 aUUJFOOG8Qz3ZA2EJYTeFFOMWLQ/FkaIk2bCJZPfOXzn3Nq8vviYAqBmYvk0/+O4S6GZ KMSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:subject :references:in-reply-to:message-id:cc:to:from:date:dkim-signature; bh=YYgokxpdXnom83isGSeLIiEWyDvQWuc8uahFIcEFCiU=; fh=2KrkK34WR5FvZt9ehyCFXEm2hDQw5ArktbLU2jXePDc=; b=fLsmMxJyJhZXPp4PhMZ+Pco8RecximtV861f5yno5x3SHamP2OKXeH2Mbz5L7tSwaE Vs9U5GMcP7fdkjZOgIFCif1NWRyzJMyQ+5cov6UE+GHz50EasNTqDJN3SWGwEEBABmvX 5kM68MrEMVAs+G1v/gHJW6Y3S1Vsaq1hOLfhhGnhpsWBGyEzVKoLRZs8qWWQZU2jYelo d48QMZVUPhKf4SzWXKQjEW+Nb3OTi2Cbda4qt9NkpmGdjxeob0WTQdJcThzN2jtUdRv8 DTTsQ5hQLm9VcToCTzuwA6vUgTNOgeFt/K+hqWqEFihvRALVF+zm6qknCqBeHtO4FDbJ hqUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lT+0NxUg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id h189-20020a636cc6000000b005be0d708412si1931400pgc.31.2023.11.30.12.29.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 12:29:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lT+0NxUg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id A1EDE82CD634; Thu, 30 Nov 2023 12:28:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376718AbjK3U2c (ORCPT + 99 others); Thu, 30 Nov 2023 15:28:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231901AbjK3U2b (ORCPT ); Thu, 30 Nov 2023 15:28:31 -0500 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3195106; Thu, 30 Nov 2023 12:28:37 -0800 (PST) Received: by mail-yb1-xb33.google.com with SMTP id 3f1490d57ef6-db4364ecd6aso1449445276.2; Thu, 30 Nov 2023 12:28:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701376117; x=1701980917; darn=vger.kernel.org; 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=lT+0NxUgwEKXHXQwHxoAPu8UiUMQRKxIr/R2Wo/G87IfsGfZLZqqMfT/MAgw1agiY5 NbYzaAuSQXMqkwA/ZGRj9AAHLyI9HhXDxpk56CUrSFUurGa3Mm5YqPsJhZLW+rKGSEag 8d9ooJHB83tjWRd4eV85vB1r1g7G/K8N1aBTbz/TxYAu0aWmcoqUgdK4jN1gsrxcND79 CD1x9LP7qJYwP/5VAZMK6zqSClv7W/L78hfQe2yrEXO9XnR2qvL2pUz44VFG5Spb9gmj leELW/F/dPzivqrVV+8ptS2aqMX4G1ccDrVXkzfB/7ixMa2dii/gsUzy237VCuZktGrN o7Sw== 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=jAriABDXGTvtxfziSgX8WzTBROg+F99vUmLUVwpjs9FDFIVRtlI70okz3Nd6HygIRG gKQa2z0lmNGDaiZhhHum8Os8sln/kXSq8Yxwer5AsNcksrUgEaZ3v8SEpsyOF+jyrYfy xcTFv73bCZQYf7c1wiursiLS0pYgzAC556iRfbdBXft2c0xAqnpmdmZH0Ps8WBhe8AxX 2b2h/V+Eyfz1wnXkUfumLaQYVet2lNSC5p4zBLFi5pxfYG6l9Eb5D1VoFj2SRGI23KwA XCl9DjxgjIoocyT90eUvkjewsYA+RvIhg6WVbGSBTfemJje+Rk1P4ZlEXIAn4rwADHXu ZMQw== X-Gm-Message-State: AOJu0YzG/k8xhQpOWbgfLgU3ni+kYhrO4IWcrfBER35PPr0b/jgP5bn2 RJaNN5C8ZMm3Zy0adOsw9mk= 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 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 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> Subject: Re: [PATCH bpf-next 1/3] xsk: add launch time support to XDP Tx metadata Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 30 Nov 2023 12:28:59 -0800 (PST) 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).