From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f226.google.com (mail-pl1-f226.google.com [209.85.214.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A578E392C2D for ; Thu, 26 Feb 2026 08:33:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.226 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772094837; cv=none; b=fOIxH7tNAJAwVBqcF6NyWRK0c9EXeBZePCMs2gNH/+fCxGQnFBPzCWVbPtnrhtKpoX/F1yQ7wy776DERRN06NY+Z2ncmdhLR8cDC0K0qlO+TZPz2zWuWx3f2FHbJspgME39AXAyCVuDOzd1Wb9eNXlcVVajD4hxu/GUz8/eTwiQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772094837; c=relaxed/simple; bh=+WUzpV3PbPElxR0d/PLjyo4kLJ+uKzOD75MwINZpAmg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Gbn/rSKuO5cwolzTby2xIE3C74u6DpY/Y3RS1ox0EZeonZq1ABIEDBgecOzyCBeCbe0I5NbOpaHeAEClxzQbw+fJ3Vy3D6teKIQdRoSCqXshAz3MQnISZHMO/T111im5uWj9a+2i8IYutPXMoT1n8rMSzSlIUwDcj0qodK0Quxc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=HEdFl7Sa; arc=none smtp.client-ip=209.85.214.226 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="HEdFl7Sa" Received: by mail-pl1-f226.google.com with SMTP id d9443c01a7336-2a9296b3926so4527765ad.1 for ; Thu, 26 Feb 2026 00:33:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772094834; x=1772699634; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8aUFXob2xzBSFhsX/0qnIN28cjguocYoYmX9AhWUVHs=; b=Qlotyy7boBYMZpKi80kpBSA+qi3F1NtVP9AUOIT6y7r8QEMFaofQDwFwCMoDW8aLAN 5/DA2hZi1U4HtoBS0fwylhrPWZvR7Id928TmZgxoS+y1ExvlbNwd3wS60vHTvLJcm35a QodMGFiYr4TsF0GcOf6qI1j/m+OwmW5QkiHLLG8Gp3dYPC2MPdSeEvM+xGBX0V53KjHj 8OUiqkGMyKbZSioFzz0fpH/MDNgLWurIHLDOTd7zIlF457VPV5p8ZvROF6+mdQppKLDf uVXfm7KXAnYqfQCWysvR3oCroD5jS14RdL0OaKMgg3zkbBFVmaRoSUPnISr/1eXLsBGd kJRA== X-Gm-Message-State: AOJu0Yz8QaM7TtefJLp/fGbHTHzesNg3cBPeC9XAD9F3fLlw6IxpFycG pvX4cBv+ojf8x+YPEu8wzaRNxF32NYidFat1vuh1bsTXNn6waj+ix4xjxoUyTw0RBIhBJmod9xn 7Iu4ySjbokaiIim10v0ClrNPan6VukWn3Q1csfm8GeTcjc+ftG406JSwZPEcefh8ns5noLmDemd iUc8cCnKAzXs4CDs+lsrABypBGCeSTJNcaAlnJcugV7KwXAqVD3GMCM6Zgq0jm4rKiR1XDkuD4A VgLbK+o2iP8C1C+IrYvbg== X-Gm-Gg: ATEYQzyufuLfjmTE7wJTLW7FtPJ/uXeSROYTRr18p1e/ytjbLlNd+sJLKM7aiIymTqI gTxA83Pl3q9s3EiqVHIYgx+ObSCCV77eu16QFed6hLf+pSRQPF6iw/wE4j+puK4VbXh0c0qUBwu 5yBa1yI0JCE4MSt1EoBJuu4m1rdpEb5V4ZJg4cJchAl5jE/V3xI+N/jWCoGNb+hdLyq0P4Mr7M8 WqJj5xhxdg7zyJhyr99Z1NRajpG/Ti1XIdXV9W+B4y4/EPnUEDUXZuDbYXW58mq049HxY2EMXYn EhY8I0HZQ5DXvkazDON8MbumuVXvxKeNLfSmTgWNQhwP5ptWnmsG3MsvkscnzEj4qOzuwkw/55w /rsvqU5q3ggoSu39fM+4shVZPC5pueAICRvdj5pdx+Dh+ckerWuQppuR7jb1Gb/oAFVbUcdFl4C 9AEHKqv/u/FmEl2PXpEZ48H/bCc5rD5wxE8YyuNhyfbRtJiRaRRsdlemc3j20= X-Received: by 2002:a17:902:ef49:b0:2a0:d05c:7de3 with SMTP id d9443c01a7336-2ae0317786dmr21079745ad.15.1772094833859; Thu, 26 Feb 2026 00:33:53 -0800 (PST) Received: from smtp-us-east1-p01-i01-si01.dlp.protect.broadcom.com (address-144-49-247-103.dlp.protect.broadcom.com. [144.49.247.103]) by smtp-relay.gmail.com with ESMTPS id d9443c01a7336-2adfb5dbabbsm1781705ad.26.2026.02.26.00.33.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Feb 2026 00:33:53 -0800 (PST) X-Relaying-Domain: broadcom.com X-CFilter-Loop: Reflected Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-c6e74e55d35so346536a12.3 for ; Thu, 26 Feb 2026 00:33:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1772094832; x=1772699632; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8aUFXob2xzBSFhsX/0qnIN28cjguocYoYmX9AhWUVHs=; b=HEdFl7SaC78TY+dSIkXdzSZPvIMqcjOC9c57zfVcYJc6qU/3KDA4uTKY0TAkVsT6UA z1ZSlkglMW0KQZ+h8W9SFodYAL6X+vrX/z/jxUAEg0C7pwzPcY0yeQreoeWjp91jmgY8 PBVGM/mZQjPXrXlR5+W+75AgjrFC0Xe3/6Drc= X-Received: by 2002:aa7:8884:0:b0:823:f96:63bb with SMTP id d2e1a72fcca58-8273c077551mr1657040b3a.52.1772094831915; Thu, 26 Feb 2026 00:33:51 -0800 (PST) X-Received: by 2002:aa7:8884:0:b0:823:f96:63bb with SMTP id d2e1a72fcca58-8273c077551mr1657014b3a.52.1772094831431; Thu, 26 Feb 2026 00:33:51 -0800 (PST) Received: from PC-MID-R740.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-82739d4c9b5sm1661613b3a.9.2026.02.26.00.33.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Feb 2026 00:33:50 -0800 (PST) From: Pavan Chebbi To: jgg@ziepe.ca, michael.chan@broadcom.com Cc: linux-kernel@vger.kernel.org, dave.jiang@intel.com, saeedm@nvidia.com, Jonathan.Cameron@huawei.com, gospo@broadcom.com, selvin.xavier@broadcom.com, leon@kernel.org, kalesh-anakkur.purayil@broadcom.com, Pavan Chebbi , Leon Romanovsky , linux-rdma@vger.kernel.org Subject: [PATCH v5 fwctl 1/5] fwctl/bnxt_en: Move common definitions to include/linux/bnxt/ Date: Thu, 26 Feb 2026 00:23:14 -0800 Message-Id: <20260226082318.525518-2-pavan.chebbi@broadcom.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20260226082318.525518-1-pavan.chebbi@broadcom.com> References: <20260226082318.525518-1-pavan.chebbi@broadcom.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-DetectorID-Processed: b00c1d49-9d2e-4205-b15f-d015386d3d5e We have common definitions that are now going to be used by more than one component outside of bnxt (bnxt_re and fwctl) Move bnxt_ulp.h to include/linux/bnxt/ as ulp.h. Reviewed-by: Andy Gospodarek Reviewed-by: Leon Romanovsky Cc: linux-rdma@vger.kernel.org Signed-off-by: Pavan Chebbi --- drivers/infiniband/hw/bnxt_re/debugfs.c | 2 +- drivers/infiniband/hw/bnxt_re/main.c | 2 +- drivers/infiniband/hw/bnxt_re/qplib_fp.c | 2 +- drivers/infiniband/hw/bnxt_re/qplib_res.h | 2 +- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 +- drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c | 2 +- drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 2 +- drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c | 2 +- drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c | 2 +- .../broadcom/bnxt/bnxt_ulp.h => include/linux/bnxt/ulp.h | 0 10 files changed, 9 insertions(+), 9 deletions(-) rename drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h => include/linux/bnxt/ulp.h (100%) diff --git a/drivers/infiniband/hw/bnxt_re/debugfs.c b/drivers/infiniband/hw/bnxt_re/debugfs.c index 88817c86ae24..c57bbe3492a8 100644 --- a/drivers/infiniband/hw/bnxt_re/debugfs.c +++ b/drivers/infiniband/hw/bnxt_re/debugfs.c @@ -10,8 +10,8 @@ #include #include #include +#include -#include "bnxt_ulp.h" #include "roce_hsi.h" #include "qplib_res.h" #include "qplib_sp.h" diff --git a/drivers/infiniband/hw/bnxt_re/main.c b/drivers/infiniband/hw/bnxt_re/main.c index 73003ad25ee8..79ca734a1377 100644 --- a/drivers/infiniband/hw/bnxt_re/main.c +++ b/drivers/infiniband/hw/bnxt_re/main.c @@ -55,8 +55,8 @@ #include #include #include +#include -#include "bnxt_ulp.h" #include "roce_hsi.h" #include "qplib_res.h" #include "qplib_sp.h" diff --git a/drivers/infiniband/hw/bnxt_re/qplib_fp.c b/drivers/infiniband/hw/bnxt_re/qplib_fp.c index c88f049136fc..5a28946e4668 100644 --- a/drivers/infiniband/hw/bnxt_re/qplib_fp.c +++ b/drivers/infiniband/hw/bnxt_re/qplib_fp.c @@ -46,6 +46,7 @@ #include #include #include +#include #include #include "roce_hsi.h" @@ -55,7 +56,6 @@ #include "qplib_sp.h" #include "qplib_fp.h" #include -#include "bnxt_ulp.h" #include "bnxt_re.h" #include "ib_verbs.h" diff --git a/drivers/infiniband/hw/bnxt_re/qplib_res.h b/drivers/infiniband/hw/bnxt_re/qplib_res.h index 2ea3b7f232a3..ebe8893937f6 100644 --- a/drivers/infiniband/hw/bnxt_re/qplib_res.h +++ b/drivers/infiniband/hw/bnxt_re/qplib_res.h @@ -39,7 +39,7 @@ #ifndef __BNXT_QPLIB_RES_H__ #define __BNXT_QPLIB_RES_H__ -#include "bnxt_ulp.h" +#include extern const struct bnxt_qplib_gid bnxt_qplib_gid_zero; diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c index d17d0ea89c36..4481d80cdfc2 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -59,10 +59,10 @@ #include #include #include +#include #include "bnxt.h" #include "bnxt_hwrm.h" -#include "bnxt_ulp.h" #include "bnxt_sriov.h" #include "bnxt_ethtool.h" #include "bnxt_dcb.h" diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c index 15de802bbac4..230cd95d30a2 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c @@ -13,12 +13,12 @@ #include #include #include +#include #include "bnxt.h" #include "bnxt_hwrm.h" #include "bnxt_vfr.h" #include "bnxt_devlink.h" #include "bnxt_ethtool.h" -#include "bnxt_ulp.h" #include "bnxt_ptp.h" #include "bnxt_coredump.h" #include "bnxt_nvm_defs.h" diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c index 068e191ede19..8cad7b982664 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c @@ -27,9 +27,9 @@ #include #include #include +#include #include "bnxt.h" #include "bnxt_hwrm.h" -#include "bnxt_ulp.h" #include "bnxt_xdp.h" #include "bnxt_ptp.h" #include "bnxt_ethtool.h" diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c index be7deb9cc410..83884af32249 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c @@ -17,9 +17,9 @@ #include #include #include +#include #include "bnxt.h" #include "bnxt_hwrm.h" -#include "bnxt_ulp.h" #include "bnxt_sriov.h" #include "bnxt_vfr.h" #include "bnxt_ethtool.h" diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c index 927971c362f1..fa513892db50 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c @@ -22,10 +22,10 @@ #include #include #include +#include #include "bnxt.h" #include "bnxt_hwrm.h" -#include "bnxt_ulp.h" static DEFINE_IDA(bnxt_aux_dev_ids); diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h b/include/linux/bnxt/ulp.h similarity index 100% rename from drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h rename to include/linux/bnxt/ulp.h -- 2.39.1