From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 13D9AC02192 for ; Wed, 5 Feb 2025 10:05:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id CF1C660FA9; Wed, 5 Feb 2025 10:05:38 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id QCAr-jcGaYxU; Wed, 5 Feb 2025 10:05:38 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org E97836109F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1738749938; bh=jDFyUxRhNp/jKYB4Etkvk2Pc8c1Tm5NPjMbKVb1ch78=; h=From:To:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=UwD6Qmm1eB41fcFQw+SzEdze2dTel/okeLm9K7Ua9JJVrlfqGDxQfXZXHPU38/Hhh tPM8JT0+aWE0J+nH7Uc0pITx5wyZDFiqack/p1gLxbgjXaNP5em/4hHRssD2Y+8Nj5 36pVD9QL9k/Q+Ogeed/9lpfGzL7eQbSiXHma8XbY7xwzuxooxxHe+4AyIOz9+qIfWT fyLE0flQ/b4hud06c6639Xf0QjrOq8B2b9XzR8izEl1FJxqA42COtFXXT+7CKeT/To M7obmQlC8eEibbUjt+7DgT0MneU+pgQfHKhnkPaWgVdd6iAA2Y3mI2dDFdnLYdGF8D 2EEiQi9lISV7A== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp3.osuosl.org (Postfix) with ESMTP id E97836109F; Wed, 5 Feb 2025 10:05:37 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists1.osuosl.org (Postfix) with ESMTP id D424712A for ; Wed, 5 Feb 2025 10:05:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id B836980CA1 for ; Wed, 5 Feb 2025 10:05:36 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 4zaPy-VdBxb1 for ; Wed, 5 Feb 2025 10:05:35 +0000 (UTC) Received-SPF: None (mailfrom) identity=mailfrom; client-ip=198.175.65.21; helo=mgamail.intel.com; envelope-from=faizal.abdul.rahim@linux.intel.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp1.osuosl.org 9A5FA80C98 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 9A5FA80C98 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by smtp1.osuosl.org (Postfix) with ESMTPS id 9A5FA80C98 for ; Wed, 5 Feb 2025 10:05:35 +0000 (UTC) X-CSE-ConnectionGUID: LdC3F0baQdWd8Dcf9KVl2A== X-CSE-MsgGUID: auax5G8bRwyWeDuc9Atktg== X-IronPort-AV: E=McAfee;i="6700,10204,11336"; a="39204636" X-IronPort-AV: E=Sophos;i="6.13,261,1732608000"; d="scan'208";a="39204636" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2025 02:05:35 -0800 X-CSE-ConnectionGUID: RaRy/qV4SDObdLKqG2hLRg== X-CSE-MsgGUID: 86KMttjBS/m9E6JVm5lvUw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208";a="111297683" Received: from mohdfai2-ilbpg12-1.png.intel.com ([10.88.227.73]) by orviesa007.jf.intel.com with ESMTP; 05 Feb 2025 02:05:27 -0800 From: Faizal Rahim To: Tony Nguyen , Przemek Kitszel , Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Alexandre Torgue , Simon Horman , Russell King , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Russell King , Furong Xu <0x1207@gmail.com>, Vladimir Oltean , Serge Semin , Xiaolei Wang , Suraj Jaiswal , Kory Maincent , Petr Tesarik , Faizal Rahim , Choong Yong Liang , Kunihiko Hayashi , Vinicius Costa Gomes , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, bpf@vger.kernel.org Date: Wed, 5 Feb 2025 05:05:15 -0500 Message-Id: <20250205100524.1138523-1-faizal.abdul.rahim@linux.intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1738749936; x=1770285936; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=oaE6MvXosBwRaUfGg7gC0cYDCnNk9prSVztT1QQcdj0=; b=mX7Cpudp7SykbfHBzcmNdQ9SWrcfMqHdEEJsarw09ikWZc0i8xU4iq3w Cbbntx+t8YlQ+wRkVg8p2UFsFKZzSxgAAvP+IMiK4Fg3HyBAtv5J+odlB QUP5USRruHbH9KQwmFYn2aTzHYVafj1okpWXaNSKmA1tTwLp0v+vhAMLS cSGgfdjtYVuz7jVHblLGIflNHDxtYSPc2Iv0aXNDIXC93KLpzjN7JTV9t uLDHPrh39o9Nlxjb4MANvIG5tROY+BXhmQbq2zNXi2qaOSFxRV9S3vRjs wpauRT3e9Q9l7gm9BTg0uX4Q8PY8rigzuNdni5eg+GDJx/qQq1afQXwOw A==; X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dmarc=none (p=none dis=none) header.from=linux.intel.com X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=mX7Cpudp Subject: [Intel-wired-lan] [PATCH iwl-next v2 0/9] igc: Add support for Frame Preemption feature in IGC X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" Introduces support for the FPE feature in the IGC driver. The patches aligns with the upstream FPE API: https://patchwork.kernel.org/project/netdevbpf/cover/20230220122343.1156614-1-vladimir.oltean@nxp.com/ https://patchwork.kernel.org/project/netdevbpf/cover/20230119122705.73054-1-vladimir.oltean@nxp.com/ It builds upon earlier work: https://patchwork.kernel.org/project/netdevbpf/cover/20220520011538.1098888-1-vinicius.gomes@intel.com/ The patch series adds the following functionalities to the IGC driver: a) Configure FPE using `ethtool --set-mm`. b) Display FPE settings via `ethtool --show-mm`. c) View FPE statistics using `ethtool --include-statistics --show-mm'. e) Enable preemptible/express queue with `fp`: tc qdisc add ... root taprio \ fp E E P P Change Log: v1 -> v2: - Extract the stmmac verification logic into a common library (Vladimir) - igc to use common library for verification (Vladimir) - Fix syntax for kernel-doc to use "Return:" (Vladimir) - Use FIELD_GET instead of manual bit masking (Vladimir) - Don't assign 0 to statistics counter in igc_ethtool_get_mm_stats() (Vladimir) - Use pmac-enabled as a condition to allow MAC address value 0 (Vladimir) - Define macro register value in increasing value order (Vladimir) - Fix tx-min-frag-size handling for igc (Vladimir) - Handle link state changes with verification in igc (Vladimir) - Add static key for fast path code (Vladimir) - rx_min_frag_size get from constant (Vladimir) v1: https://patchwork.kernel.org/project/netdevbpf/cover/20241216064720.931522-1-faizal.abdul.rahim@linux.intel.com/ Faizal Rahim (8): igc: Rename xdp_get_tx_ring() for non-xdp usage igc: Optimize the TX packet buffer utilization igc: Set the RX packet buffer size for TSN mode igc: Add support for frame preemption verification igc: Add support to set tx-min-frag-size igc: Add support for preemptible traffic class in taprio igc: Add support to get MAC Merge data via ethtool igc: Add support to get frame preemption statistics via ethtool Vladimir Oltean (1): net: ethtool: mm: extract stmmac verification logic into common library drivers/net/ethernet/intel/igc/igc.h | 17 +- drivers/net/ethernet/intel/igc/igc_defines.h | 19 +- drivers/net/ethernet/intel/igc/igc_ethtool.c | 74 ++++++ drivers/net/ethernet/intel/igc/igc_main.c | 96 +++++++- drivers/net/ethernet/intel/igc/igc_regs.h | 16 ++ drivers/net/ethernet/intel/igc/igc_tsn.c | 210 +++++++++++++++- drivers/net/ethernet/intel/igc/igc_tsn.h | 34 +++ drivers/net/ethernet/stmicro/stmmac/stmmac.h | 16 +- .../ethernet/stmicro/stmmac/stmmac_ethtool.c | 41 +--- .../net/ethernet/stmicro/stmmac/stmmac_fpe.c | 174 +++----------- .../net/ethernet/stmicro/stmmac/stmmac_fpe.h | 5 - .../net/ethernet/stmicro/stmmac/stmmac_main.c | 8 +- include/linux/ethtool.h | 62 +++++ net/ethtool/mm.c | 225 +++++++++++++++++- 14 files changed, 780 insertions(+), 217 deletions(-) -- 2.34.1