Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2255431rdb; Sun, 3 Dec 2023 08:52:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IGPh9rLwXX72Df5q2DIgI6mM8z8g3IJYlzI+otmZmDIwjiP0osbNwpwlnI1TauGRkbylxLD X-Received: by 2002:aa7:88c6:0:b0:6ce:4b97:b894 with SMTP id k6-20020aa788c6000000b006ce4b97b894mr1035936pff.17.1701622329203; Sun, 03 Dec 2023 08:52:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701622329; cv=none; d=google.com; s=arc-20160816; b=xtNiYfYdr2Ef890lYBilw8ajkS/PeCvazJdcJYP7b8Ex+Jy2CeIGVCoGHmlZmvf5YS dIK73LB/8bU3FRx9i3n36ES59pzMJ4NNZfN2zQp8LZOZqj+BvlvLd5NDXtTK//QMRfMn QdSvrpYPU415xfHWX4hd5y24vqSt2wenx1e1EbzC62fgshkzPUKte4a6Gm+V4q5NKLg5 d9jrn7652lhKP4w/A4umrNQD4SO6sdM42S8IVtxApqJgwWFl9QO8kM7HiqBWoUqzMQqX 4gqaVjml2n6PUsrnIWT4ca3dix+gOTCsGTfQr5hprEIjMCDAG1SdI3jHoqKFLLULOjUa jRGw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=q9PVTb6IoWIc8aC/899poc9+t4nxGFyq/+gG3gxKzL8=; fh=YTkuaskr0lgfdZdN3raKefSjBLb6uuCywA/U9wJpjjU=; b=s4niglOdPSjUcjkpBxutNIO5uWVPRyRYrlQe75ELE5PoBhZyMdSRK4cqgvE2Ng+D9I v2O2nHR66FS7Snj2++u6GgWX3DELMF/BghFrLEuDjXJm8LNPruSYXaYCYRZcZ7pE+eRp 4AYhF9xguy/U/UrJSCDUD3qFiYjM3baTLXuqgFcnAh8BGcZLMl45MhkYIEqaTMgpAntA XErwFqvPIZwmwiL9H+n1dMDiemk4YMsLYnipbngLNjZDBBrcsbBmPbWnvjf9m+Amctap +y2LLU2Pe3NivcjY5Lvwe0tGth4P2++kp+SN+XkGgLWJIWtPF39Z1C8WkwhK7omq9B1Y pnNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kUG7p1KE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id d3-20020a63ed03000000b005bd04d27b69si6417095pgi.725.2023.12.03.08.52.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 08:52:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kUG7p1KE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 967248062284; Sun, 3 Dec 2023 08:52:06 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229744AbjLCQvu (ORCPT + 99 others); Sun, 3 Dec 2023 11:51:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjLCQvs (ORCPT ); Sun, 3 Dec 2023 11:51:48 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEA96E5; Sun, 3 Dec 2023 08:51:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701622315; x=1733158315; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=lTyXJMsSPVluiy97P4qSM7nDpEehwOMAB+SjdzyXSkI=; b=kUG7p1KEz2nSZlXDuzwckmoVWIuFxDYmMgWSjtrK9xM7332MBNrXE8p8 nX0Jr3ciCKIkBqyaBkt5Ts3YKvTN4AdtTdV1MjYfgKRjlbOnFP8liyqCE sP7f5Hb01KgNbit1DhW5ENJO8eGRvHGj6Y8kBGDBlPtijfvx7HDAlkDz9 8Z7NJANubRWyOoZqN2G3lfOyh3Cq6mr5bBECIHTHV0/XotOFdJgWxDbWN s3ciFVOdq+/rqeGRUYmb9azqiobDiGScik8fXkdJT4TfsmXiQWVPKDK+p bD0X3MyxXck9XXgnPyorqfA5ATjC+ztn5TipZel/LjTNb6/OR/tMOaHJ5 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10913"; a="706802" X-IronPort-AV: E=Sophos;i="6.04,247,1695711600"; d="scan'208";a="706802" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2023 08:51:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10913"; a="799345384" X-IronPort-AV: E=Sophos;i="6.04,247,1695711600"; d="scan'208";a="799345384" Received: from p12ill20yoongsia.png.intel.com ([10.88.227.28]) by orsmga008.jf.intel.com with ESMTP; 03 Dec 2023 08:51:44 -0800 From: Song Yoong Siang To: "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 Subject: [PATCH bpf-next v3 0/3] xsk: TX metadata Launch Time support Date: Mon, 4 Dec 2023 00:51:26 +0800 Message-Id: <20231203165129.1740512-1-yoong.siang.song@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,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 howler.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 (howler.vger.email [0.0.0.0]); Sun, 03 Dec 2023 08:52:06 -0800 (PST) This series expands XDP TX metadata framework to include ETF HW offload. Changes since v1: (Willem) - rename Time-Based Scheduling (TBS) to Earliest TxTime First (ETF) - rename launch-time to txtime Changes since v2: (Jesper & Willem) - rename to use launch time - change the default launch time in xdp_hw_metadata apps from 1s to 0.1s because some NICs do not support such a large future time. v1: https://patchwork.kernel.org/project/netdevbpf/cover/20231130162028.852006-1-yoong.siang.song@intel.com/ v2: https://patchwork.kernel.org/project/netdevbpf/cover/20231201062421.1074768-1-yoong.siang.song@intel.com/ Song Yoong Siang (3): xsk: add Launch Time HW offload to XDP Tx metadata net: stmmac: add Launch Time support to XDP ZC selftests/bpf: add Launch Time request to xdp_hw_metadata Documentation/netlink/specs/netdev.yaml | 4 ++++ Documentation/networking/xsk-tx-metadata.rst | 4 ++++ drivers/net/ethernet/stmicro/stmmac/stmmac.h | 2 ++ .../net/ethernet/stmicro/stmmac/stmmac_main.c | 13 +++++++++++++ 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 + tools/testing/selftests/bpf/xdp_hw_metadata.c | 19 ++++++++++++++++++- 14 files changed, 82 insertions(+), 1 deletion(-) -- 2.34.1