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 smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (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 48486CCF9E3 for ; Fri, 7 Nov 2025 20:43:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id B5E5240554; Fri, 7 Nov 2025 20:43:55 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id L4TMCJNLZ0xR; Fri, 7 Nov 2025 20:43:54 +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 smtp4.osuosl.org D69AA40544 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1762548233; bh=hiMcVVi9rEIv/j5eQ05ENk15pvqtAPzV3c3AT9Vw3fI=; h=From:To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=L6JUURM8cXnDFn/06V0QqI0US7WHbmxFqQMPeHs3EfUq7KTpa6jSvrt7iHEL2+Lry tyhURe24tLv/K0vkiWEjEPV3tYlG9yCp1NqZKE1L1qBC6YM3J4muOkwmvMk8DrzE6b Z9Cenrqw4W/SWoaOscyccErxI1L58vDRBqbOCNvJafTXca6PGqOdGxUvGvhsFHV6wi vZxHSHALf+M4Kk1bmNlkzuUHnvZKREhf+IzUK7d+VGEgZPag2nV4BQ6zGMUiRUwSJb U4WdC1simw9uvsXY1Jhve4dsX0epAw8U/h8m0p0u+6bhsr3JKUizv4fuseB5cVJ7+3 PsTpnzC2/zU/g== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id D69AA40544; Fri, 7 Nov 2025 20:43:53 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) by lists1.osuosl.org (Postfix) with ESMTP id C32A91CD for ; Fri, 7 Nov 2025 20:43:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id A996D6066F for ; Fri, 7 Nov 2025 20:43:51 +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 ZxmPlFaPPA1e for ; Fri, 7 Nov 2025 20:43:50 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::b131; helo=mail-yx1-xb131.google.com; envelope-from=daniel.zahka@gmail.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp3.osuosl.org 3D6D460678 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 3D6D460678 Received: from mail-yx1-xb131.google.com (mail-yx1-xb131.google.com [IPv6:2607:f8b0:4864:20::b131]) by smtp3.osuosl.org (Postfix) with ESMTPS id 3D6D460678 for ; Fri, 7 Nov 2025 20:43:50 +0000 (UTC) Received: by mail-yx1-xb131.google.com with SMTP id 956f58d0204a3-640c9c85255so1247345d50.3 for ; Fri, 07 Nov 2025 12:43:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762548229; x=1763153029; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=hiMcVVi9rEIv/j5eQ05EN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ACDw+1DP9+oObM0= X-Google-Smtp-Source: AGHT+IFI8VG0P0n7qrm0zcp7SSN4eaMEgytqB19PsfLf5CxPVrAGvs9YLrEVD7m3nAlBeq12jFghtw== X-Received: by 2002:a05:690e:160f:b0:63f:a4d7:b523 with SMTP id 956f58d0204a3-640d45527c6mr354482d50.28.1762548228918; Fri, 07 Nov 2025 12:43:48 -0800 (PST) Received: from localhost ([2a03:2880:25ff:b::]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-640b5d81427sm2087281d50.18.2025.11.07.12.43.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Nov 2025 12:43:48 -0800 (PST) From: Daniel Zahka To: Jiri Pirko , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Jonathan Corbet , Srujana Challa , Bharat Bhushan , Herbert Xu , Brett Creeley , Andrew Lunn , Michael Chan , Pavan Chebbi , Tony Nguyen , Przemek Kitszel , Sunil Goutham , Linu Cherian , Geetha sowjanya , Jerin Jacob , hariprasad , Subbaraya Sundeep , Tariq Toukan , Saeed Mahameed , Leon Romanovsky , Mark Bloch , Ido Schimmel , Petr Machata , Manish Chopra , Maxime Coquelin , Alexandre Torgue , Siddharth Vadapalli , Roger Quadros , Loic Poulain , Sergey Ryazanov , Johannes Berg , Vladimir Oltean , Michal Swiatkowski , Aleksandr Loktionov , Dave Ertman , Vlad Dumitrescu , "Russell King (Oracle)" , Alexander Sverdlin , Lorenzo Bianconi Cc: netdev@vger.kernel.org, linux-doc@vger.kernel.org, intel-wired-lan@lists.osuosl.org, linux-rdma@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org Date: Fri, 7 Nov 2025 12:43:44 -0800 Message-ID: <20251107204347.4060542-1-daniel.zahka@gmail.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762548229; x=1763153029; darn=lists.osuosl.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=hiMcVVi9rEIv/j5eQ05ENk15pvqtAPzV3c3AT9Vw3fI=; b=EIQE59s50UW2v13OKoNK/4ThyVOGoTzS+5a/8sSwE7C57dFtZ6SpqBTTdubQ+XSjhq vP/nApaRQZ+enGzNeRYBHU6sS1t/093SL+AoX2mOOm+iutdHEPezeGDz72vVaXE3tpFK daV4qTUZChlBwhPLmDlz9ibA4y6/qwJEEGSlezIE/ahbGTZqp3c+EK4NPmr3y95lIOe7 hqdWW+/xrAwxuJwkhskNfjGShCsKlXOvirvXCrfrJJdxYYZPf/4uuUqjGTzDIfb2ArZ8 j4XQvP9c6cIV/FBnLDs94KFVLJgKXwS9NFP6TZhCcEGU8ooqiMpkEL0Fb0N6576sNpiZ tJHQ== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=none dis=none) header.from=gmail.com X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=EIQE59s5 Subject: [Intel-wired-lan] [PATCH net-next v3 0/2] devlink: net/mlx5: implement swp_l4_csum_mode via devlink params 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" This series contains two patches. The first is a pure refactor that passes through the extack to devlink_param::get() implementations. The second introduces a permanent devlink param to the mlx5 driver for controlling tx csum behavior. Enabling extack for devlink_param::get() allows drivers to provide more information in cases when reading parameters from hardware can result in errors or unexpected values. The mlx5 swp_l4_csum_mode devlink param is necessary for initializing PSP on CX7 NICs. CHANGES: v3: - fix warnings about undocumented param in intel ice driver v2: https://lore.kernel.org/netdev/20251103194554.3203178-1-daniel.zahka@gmail.com/ - fix indentation issue in new mlx5.rst entry - use extack in mlx5_nv_param_devlink_swp_l4_csum_mode_get() - introduce extack patch. v1: https://lore.kernel.org/netdev/20251022190932.1073898-1-daniel.zahka@gmail.com/ Daniel Zahka (2): devlink: pass extack through to devlink_param::get() net/mlx5: implement swp_l4_csum_mode via devlink params Documentation/networking/devlink/mlx5.rst | 9 + .../marvell/octeontx2/otx2_cpt_devlink.c | 6 +- drivers/net/ethernet/amd/pds_core/core.h | 3 +- drivers/net/ethernet/amd/pds_core/devlink.c | 3 +- .../net/ethernet/broadcom/bnxt/bnxt_devlink.c | 6 +- .../net/ethernet/intel/ice/devlink/devlink.c | 14 +- .../marvell/octeontx2/af/rvu_devlink.c | 15 +- .../marvell/octeontx2/nic/otx2_devlink.c | 6 +- drivers/net/ethernet/mellanox/mlx4/main.c | 6 +- .../net/ethernet/mellanox/mlx5/core/devlink.h | 3 +- .../net/ethernet/mellanox/mlx5/core/eswitch.c | 3 +- .../mellanox/mlx5/core/eswitch_offloads.c | 3 +- .../net/ethernet/mellanox/mlx5/core/fs_core.c | 3 +- .../ethernet/mellanox/mlx5/core/fw_reset.c | 3 +- .../mellanox/mlx5/core/lib/nv_param.c | 170 +++++++++++++++++- .../mellanox/mlxsw/spectrum_acl_tcam.c | 3 +- .../ethernet/netronome/nfp/devlink_param.c | 3 +- drivers/net/ethernet/qlogic/qed/qed_devlink.c | 3 +- .../net/ethernet/stmicro/stmmac/stmmac_main.c | 3 +- drivers/net/ethernet/ti/am65-cpsw-nuss.c | 3 +- drivers/net/ethernet/ti/cpsw_new.c | 6 +- drivers/net/wwan/iosm/iosm_ipc_devlink.c | 3 +- include/net/devlink.h | 3 +- include/net/dsa.h | 3 +- net/devlink/param.c | 19 +- net/dsa/devlink.c | 3 +- 26 files changed, 259 insertions(+), 46 deletions(-) -- 2.47.3