Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2650299rdb; Mon, 4 Dec 2023 03:55:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IF5FvP4S2V9h7Ezs9j3TEXfrVjdcn/OFzrob6bQxasut7+myhfk0Z4rAu0LkH7uLUnQo3VV X-Received: by 2002:a05:6871:7283:b0:1f9:9ad0:cd3d with SMTP id mm3-20020a056871728300b001f99ad0cd3dmr7014254oac.4.1701690955910; Mon, 04 Dec 2023 03:55:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701690955; cv=none; d=google.com; s=arc-20160816; b=TQRp+iB4hMtJcmA2MQ2W6zUS6cTNQv1nxVM5l4rUYOFyhkfNMvQ5E5yK98zqcnSxD2 bjpeRztXp6Rf/o5mFf3EF7CDuhCXBSELJoE6uWRaZmA2dTJfB0Ijn3rbEQp06qeTEL3N d3AG2Yqb+jTGrRKZzgy3LdwvXUgOM2JUh4oHxPtWuUHIahTn9itpf22EIfcKBYEkk1O2 hbvNdWnDOMaAmHQN2sBUjm27G5ibSbVltv8istVvW97aM/hSlY/8PnbEMVc5QYJQ2puT 1UtcH4xdi5a5DC5NxN5CdjbswAYxOn9kDLI9aARZ1ygd+lGf3RH/c8UbLPalVDjoEr++ xsVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:mime-version :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=DeAVJVh1/dmfA7n8KCr9e65gohS5SL4YYZz1yRamMmo=; fh=/PZppwOx3dmkYzjSTqPU5Mol6ET1n0YaxlNXKqQehPI=; b=SZckDQQCH3dezRyzfeGmUbPdZe4zufxeVvmtDKrAxadj59vi2htPenx1mfzH5tm4jQ bal6mh5dIi+kNeJJE76aJ/2QBCVcYLHpzvwLgVzvh2abl38U4geyLgl3wpwQ1v5IX7cP xhaMFeDM/w83CG29JvGHntqmelqdtB7skDgwAQkG63osjfZz2wlkZQIh6etFdG8CwK+J KIq1ZVbxdbYlgY5ZEjUbbUQuE5YKzMNclEG6J1/l3H7jm30nZ81i4u0EAt/SGkpIKZhP og99v0dF4W+tdQpEN4jN6mdvAHJQSXD7V6s0VaE/2RQEDh7hjNVv0Hg9RLkl4SkFcCOC rc0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=ph2h0h5j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id z6-20020a63d006000000b005c212ebb55csi7904547pgf.691.2023.12.04.03.55.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 03:55:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=ph2h0h5j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 5DE0C807BEF4; Mon, 4 Dec 2023 03:55:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230012AbjLDLzA (ORCPT + 99 others); Mon, 4 Dec 2023 06:55:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229670AbjLDLy6 (ORCPT ); Mon, 4 Dec 2023 06:54:58 -0500 Received: from mta-64-225.siemens.flowmailer.net (mta-64-225.siemens.flowmailer.net [185.136.64.225]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8087E5 for ; Mon, 4 Dec 2023 03:55:02 -0800 (PST) Received: by mta-64-225.siemens.flowmailer.net with ESMTPSA id 202312041154593b3f8186a089fb738a for ; Mon, 04 Dec 2023 12:55:00 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=florian.bezdeka@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=DeAVJVh1/dmfA7n8KCr9e65gohS5SL4YYZz1yRamMmo=; b=ph2h0h5jvGxuWKVsNS0TMd+fNjmiTxwfMkny+Ro6YD2+HKnOLi/CClvCRs5tLNpmSk0jh2 b2Xas1pUz9iB6dBJVNhJnkJ3JLnWbdX0OqFTVBA38AMksw93F1/n2DVd92g1cldYwMwE1iYt KYrV+sFm2RBFyevOjoDdSCwH2EABY=; Message-ID: <8602c88c98fd722db8e164a1520c56aebfa64db7.camel@siemens.com> Subject: Re: [xdp-hints] Re: [PATCH bpf-next v3 2/3] net: stmmac: add Launch Time support to XDP ZC From: Florian Bezdeka 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 Date: Mon, 04 Dec 2023 12:54:56 +0100 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> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-68982:519-21489:flowmailer X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 04 Dec 2023 03:55:34 -0800 (PST) On Mon, 2023-12-04 at 11:36 +0100, 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 z= ero > > copy via XDP Tx metadata framework. > >=20 > > Signed-off-by: Song Yoong Siang > > --- > > drivers/net/ethernet/stmicro/stmmac/stmmac.h | 2 ++ >=20 > As requested before, I think we need to see another driver implementing= =20 > this. >=20 > I propose driver igc and chip i225. igc support would be really nice and highly appreciated. There are a lot of tests running here with that chip (i225/i226) / driver (igc) combination. Let me know if we can support somehow, testing included. >=20 > 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=20 > section to Documentation/networking/xsk-tx-metadata.rst per driver that= =20 > mentions/documents these different hardware limitations. It is natural= =20 > that different types of hardware have limitations. This is a close-to= =20 > hardware-level abstraction/API, and IMHO as long as we document the=20 > limitations we can expose this API without too many limitations for more= =20 > capable hardware. >=20 > [1]=20 > https://github.com/xdp-project/xdp-project/blob/master/areas/tsn/code01_f= ollow_qdisc_TSN_offload.org#setup-code-driver-igb >=20 > This stmmac driver and Intel Tiger Lake CPU must also have some limit on= =20 > how long into the future it will/can schedule packets? >=20 >=20 > People from xdp-hints list must make their voice hear if they want i210= =20 > and igb driver support, because it have even-more hardware limitations,= =20 > see [1] (E.g. only TX queue 0 and 1 supports LaunchTime). BUT I know=20 > some have this hardware in production and might be motivated to get a=20 > functioning driver with this feature? i210 support would be nice, that would allow us to compare some test setups with different NICs. In addition it would simplify some test setups. For now, IMHO igc is more important. >=20 > --Jesper