Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1095721rdb; Fri, 1 Dec 2023 07:03:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IHTQ4AX9jcgLg0ch2UxDT+PrTPvYlfOq+1BnWlbgjncIxhyPGMm/tjwr6SwSDG+PuSAf+n/ X-Received: by 2002:a05:6830:2905:b0:6d3:efe:f2a5 with SMTP id z5-20020a056830290500b006d30efef2a5mr3706616otu.9.1701442979858; Fri, 01 Dec 2023 07:02:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701442979; cv=none; d=google.com; s=arc-20160816; b=YahnJwXZb+x4aJ/n6NoJEWyvdU90g1MFES0UyT+G8rw8VVQVcC0xlCpjHZXE1m7Fvt 3tFkXvoLQzh7CHCUjKWvRpx3QJD6iB11dvfbQOcY0e4yYMJF/8TY8fX87HslPwk0lDmn X6938Z1giiHB1C+7L2jbcwH4Guoaeq19W/+NZUTHUWEwtRysgE5DcOYnTN3T/KYkL8KL rp3kbBirC4brBbNWwZRXaOKoA6/RhRs85BKfczxnTn887lTRTcpkE6sTBpc4wkYFtiqw o6ltTX/7+B08F5b4wI47Q9LO5gqo5rQczkBrGDiK1D8JVJaNxwZlkEr8uZEzqiPqrhb4 baXA== 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=NvIwdV2RWSdm4E0WhIN30+LuWjilRUF+8F4P4MmHRQs=; fh=ehSVmZpe8q5dLt0ylEc4tp7nlRfYehL2qdVeH7nIojQ=; b=oPBU8lHslDGbXaVhGcD3c8UyL9NQQhE10DEu1Y3JBeQe4XMOedQIXc2ec3tfIJs0BG 032o0lZrjNAh8elrsPDY0/6OwYsausNsInQEdiIs8dYgocOTc/MJetSouScBJxIdSaSj 97Zbso+jK6vnXCBPlC8w4+7qxmg/LHgxZBKSjR35oWJoH+6fBzlornHUB9CqO6GtDlKH X22adWpxMgfXzCEN8sjh2Ka9oKhP0vd8a7UJ2oHK/ywxz+fATmMo16LBQX9oaWi+cCQU GjlmQhnWt/Hwc2PZsVq6T7kpv66IDBYpCzVQBtyNVug1+j9GEbzUTMohB9atMAAID3eT o8dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZnzIEJkg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id j1-20020a056830270100b006ce14f20705si1417954otu.64.2023.12.01.07.02.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 07:02:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZnzIEJkg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 6D84A825F111; Fri, 1 Dec 2023 07:02:40 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379283AbjLAPC0 (ORCPT + 99 others); Fri, 1 Dec 2023 10:02:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379270AbjLAPCY (ORCPT ); Fri, 1 Dec 2023 10:02:24 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DCB410F9 for ; Fri, 1 Dec 2023 07:02:31 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40DD3C433C9; Fri, 1 Dec 2023 15:02:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701442950; bh=HCKgkvZM3p9a1PhMU+0ZdI63NNj7rU/pKhx/Px4fVKY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ZnzIEJkgcQPJ9EhwbA+QMxmLvo7Vb5mFoKAoNXH6yHgW+nms/wyXGXewhlB2+aaMv ggRc0WCfAnmF4J1gGXJNsVm00we+Ush4nAHaDY6/aboqP1YpJAeXkD97yaQm8LF8DA kcLJiTetD9+tqyUXfvHMuhZjY2ZJFxqDcxvpvNstZflcgXy8ZgkfwU667pQAlZks+n JLx/dRpoe81S7cz16xFnm3ay1eGU674lCQdb1zXCGrUTHqAKRJwjbY6ZS9z8d7fK1o 4iwBWtKKzMnCl2rC99z3RVqUB/XbA4ZBM/7CWSyEJ5gV7SbzjnjMTZ4SljJxZUkoLX rN/ROb0OGkmhg== Message-ID: <5a660c0f-d3ed-47a2-b9be-098a224b8a12@kernel.org> Date: Fri, 1 Dec 2023 16:02:22 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH bpf-next v2 2/3] net: stmmac: Add txtime 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: <20231201062421.1074768-1-yoong.siang.song@intel.com> <20231201062421.1074768-3-yoong.siang.song@intel.com> From: Jesper Dangaard Brouer In-Reply-To: <20231201062421.1074768-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 groat.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 (groat.vger.email [0.0.0.0]); Fri, 01 Dec 2023 07:02:40 -0800 (PST) On 12/1/23 07:24, Song Yoong Siang wrote: > This patch enables txtime support to XDP zero copy via XDP Tx > metadata framework. > > Signed-off-by: Song Yoong Siang > --- > drivers/net/ethernet/stmicro/stmmac/stmmac.h | 2 ++ > drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 13 +++++++++++++ > 2 files changed, 15 insertions(+) I think we need to see other drivers using this new feature to evaluate if API is sane. I suggest implementing this for igc driver (chip i225) and also for igb (i210 chip) that both support this kind of LaunchTime feature in HW. The API and stmmac driver takes a u64 as time. I'm wondering how this applies to i210 that[1] have 25-bit for LaunchTime (with 32 nanosec granularity) limiting LaunchTime max 0.5 second into the future. And i225 that [1] have 30-bit max 1 second into the future. [1] https://github.com/xdp-project/xdp-project/blob/master/areas/tsn/code01_follow_qdisc_TSN_offload.org