Skip to contentSkip to conversation

bnxt_en: Updates for net-next

PATCH In review Michael Chan 4 participants 13 messages Nov 26, 2025 – Dec 4, 2025

Subsystems (3)
lore
Share & tools
lore

Michael Chan

author maintainer
#0 lore raw

cover bnxt_en: Updates for net-next

This series includes an enhnacement to the priority TX counters, an enhancement to a PHY module error extack message, cleanup of unneeded MSIX logic in bnxt_ulp.c, adding CQ dump during TX timeout, LRO/HW_GRO performance improvement by enabling Relaxed Ordering, improved SRIOV admin link state support, and PTP .getcrosststamp() support.

Gautam R A (1):
bnxt_en: Enhance log message in bnxt_get_module_status()

Kalesh AP (1):
bnxt_en: Remove the redundant BNXT_EN_FLAG_MSIX_REQUESTED flag

Michael Chan (3):
bnxt_en: Enhance TX pri counters
bnxt_en: Add CQ ring dump to bnxt_dump_cp_sw_state()
bnxt_en: Do not set EOP on RX AGG BDs on 5760X chips

Pavan Chebbi (1):
bnxt_en: Add PTP .getcrosststamp() interface to get device/host times

Rob Miller (1):
bnxt_en: Add Virtual Admin Link State Support for VFs

 drivers/net/ethernet/broadcom/bnxt/bnxt.c     | 34 +++++++++++-
 drivers/net/ethernet/broadcom/bnxt/bnxt.h     |  4 ++
 .../net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 19 +++++--
 drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c | 46 ++++++++++++++++
 .../net/ethernet/broadcom/bnxt/bnxt_sriov.c   | 55 +++++++++++++++++--
 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c |  7 +--
 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h |  1 -
 7 files changed, 148 insertions(+), 18 deletions(-)
Signature · 1 line
2.51.0
author maintainer
#1 lore raw

PATCH 1/7 bnxt_en: Enhance TX pri counters

The priority packet and byte counters in ethtool -S are returned by the driver based on the pri2cos mapping. The assumption is that each priority is mapped to one and only one hardware CoS queue. In a special RoCE configuration, the FW uses combined CoS queue 0 and CoS queue 1 for the priority mapped to CoS queue 0. In this special case, we need to add the CoS queue 0 and CoS queue 1 counters for the priority packet and byte counters.

---
 drivers/net/ethernet/broadcom/bnxt/bnxt.c         |  5 +++++
 drivers/net/ethernet/broadcom/bnxt/bnxt.h         |  1 +
 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 14 ++++++++++----
 3 files changed, 16 insertions(+), 4 deletions(-)
drivers/net/ethernet/broadcom/bnxt/bnxt.c +5 -0
index a625e7c311dd..148db3fe8fc2 100644
@@ -8506,6 +8506,11 @@ static int bnxt_hwrm_func_qcfg(struct bnxt *bp)
 
 	if (flags & FUNC_QCFG_RESP_FLAGS_ENABLE_RDMA_SRIOV)
 		bp->fw_cap |= BNXT_FW_CAP_ENABLE_RDMA_SRIOV;
+	if (resp->roce_bidi_opt_mode &
+	    FUNC_QCFG_RESP_ROCE_BIDI_OPT_MODE_DEDICATED)
+		bp->cos0_cos1_shared = 1;
+	else
+		bp->cos0_cos1_shared = 0;
 
 	switch (resp->port_partition_type) {
 	case FUNC_QCFG_RESP_PORT_PARTITION_TYPE_NPAR1_0:
drivers/net/ethernet/broadcom/bnxt/bnxt.h +1 -0
index 3613a172483a..aedb059f4ce5 100644
@@ -2424,6 +2424,7 @@ struct bnxt {
 	u8			tc_to_qidx[BNXT_MAX_QUEUE];
 	u8			q_ids[BNXT_MAX_QUEUE];
 	u8			max_q;
+	u8			cos0_cos1_shared;
 	u8			num_tc;
 
 	u16			max_pfcwd_tmo_ms;
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c +10 -4
index 41686a6f84b5..baac639f9c94 100644
@@ -688,16 +688,22 @@ static void bnxt_get_ethtool_stats(struct net_device *dev,
 				buf[j] = *(rx_port_stats_ext + n);
 			}
 			for (i = 0; i < 8; i++, j++) {
-				long n = bnxt_tx_bytes_pri_arr[i].base_off +
-					 bp->pri2cos_idx[i];
+				u8 cos_idx = bp->pri2cos_idx[i];
+				long n;
 
+				n = bnxt_tx_bytes_pri_arr[i].base_off + cos_idx;
 				buf[j] = *(tx_port_stats_ext + n);
+				if (bp->cos0_cos1_shared && !cos_idx)
+					buf[j] += *(tx_port_stats_ext + n + 1);
 			}
 			for (i = 0; i < 8; i++, j++) {
-				long n = bnxt_tx_pkts_pri_arr[i].base_off +
-					 bp->pri2cos_idx[i];
+				u8 cos_idx = bp->pri2cos_idx[i];
+				long n;
 
+				n = bnxt_tx_pkts_pri_arr[i].base_off + cos_idx;
 				buf[j] = *(tx_port_stats_ext + n);
+				if (bp->cos0_cos1_shared && !cos_idx)
+					buf[j] += *(tx_port_stats_ext + n + 1);
 			}
 		}
 	}
