Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2614233rdb; Mon, 4 Dec 2023 02:36:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IF4QMpRfWLinBh9daytoXmbbZvjDw3C1PpxvHvttOq2PyfQ54XGczzET01O2o1mFXEQW0lM X-Received: by 2002:a05:6a21:a5a0:b0:18a:e40c:682f with SMTP id gd32-20020a056a21a5a000b0018ae40c682fmr1877857pzc.41.1701686210711; Mon, 04 Dec 2023 02:36:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701686210; cv=none; d=google.com; s=arc-20160816; b=yLzEHAWd5yCZsPoxYrDM8Vr7OGBwGpMISzl2BEhsUzcv5Lg3dNZXJ2zBv/MIixGWZ9 xuBq3+pUlrMtTATgJhFXgVIyfZ87PXdXU5jn7nMBWiX0vQR5wWo24+fZm55DNsXx3se9 YM/njEf62qDEE3QfGsh3ZMk6cqKF8/uwTwGioOm2aF4c9iwPWAwzMxQt2s2ExwMpr2LX HETRYVU2COVOOp4wrsez8buzCNCyrPfjsTS+W40pMMlPja/GuxINVaPNVPSzje6ve5xz rfrYNG/KVuuc3KK2zLpGq6++VOKZSfGxAmUFwb8B+ICzWgE17TQrf6IiZ1g/BxLg+0yH hKHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=SW2TMlFVkFpOom11LuSlPFJB72HoTnay9us+hHnObHA=; fh=ehSVmZpe8q5dLt0ylEc4tp7nlRfYehL2qdVeH7nIojQ=; b=kD2KB9qUuS5fRisPaBYNZTFhOQygT2dY7BkmKkLr6ECfkWCok35GKBp2m64/rGI+hB 6mUNNYBCXaXvpQWi/GsyEFYFNtMQ0rDR18a5BNXAjir4EkyAElcb/Wd1ltfqo+p/3Foc qIL/ORqV7chYKKVQehQPSDNpv94gsp005qk/w6DF8VdULEEJk9txizYsZi7lnTBnPamS P0GUy7qmXr+jipBwd3eoei15LXU3CO8j39EZZz4j1GmjfWUHDOoDxQQcm574ZbwckgML WN4HjLqlWKcbceuhPbr9n1pbch/NvTbHKVVq8qBNmYy7wHIVl3EDFtolsAUWoGKSG8r7 n59Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TYuJbBEO; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id j64-20020a638b43000000b005c66bb23ba2si3068727pge.563.2023.12.04.02.36.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 02:36:50 -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=@kernel.org header.s=k20201202 header.b=TYuJbBEO; 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=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 5381B805CAC1; Mon, 4 Dec 2023 02:36:48 -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 S1343808AbjLDKge (ORCPT + 99 others); Mon, 4 Dec 2023 05:36:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229718AbjLDKgc (ORCPT ); Mon, 4 Dec 2023 05:36:32 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09002CC for ; Mon, 4 Dec 2023 02:36:39 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B651CC433C7; Mon, 4 Dec 2023 10:36:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701686198; bh=+ErQN2WS12/khFYfpQDZFxvXogAuk59InCRmaNowfS4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=TYuJbBEOWc7KkHydu2jfldkno0up5yHsG0uUho4wBtYHENJrIhEzopw828B8nYR2y /Bq7E40/MYPd1WbSuMXOvrTR5LHNu4Nyf/Kw+gB/7gkQzftmk1CpVYV9eJwBzY35J7 xEUZGCUu5mNhYCftzglLku0Qv8rqkxUO3hFH3lqEzc07PY3VLfg/jHqko9fsaF3gZi n60G9Q65Bc1Acq6pmo9DI1XvzmOdhIgAhp4s7D3JCsTjOCRoMf5DFu4Adbt8rs1jkb JUYwE//FlD7965G/pbx4+GWSA9D9XyXOvGaEDUVAyM3lQkuP2ld5EEhAtkvcn/6u8N p2QNPiNTkbN1g== Message-ID: <43b01013-e78b-417e-b169-91909c7309b1@kernel.org> Date: Mon, 4 Dec 2023 11:36:30 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH bpf-next v3 2/3] net: stmmac: add Launch Time support to XDP ZC Content-Language: en-US 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 , 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 References: <20231203165129.1740512-1-yoong.siang.song@intel.com> <20231203165129.1740512-3-yoong.siang.song@intel.com> From: Jesper Dangaard Brouer In-Reply-To: <20231203165129.1740512-3-yoong.siang.song@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 02:36:48 -0800 (PST) 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. [1] https://github.com/xdp-project/xdp-project/blob/master/areas/tsn/code01_follow_qdisc_TSN_offload.org#setup-code-driver-igb This stmmac driver and Intel Tiger Lake CPU must also have some limit on how long into the future it will/can schedule packets? People from xdp-hints list must make their voice hear if they want i210 and igb driver support, because it have even-more hardware limitations, see [1] (E.g. only TX queue 0 and 1 supports LaunchTime). BUT I know some have this hardware in production and might be motivated to get a functioning driver with this feature? --Jesper