Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2758887rdb; Mon, 4 Dec 2023 06:54:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IGU/h8Dvm5n+LPQ1qpH0v87SL32u65o2+mzGkf2T8fHAF0n9w8KFMoGmUutsmhu8kSm9bDh X-Received: by 2002:a05:6358:52ca:b0:16b:4f8c:93c7 with SMTP id z10-20020a05635852ca00b0016b4f8c93c7mr4814648rwz.23.1701701695311; Mon, 04 Dec 2023 06:54:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701701695; cv=none; d=google.com; s=arc-20160816; b=s3laS0X7Loq60g7pYP4iRsc5IFe9nv3PhcUaaWR+0tTVCAQRkj1cf/+iwpebdP6q3Y 3/YmQNvB6B4uzoOl4hDWCiDSZvE0q/FacNjHAj221Iw1S73FbO3DE/iWdolQvHBG4c6/ +cjhaaDCGSeEVp/73R9BBM7e2g2XJPYuSg+wzont0/3xR5mYs/EWq0TCyekwGEeRn8pk WFByb2chv54wFbbAE7rReEOHOgo9OHMF4LG7UoihDESeGoNuN/fpBGh4WwzzTyzhcKsc 1wvIQWEZKZGKMrDQNNcCrmpcpCJ87CiuDJuFF0nm/0T5mhKrWKK845a6TIQ1YEn90XL5 2uxQ== 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=Bg3OAjxlhkHVroLExkyXrSp7hB9PGqxL9CSH3f9aKos=; fh=/PZppwOx3dmkYzjSTqPU5Mol6ET1n0YaxlNXKqQehPI=; b=MGbQ6JQ0cLtJTmd6mlznTVTFOdt4wObrQ4j9wQbkDOn11CYHDX818oq1omk4BzDKau ArSrNBJ2ULimqHPkEjXx6ObR8JwED9X8PHCyhg200QjIPZ0l5gn1L2b1Qc6wbG/Vvasp 8qzAeTAtW7r7IovvzWEqq2YJl3Jqrg9E/Bgl1jPypD/mpNKbohJWz1AKH+PdsShqovP/ Hdk88kWZXzvjjaRTaKVk/SOD3neb/uFVMONWsSsVrZA5c3TmKAzfRT2+Ft486XPwIr64 V7RkAnCZAJ0wa/t6OfD7zHTnJZIdEXsVJ5NuxBFyhGJ6RAkU/vLD5ndftnhkdLVbSRLV RxxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=djGA3vkY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id c17-20020a656751000000b005b99697d854si8233816pgu.673.2023.12.04.06.54.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 06:54:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=djGA3vkY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id DE3BF8079AD9; Mon, 4 Dec 2023 06:54:52 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346019AbjLDOyi (ORCPT + 99 others); Mon, 4 Dec 2023 09:54:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234155AbjLDOyg (ORCPT ); Mon, 4 Dec 2023 09:54:36 -0500 Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA174B2; Mon, 4 Dec 2023 06:54:42 -0800 (PST) Received: by mail-qk1-x72e.google.com with SMTP id af79cd13be357-77f04969d2eso118246985a.1; Mon, 04 Dec 2023 06:54:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701701682; x=1702306482; 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=Bg3OAjxlhkHVroLExkyXrSp7hB9PGqxL9CSH3f9aKos=; b=djGA3vkYo8G+q2TTThXo9BVdxjoCSq+LWK32Jr+vl6pAMG9MOC8vm26p6saOT8DAz3 T61gB42MXGBvCKb92s0QN7eu/XtT3XKvcDdPOjXoOdPjBT1n0hUmNHqMQKG3oa9fgM6W Po0NF3ZvhXwUuSQ05HSensVvaeMvtP64e6orfyw3FTn8N1BMsIgqVGmZd3tlTmPQZFMl n50KiMFXX+BBC/rvzuQamRBuXRwyEA54sR4wYHyakTJ1WoWoGSTmLMs4mTddMg4ym2OJ qOwmlzXYUDNdJ0TMd4fSeOdOLoD9oo8OfpTV/PSKWBVXm4OEdNqejvHN++Hdfr9nQuQd MKpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701701682; x=1702306482; 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=Bg3OAjxlhkHVroLExkyXrSp7hB9PGqxL9CSH3f9aKos=; b=hco7fJrQvU4px6ozxo+5xYz2P5p68Xo0gdYChioSRFte/VK3gCMWWRQ7y7+n9Gc12h oxf/jwjEfvqRIFNeVY2SXKXyxOkV30amrp5y9JuFN14qfqCWQZMELmpZKysCfsDD/Ntz cctLaHLXi5rQBbnD/tUnW4rlI1l6iifFJMqzBTzYa2pGZ6MpGEj8BHaFCdFiIYufEOl0 6U4M6IB2Z6AbwPk1/nT8VnjqsNZHgp1qReQEvw9+HIuhb4SGcJO2xnpTsxYma/k4Sxtj CaioBTfcws3dSp8LMsdrMGZc2qSef0R/feoHHvDrOOK7U5A+XQihBNZ+3lzdirzwE8F4 /B7Q== X-Gm-Message-State: AOJu0YyeVMq7tMvB+EbPmnyQO/Ilvr3h0xbbGrfAesGtXOrap7SR8BpC 1Zl8DVy2VdNMQpto4/W0548= X-Received: by 2002:a05:6214:11a4:b0:67a:ad71:ce63 with SMTP id u4-20020a05621411a400b0067aad71ce63mr4980388qvv.90.1701701681739; Mon, 04 Dec 2023 06:54:41 -0800 (PST) Received: from localhost (114.66.194.35.bc.googleusercontent.com. [35.194.66.114]) by smtp.gmail.com with ESMTPSA id l4-20020ac84584000000b00421b14f7e7csm4356420qtn.48.2023.12.04.06.54.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 06:54:41 -0800 (PST) Date: Mon, 04 Dec 2023 09:54:40 -0500 From: Willem de Bruijn To: Jesper Dangaard Brouer , 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 , 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 Message-ID: <656de830e8d70_2e983e294ca@willemb.c.googlers.com.notmuch> In-Reply-To: <43b01013-e78b-417e-b169-91909c7309b1@kernel.org> References: <20231203165129.1740512-1-yoong.siang.song@intel.com> <20231203165129.1740512-3-yoong.siang.song@intel.com> <43b01013-e78b-417e-b169-91909c7309b1@kernel.org> Subject: Re: [PATCH bpf-next v3 2/3] net: stmmac: add Launch Time support to XDP ZC 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 morse.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 (morse.vger.email [0.0.0.0]); Mon, 04 Dec 2023 06:54:53 -0800 (PST) Jesper Dangaard Brouer wrote: > > > On 12/3/23 17:51, Song Yoong Siang wrote: > > This patch enables Launch Time (Time-Based Scheduling) support to XDP zero > > copy via XDP Tx metadata framework. > > > > Signed-off-by: Song Yoong Siang > > --- > > drivers/net/ethernet/stmicro/stmmac/stmmac.h | 2 ++ > > As requested before, I think we need to see another driver implementing > this. > > I propose driver igc and chip i225. > > The interesting thing for me is to see how the LaunchTime max 1 second > into the future[1] is handled code wise. One suggestion is to add a > section to Documentation/networking/xsk-tx-metadata.rst per driver that > mentions/documents these different hardware limitations. It is natural > that different types of hardware have limitations. This is a close-to > hardware-level abstraction/API, and IMHO as long as we document the > limitations we can expose this API without too many limitations for more > capable hardware. I would assume that the kfunc will fail when a value is passed that cannot be programmed. What is being implemented here already exists for qdiscs. The FQ qdisc takes a horizon attribute and " when a packet is beyond the horizon at enqueue() time: - either drop the packet (default policy) - or cap its delivery time to the horizon. " commit 39d010504e6b ("net_sched: sch_fq: add horizon attribute") Having the admin manually configure this on the qdisc based on off-line knowledge of the device is more fragile than if the device would somehow signal its limit to the stack. But I don't think we should add enforcement of that as a requirement for this xdp extension of pacing.