Signature · 1 line
2.51.0
author maintainer
#2 lore raw

PATCH 2/7 bnxt_en: Enhance log message in bnxt_get_module_status()

In reply to Michael Chan

From: Gautam R A <[email protected]>

Rturn early with -EOPNOTSUPP and an extack message if the PHY type is BaseT since module status is not available for BaseT.

---
 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c +5 -0
index baac639f9c94..efb9bf20e66b 100644
@@ -4623,6 +4623,11 @@ static int bnxt_get_module_status(struct bnxt *bp, struct netlink_ext_ack *extac
 	    PORT_PHY_QCFG_RESP_MODULE_STATUS_WARNINGMSG)
 		return 0;
 
+	if (bp->link_info.phy_type == PORT_PHY_QCFG_RESP_PHY_TYPE_BASET ||
+	    bp->link_info.phy_type == PORT_PHY_QCFG_RESP_PHY_TYPE_BASETE){
+		NL_SET_ERR_MSG_MOD(extack, "Operation not supported as PHY type is Base-T");
+		return -EOPNOTSUPP;
+	}
 	switch (bp->link_info.module_status) {
 	case PORT_PHY_QCFG_RESP_MODULE_STATUS_PWRDOWN:
 		NL_SET_ERR_MSG_MOD(extack, "Transceiver module is powering down");
Signature · 1 line
2.51.0
author maintainer
#3 lore raw

PATCH 3/7 bnxt_en: Remove the redundant BNXT_EN_FLAG_MSIX_REQUESTED flag

In reply to Michael Chan

From: Kalesh AP <[email protected]>

MSIX is always requested when the RoCE driver calls bnxt_register_dev(). We already check bnxt_ulp_registered(), so checking the flag is redundant. It was a left-over flag after converting to auxbus, so remove it.

---
 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c | 7 ++-----
 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h | 1 -
 2 files changed, 2 insertions(+), 6 deletions(-)
drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c +2 -5
index f8c2c72b382d..927971c362f1 100644
@@ -142,7 +142,6 @@ int bnxt_register_dev(struct bnxt_en_dev *edev,
 	edev->ulp_tbl->msix_requested = bnxt_get_ulp_msix_num(bp);
 
 	bnxt_fill_msix_vecs(bp, bp->edev->msix_entries);
-	edev->flags |= BNXT_EN_FLAG_MSIX_REQUESTED;
 exit:
 	mutex_unlock(&edev->en_dev_lock);
 	netdev_unlock(dev);
@@ -159,8 +158,6 @@ void bnxt_unregister_dev(struct bnxt_en_dev *edev)
 	ulp = edev->ulp_tbl;
 	netdev_lock(dev);
 	mutex_lock(&edev->en_dev_lock);
-	if (ulp->msix_requested)
-		edev->flags &= ~BNXT_EN_FLAG_MSIX_REQUESTED;
 	edev->ulp_tbl->msix_requested = 0;
 
 	if (ulp->max_async_event_id)
@@ -298,7 +295,7 @@ void bnxt_ulp_irq_stop(struct bnxt *bp)
 	struct bnxt_ulp_ops *ops;
 	bool reset = false;
 
-	if (!edev || !(edev->flags & BNXT_EN_FLAG_MSIX_REQUESTED))
+	if (!edev)
 		return;
 
 	if (bnxt_ulp_registered(bp->edev)) {
@@ -321,7 +318,7 @@ void bnxt_ulp_irq_restart(struct bnxt *bp, int err)
 	struct bnxt_en_dev *edev = bp->edev;
 	struct bnxt_ulp_ops *ops;
 
-	if (!edev || !(edev->flags & BNXT_EN_FLAG_MSIX_REQUESTED))
+	if (!edev)
 		return;
 
 	if (bnxt_ulp_registered(bp->edev)) {
drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h +0 -1
index 7b9dd8ebe4bc..3c5b8a53f715 100644
@@ -58,7 +58,6 @@ struct bnxt_en_dev {
 	#define BNXT_EN_FLAG_ROCEV2_CAP		0x2
 	#define BNXT_EN_FLAG_ROCE_CAP		(BNXT_EN_FLAG_ROCEV1_CAP | \
 						 BNXT_EN_FLAG_ROCEV2_CAP)
-	#define BNXT_EN_FLAG_MSIX_REQUESTED	0x4
 	#define BNXT_EN_FLAG_ULP_STOPPED	0x8
 	#define BNXT_EN_FLAG_VF			0x10
 #define BNXT_EN_VF(edev)	((edev)->flags & BNXT_EN_FLAG_VF)
Signature · 1 line
2.51.0
author maintainer
#4 lore raw

PATCH 4/7 bnxt_en: Add CQ ring dump to bnxt_dump_cp_sw_state()

In reply to Michael Chan

On newer chips that use NQs and CQs, add the CQ ring dump to bnxt_dump_cp_sw_state() to make it more complete.

---
 drivers/net/ethernet/broadcom/bnxt/bnxt.c | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
drivers/net/ethernet/broadcom/bnxt/bnxt.c +10 -2
index 148db3fe8fc2..7df30019c5b1 100644
@@ -14025,11 +14025,19 @@ static void bnxt_dump_rx_sw_state(struct bnxt_napi *bnapi)
 
 static void bnxt_dump_cp_sw_state(struct bnxt_napi *bnapi)
 {
-	struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring;
-	int i = bnapi->index;
+	struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring, *cpr2;
+	int i = bnapi->index, j;
 
 	netdev_info(bnapi->bp->dev, "[%d]: cp{fw_ring: %d raw_cons: %x}\n",
 		    i, cpr->cp_ring_struct.fw_ring_id, cpr->cp_raw_cons);
+	for (j = 0; j < cpr->cp_ring_count; j++) {
+		cpr2 = &cpr->cp_ring_arr[j];
+		if (!cpr2->bnapi)
+			continue;
+		netdev_info(bnapi->bp->dev, "[%d.%d]: cp{fw_ring: %d raw_cons: %x}\n",
+			    i, j, cpr2->cp_ring_struct.fw_ring_id,
+			    cpr2->cp_raw_cons);
+	}
 }
 
 static void bnxt_dbg_dump_states(struct bnxt *bp)
Signature · 1 line
2.51.0
author maintainer
#5 lore raw

PATCH 5/7 bnxt_en: Do not set EOP on RX AGG BDs on 5760X chips

In reply to Michael Chan

With End-of-Packet padding (EOP) set, the chip will disable Relaxed Ordering (RO) of TPA data packets. A TPA segment with EOP set will be padded to the next cache boundary and can potentially overwrite the beginning bytes of the next TPA segment when RO is enabled on 5760X. To prevent that, the chip disables RO for TPA when EOP is set.

To take advantge of RO and higher performance, do not set EOP on 5760X chips when TPA is enabled. Define a proper RX_BD_FLAGS_AGG_EOP constant to make it clear that we are setting EOP.

---
 drivers/net/ethernet/broadcom/bnxt/bnxt.c | 9 ++++++++-
 drivers/net/ethernet/broadcom/bnxt/bnxt.h | 1 +
 2 files changed, 9 insertions(+), 1 deletion(-)
drivers/net/ethernet/broadcom/bnxt/bnxt.c +8 -1
index 7df30019c5b1..4222e1bd172a 100644
@@ -4479,7 +4479,14 @@ static void bnxt_init_one_rx_agg_ring_rxbd(struct bnxt *bp,
 	ring->fw_ring_id = INVALID_HW_RING_ID;
 	if ((bp->flags & BNXT_FLAG_AGG_RINGS)) {
 		type = ((u32)BNXT_RX_PAGE_SIZE << RX_BD_LEN_SHIFT) |
-			RX_BD_TYPE_RX_AGG_BD | RX_BD_FLAGS_SOP;
+			RX_BD_TYPE_RX_AGG_BD;
+
+		/* On P7, setting EOP will cause the chip to disable
+		 * Relaxed Ordering (RO) for TPA data.  Disable EOP for
+		 * potentially higher performance with RO.
+		 */
+		if (BNXT_CHIP_P5_AND_MINUS(bp) || !(bp->flags & BNXT_FLAG_TPA))
+			type |= RX_BD_FLAGS_AGG_EOP;
 
 		bnxt_init_rxbd_pages(ring, type);
 	}
drivers/net/ethernet/broadcom/bnxt/bnxt.h +1 -0
index aedb059f4ce5..bb12cebd40e1 100644
@@ -131,6 +131,7 @@ struct rx_bd {
 	 #define RX_BD_TYPE_48B_BD_SIZE				 (2 << 4)
 	 #define RX_BD_TYPE_64B_BD_SIZE				 (3 << 4)
 	#define RX_BD_FLAGS_SOP					(1 << 6)
+	#define RX_BD_FLAGS_AGG_EOP				(1 << 6)
 	#define RX_BD_FLAGS_EOP					(1 << 7)
 	#define RX_BD_FLAGS_BUFFERS				(3 << 8)
 	 #define RX_BD_FLAGS_1_BUFFER_PACKET			 (0 << 8)
Signature · 1 line
2.51.0
author maintainer
#6 lore raw

PATCH 6/7 bnxt_en: Add Virtual Admin Link State Support for VFs

In reply to Michael Chan

From: Rob Miller <[email protected]>

The firmware can now cache the virtual link admin state (auto/on/off) of all VFs and as such, the PF driver no longer has to intercept the VF driver's port_phy_qcfg() call and then provide the link admin state.

If the FW does not have this capability, fall back to the existing interception method.

The initial default link admin state (auto) is also set initially when the VFs are created.

---
 drivers/net/ethernet/broadcom/bnxt/bnxt.c     |  6 ++
 drivers/net/ethernet/broadcom/bnxt/bnxt.h     |  1 +
 .../net/ethernet/broadcom/bnxt/bnxt_sriov.c   | 55 +++++++++++++++++--
 3 files changed, 57 insertions(+), 5 deletions(-)
drivers/net/ethernet/broadcom/bnxt/bnxt.c +6 -0
index 4222e1bd172a..1dddd388d2d6 100644
@@ -5695,6 +5695,10 @@ int bnxt_hwrm_func_drv_rgtr(struct bnxt *bp, unsigned long *bmap, int bmap_size,
 			u16 cmd = bnxt_vf_req_snif[i];
 			unsigned int bit, idx;
 
+			if ((bp->fw_cap & BNXT_FW_CAP_LINK_ADMIN) &&
+			    cmd == HWRM_PORT_PHY_QCFG)
+				continue;
+
 			idx = cmd / 32;
 			bit = cmd % 32;
 			data[idx] |= 1 << bit;
@@ -9665,6 +9669,8 @@ static int __bnxt_hwrm_func_qcaps(struct bnxt *bp)
 		bp->flags |= BNXT_FLAG_ROCEV1_CAP;
 	if (flags & FUNC_QCAPS_RESP_FLAGS_ROCE_V2_SUPPORTED)
 		bp->flags |= BNXT_FLAG_ROCEV2_CAP;
+	if (flags & FUNC_QCAPS_RESP_FLAGS_LINK_ADMIN_STATUS_SUPPORTED)
+		bp->fw_cap |= BNXT_FW_CAP_LINK_ADMIN;
 	if (flags & FUNC_QCAPS_RESP_FLAGS_PCIE_STATS_SUPPORTED)
 		bp->fw_cap |= BNXT_FW_CAP_PCIE_STATS_SUPPORTED;
 	if (flags & FUNC_QCAPS_RESP_FLAGS_HOT_RESET_CAPABLE)
drivers/net/ethernet/broadcom/bnxt/bnxt.h +1 -0
index bb12cebd40e1..f5f07a7e6b29 100644
@@ -2484,6 +2484,7 @@ struct bnxt {
 	#define BNXT_FW_CAP_ROCE_VF_RESC_MGMT_SUPPORTED	BIT_ULL(6)
 	#define BNXT_FW_CAP_KONG_MB_CHNL		BIT_ULL(7)
 	#define BNXT_FW_CAP_ROCE_VF_DYN_ALLOC_SUPPORT	BIT_ULL(8)
+	#define BNXT_FW_CAP_LINK_ADMIN			BIT_ULL(9)
 	#define BNXT_FW_CAP_OVS_64BIT_HANDLE		BIT_ULL(10)
 	#define BNXT_FW_CAP_TRUSTED_VF			BIT_ULL(11)
 	#define BNXT_FW_CAP_ERROR_RECOVERY		BIT_ULL(13)
drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c +50 -5

87 lines not on this page · raw message

Signature · 1 line
2.51.0
author maintainer
#7 lore raw

PATCH 7/7 bnxt_en: Add PTP .getcrosststamp() interface to get device/host times

In reply to Michael Chan

From: Pavan Chebbi <[email protected]>

.getcrosststamp() helps the applications to obtain a snapshot of device and host time almost taken at the same time. This function will report PCIe PTM device and host times to any application using the ioctl PTP_SYS_OFFSET_PRECISE. The device time from the HW is 48-bit and needs to be converted to 64-bit.

---
 drivers/net/ethernet/broadcom/bnxt/bnxt.c     |  2 +
 drivers/net/ethernet/broadcom/bnxt/bnxt.h     |  1 +
 drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c | 46 +++++++++++++++++++
 3 files changed, 49 insertions(+)
drivers/net/ethernet/broadcom/bnxt/bnxt.c +2 -0
index 1dddd388d2d6..aa079c8aa935 100644
@@ -9691,6 +9691,8 @@ static int __bnxt_hwrm_func_qcaps(struct bnxt *bp)
 		bp->fw_cap |= BNXT_FW_CAP_EXT_HW_STATS_SUPPORTED;
 	if (BNXT_PF(bp) && (flags_ext & FUNC_QCAPS_RESP_FLAGS_EXT_PTP_PPS_SUPPORTED))
 		bp->fw_cap |= BNXT_FW_CAP_PTP_PPS;
+	if (flags_ext & FUNC_QCAPS_RESP_FLAGS_EXT_PTP_PTM_SUPPORTED)
+		bp->fw_cap |= BNXT_FW_CAP_PTP_PTM;
 	if (flags_ext & FUNC_QCAPS_RESP_FLAGS_EXT_PTP_64BIT_RTC_SUPPORTED)
 		bp->fw_cap |= BNXT_FW_CAP_PTP_RTC;
 	if (BNXT_PF(bp) && (flags_ext & FUNC_QCAPS_RESP_FLAGS_EXT_HOT_RESET_IF_SUPPORT))
drivers/net/ethernet/broadcom/bnxt/bnxt.h +1 -0
index f5f07a7e6b29..08d9adf52ec6 100644
@@ -2518,6 +2518,7 @@ struct bnxt {
 	#define BNXT_FW_CAP_SW_MAX_RESOURCE_LIMITS	BIT_ULL(41)
 	#define BNXT_FW_CAP_NPAR_1_2			BIT_ULL(42)
 	#define BNXT_FW_CAP_MIRROR_ON_ROCE		BIT_ULL(43)
+	#define BNXT_FW_CAP_PTP_PTM			BIT_ULL(44)
 
 	u32			fw_dbg_cap;
 
drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c +46 -0

58 lines not on this page · raw message

Signature · 1 line
2.51.0
maintainer
#8 lore raw

Re: [PATCH net-next 7/7] bnxt_en: Add PTP .getcrosststamp() interface to get device/host times

drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c void bnxt_tx_ts_cmp(struct bnxt *bp, struct bnxt_napi *bnapi, · line 911

Quoted 6 lines · On Wed, 26 Nov 2025 13:56:48 -0800 Michael Chan wrote:
drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c +6 -0
+	ptm_local_ts = le64_to_cpu(resp->ptm_local_ts);
+	*device = ns_to_ktime(bnxt_timecounter_cyc2time(ptp, ptm_local_ts));
+	/* ptm_system_ts is 64-bit */
+	system->cycles = le64_to_cpu(resp->ptm_system_ts);
+	system->cs_id = CSID_X86_ART;
+	system->use_nsecs = true;

Non-x86 hosts exist? Also, I'd like to give Vadim F a chance to TAL and he's out for the rest of the week. So perhaps we can hold this one off until after the MW?

I'll apply up to this point in the meantime.

#9 lore raw

Re: [PATCH net-next 7/7] bnxt_en: Add PTP .getcrosststamp() interface to get device/host times

Quoted 12 lines · Jakub Kicinski

drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c void bnxt_tx_ts_cmp(struct bnxt *bp, struct bnxt_napi *bnapi, · line 911

Quoted 6 lines · On Wed, 26 Nov 2025 13:56:48 -0800 Michael Chan wrote:
drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c +6 -0
+	ptm_local_ts = le64_to_cpu(resp->ptm_local_ts);
+	*device = ns_to_ktime(bnxt_timecounter_cyc2time(ptp, ptm_local_ts));
+	/* ptm_system_ts is 64-bit */
+	system->cycles = le64_to_cpu(resp->ptm_system_ts);
+	system->cs_id = CSID_X86_ART;
+	system->use_nsecs = true;

Non-x86 hosts exist? Also, I'd like to give Vadim F a chance to TAL and he's out for the rest of the week. So perhaps we can hold this one off until after the MW?

Quoted 1 line

I'll apply up to this point in the meantime.

I did test this code, but only on x86 platform, unfortunately.

#10 lore raw

Re: [PATCH net-next 7/7] bnxt_en: Add PTP .getcrosststamp() interface to get device/host times

In reply to Michael Chan

On 26/11/2025 21:56, Michael Chan wrote:

[...]

drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c void bnxt_tx_ts_cmp(struct bnxt *bp, struct bnxt_napi *bnapi, · line 925

Quoted 8 lines
drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c +8 -0
+static int bnxt_ptp_getcrosststamp(struct ptp_clock_info *ptp_info,
+				   struct system_device_crosststamp *xtstamp)
+{
+	struct bnxt_ptp_cfg *ptp = container_of(ptp_info, struct bnxt_ptp_cfg,
+						ptp_info);
+
+	if (!(ptp->bp->fw_cap & BNXT_FW_CAP_PTP_PTM))
+		return -EOPNOTSUPP;

to have it enabled for x86-only (as the only supported platform as of now), additional check is needed:

if (pcie_ptm_enabled(ptp->bp->pdev) && boot_cpu_has(X86_FEATURE_ART))

	return -EOPNOTSUPP;
Quoted 4 lines
drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c +4 -0
+	return get_device_system_crosststamp(bnxt_phc_get_syncdevicetime,
+					     ptp, NULL, xtstamp);
+}
+
#11 lore raw

Re: [PATCH net-next 7/7] bnxt_en: Add PTP .getcrosststamp() interface to get device/host times

Quoted 16 lines · Vadim Fedorenko

On 26/11/2025 21:56, Michael Chan wrote:

[...]

drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c void bnxt_tx_ts_cmp(struct bnxt *bp, struct bnxt_napi *bnapi, · line 925

Quoted 8 lines
drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c +8 -0
+static int bnxt_ptp_getcrosststamp(struct ptp_clock_info *ptp_info,
+				   struct system_device_crosststamp *xtstamp)
+{
+	struct bnxt_ptp_cfg *ptp = container_of(ptp_info, struct bnxt_ptp_cfg,
+						ptp_info);
+
+	if (!(ptp->bp->fw_cap & BNXT_FW_CAP_PTP_PTM))
+		return -EOPNOTSUPP;

to have it enabled for x86-only (as the only supported platform as of now), additional check is needed:

Quoted 3 lines

if (pcie_ptm_enabled(ptp->bp->pdev) && boot_cpu_has(X86_FEATURE_ART))

	return -EOPNOTSUPP;

Yep. This is the right way to check for the support, assuming its standard PCIe PTM and not a custom implementation (as happened on a few Intel LOMs in the past before standardization of PTM). You definitely need to check for X86_FEATURE_ART since you're using the ART conversions.

Thanks,
Jake

maintainer
#12 lore raw
In reply to Michael Chan
Quoted 6 lines · On Wed, 26 Nov 2025 13:56:41 -0800 Michael Chan wrote:

This series includes an enhnacement to the priority TX counters, an enhancement to a PHY module error extack message, cleanup of unneeded MSIX logic in bnxt_ulp.c, adding CQ dump during TX timeout, LRO/HW_GRO performance improvement by enabling Relaxed Ordering, improved SRIOV admin link state support, and PTP .getcrosststamp() support.

Hi Michael, Bhargava,

in the interest of fairness it'd be good if you could coordinate to make sure there's never >15 patches outstanding in patchwork for bng_en + bnxt.