AI Trajectory


Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
0/0 2026/10/12 22:55 flow patch-triage
1m Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "KMSANReasoning": "",
  "NeedsKMSAN": false,
  "Reasoning": "The patch series exclusively modifies the Broadcom NetXtreme-C/E driver (drivers/net/ethernet/broadcom/bnxt/), which is a vendor-specific PCIe NIC driver requiring physical Broadcom ASIC hardware. Because this hardware is not emulated in standard virtualized environments (QEMU/GCE), the modified code is structurally unreachable for syzkaller fuzzing.",
  "WorthFuzzing": false
}

1/1 2026/10/12 22:55 action read-patch-diff
0m Args:
null

Results:
{
  "PatchDiff": "commit 28f7fc7d17f2d4153fd41952d34b368f5094fbed\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate:   Mon Oct 12 22:55:48 2026 +0000\n\n    syz-cluster: applied patch under review\n\ndiff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c\nindex c1d3fcc7ae846..cbf7aef1d5b82 100644\n--- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c\n+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c\n@@ -3209,82 +3209,6 @@ static int bnxt_poll_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr,\n \treturn rx_pkts;\n }\n \n-static int bnxt_poll_nitroa0(struct napi_struct *napi, int budget)\n-{\n-\tstruct bnxt_napi *bnapi = container_of(napi, struct bnxt_napi, napi);\n-\tstruct bnxt *bp = bnapi-\u003ebp;\n-\tstruct bnxt_cp_ring_info *cpr = \u0026bnapi-\u003ecp_ring;\n-\tstruct bnxt_rx_ring_info *rxr = bnapi-\u003erx_ring;\n-\tstruct tx_cmp *txcmp;\n-\tstruct rx_cmp_ext *rxcmp1;\n-\tu32 cp_cons, tmp_raw_cons;\n-\tu32 raw_cons = cpr-\u003ecp_raw_cons;\n-\tbool flush_xdp = false;\n-\tu32 rx_pkts = 0;\n-\tu8 event = 0;\n-\n-\twhile (1) {\n-\t\tint rc;\n-\n-\t\tcp_cons = RING_CMP(raw_cons);\n-\t\ttxcmp = \u0026cpr-\u003ecp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)];\n-\n-\t\tif (!TX_CMP_VALID(txcmp, raw_cons))\n-\t\t\tbreak;\n-\n-\t\t/* The valid test of the entry must be done first before\n-\t\t * reading any further.\n-\t\t */\n-\t\tdma_rmb();\n-\t\tif ((TX_CMP_TYPE(txcmp) \u0026 0x30) == 0x10) {\n-\t\t\ttmp_raw_cons = NEXT_RAW_CMP(raw_cons);\n-\t\t\tcp_cons = RING_CMP(tmp_raw_cons);\n-\t\t\trxcmp1 = (struct rx_cmp_ext *)\n-\t\t\t  \u0026cpr-\u003ecp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)];\n-\n-\t\t\tif (!RX_CMP_VALID(rxcmp1, tmp_raw_cons))\n-\t\t\t\tbreak;\n-\n-\t\t\t/* force an error to recycle the buffer */\n-\t\t\trxcmp1-\u003erx_cmp_cfa_code_errors_v2 |=\n-\t\t\t\tcpu_to_le32(RX_CMPL_ERRORS_CRC_ERROR);\n-\n-\t\t\trc = bnxt_rx_pkt(bp, cpr, \u0026raw_cons, \u0026event);\n-\t\t\tif (likely(rc == -EIO) \u0026\u0026 budget)\n-\t\t\t\trx_pkts++;\n-\t\t\telse if (rc == -EBUSY)\t/* partial completion */\n-\t\t\t\tbreak;\n-\t\t\tif (event \u0026 BNXT_REDIRECT_EVENT)\n-\t\t\t\tflush_xdp = true;\n-\t\t} else if (unlikely(TX_CMP_TYPE(txcmp) ==\n-\t\t\t\t    CMPL_BASE_TYPE_HWRM_DONE)) {\n-\t\t\tbnxt_hwrm_handler(bp, txcmp);\n-\t\t} else {\n-\t\t\tnetdev_err(bp-\u003edev,\n-\t\t\t\t   \"Invalid completion received on special ring\\n\");\n-\t\t}\n-\t\traw_cons = NEXT_RAW_CMP(raw_cons);\n-\n-\t\tif (rx_pkts == budget)\n-\t\t\tbreak;\n-\t}\n-\n-\tcpr-\u003ecp_raw_cons = raw_cons;\n-\tBNXT_DB_CQ(\u0026cpr-\u003ecp_db, cpr-\u003ecp_raw_cons);\n-\tbnxt_db_write(bp, \u0026rxr-\u003erx_db, rxr-\u003erx_prod);\n-\n-\tif (event \u0026 BNXT_AGG_EVENT)\n-\t\tbnxt_db_write(bp, \u0026rxr-\u003erx_agg_db, rxr-\u003erx_agg_prod);\n-\tif (flush_xdp)\n-\t\txdp_do_flush();\n-\n-\tif (!bnxt_has_work(bp, cpr) \u0026\u0026 rx_pkts \u003c budget) {\n-\t\tnapi_complete_done(napi, rx_pkts);\n-\t\tBNXT_DB_CQ_ARM(\u0026cpr-\u003ecp_db, cpr-\u003ecp_raw_cons);\n-\t}\n-\treturn rx_pkts;\n-}\n-\n static int bnxt_poll(struct napi_struct *napi, int budget)\n {\n \tstruct bnxt_napi *bnapi = container_of(napi, struct bnxt_napi, napi);\n@@ -4791,9 +4715,6 @@ static int bnxt_alloc_vnics(struct bnxt *bp)\n \t}\n #endif\n \n-\tif (BNXT_CHIP_TYPE_NITRO_A0(bp))\n-\t\tnum_vnics++;\n-\n \tbp-\u003evnic_info = kzalloc_objs(struct bnxt_vnic_info, num_vnics);\n \tif (!bp-\u003evnic_info)\n \t\treturn -ENOMEM;\n@@ -6327,11 +6248,8 @@ int bnxt_hwrm_l2_filter_alloc(struct bnxt *bp, struct bnxt_l2_filter *fltr)\n \t\treturn rc;\n \n \treq-\u003etarget_id = cpu_to_le16(target_id);\n-\treq-\u003eflags = cpu_to_le32(CFA_L2_FILTER_ALLOC_REQ_FLAGS_PATH_RX);\n-\n-\tif (!BNXT_CHIP_TYPE_NITRO_A0(bp))\n-\t\treq-\u003eflags |=\n-\t\t\tcpu_to_le32(CFA_L2_FILTER_ALLOC_REQ_FLAGS_OUTERMOST);\n+\treq-\u003eflags = cpu_to_le32(CFA_L2_FILTER_ALLOC_REQ_FLAGS_PATH_RX |\n+\t\t\t\t CFA_L2_FILTER_ALLOC_REQ_FLAGS_OUTERMOST);\n \treq-\u003edst_id = cpu_to_le16(fltr-\u003ebase.fw_vnic_id);\n \treq-\u003eenables =\n \t\tcpu_to_le32(CFA_L2_FILTER_ALLOC_REQ_ENABLES_L2_ADDR |\n@@ -6688,10 +6606,7 @@ void bnxt_set_dflt_rss_indir_tbl(struct bnxt *bp,\n \tif (!bp-\u003erx_nr_rings)\n \t\treturn;\n \n-\tif (BNXT_CHIP_TYPE_NITRO_A0(bp))\n-\t\tmax_rings = bp-\u003erx_nr_rings - 1;\n-\telse\n-\t\tmax_rings = bp-\u003erx_nr_rings;\n+\tmax_rings = bp-\u003erx_nr_rings;\n \n \tmax_entries = bnxt_get_rxfh_indir_size(bp-\u003edev);\n \tif (rss_ctx)\n@@ -6731,8 +6646,6 @@ int bnxt_get_nr_rss_ctxs(struct bnxt *bp, int rx_rings)\n \t\treturn bnxt_calc_nr_ring_pages(rx_rings - 1,\n \t\t\t\t\t       BNXT_RSS_TABLE_ENTRIES_P5);\n \t}\n-\tif (BNXT_CHIP_TYPE_NITRO_A0(bp))\n-\t\treturn 2;\n \treturn 1;\n }\n \n@@ -6757,8 +6670,6 @@ static void bnxt_fill_hw_rss_tbl(struct bnxt *bp, struct bnxt_vnic_info *vnic)\n \t\tvnic-\u003edefault_rx_ring = min_j;\n \telse if (vnic-\u003eflags \u0026 BNXT_VNIC_RFS_FLAG)\n \t\tvnic-\u003edefault_rx_ring = vnic-\u003evnic_id - 1;\n-\telse if ((vnic-\u003evnic_id == 1) \u0026\u0026 BNXT_CHIP_TYPE_NITRO_A0(bp))\n-\t\tvnic-\u003edefault_rx_ring = bp-\u003erx_nr_rings - 1;\n \telse\n \t\tvnic-\u003edefault_rx_ring = 0;\n }\n@@ -7013,13 +6924,7 @@ int bnxt_hwrm_vnic_cfg(struct bnxt *bp, struct bnxt_vnic_info *vnic)\n \t\treq-\u003erss_rule = cpu_to_le16(0xffff);\n \t}\n \n-\tif (BNXT_CHIP_TYPE_NITRO_A0(bp) \u0026\u0026\n-\t    (vnic-\u003efw_rss_cos_lb_ctx[0] != INVALID_HW_RING_ID)) {\n-\t\treq-\u003ecos_rule = cpu_to_le16(vnic-\u003efw_rss_cos_lb_ctx[1]);\n-\t\treq-\u003eenables |= cpu_to_le32(VNIC_CFG_REQ_ENABLES_COS_RULE);\n-\t} else {\n-\t\treq-\u003ecos_rule = cpu_to_le16(0xffff);\n-\t}\n+\treq-\u003ecos_rule = cpu_to_le16(0xffff);\n \n \tring = vnic-\u003edefault_rx_ring;\n \tgrp_idx = bp-\u003erx_ring[ring].bnapi-\u003eindex;\n@@ -8145,6 +8050,8 @@ static bool bnxt_need_reserve_rings(struct bnxt *bp)\n \treturn false;\n }\n \n+static int __bnxt_num_tx_to_cp(struct bnxt *bp, int tx, int tx_sets, int tx_xdp);\n+\n static void bnxt_copy_reserved_rings(struct bnxt *bp, struct bnxt_hw_rings *hwr)\n {\n \tstruct bnxt_hw_resc *hw_resc = \u0026bp-\u003ehw_resc;\n@@ -8164,15 +8071,49 @@ static void bnxt_copy_reserved_rings(struct bnxt *bp, struct bnxt_hw_rings *hwr)\n \n static bool bnxt_rings_ok(struct bnxt *bp, struct bnxt_hw_rings *hwr)\n {\n-\treturn hwr-\u003etx \u0026\u0026 hwr-\u003erx \u0026\u0026 hwr-\u003ecp \u0026\u0026 hwr-\u003egrp \u0026\u0026 hwr-\u003evnic \u0026\u0026\n-\t       hwr-\u003estat \u0026\u0026 (hwr-\u003ecp_p5 || !(bp-\u003eflags \u0026 BNXT_FLAG_CHIP_P5_PLUS));\n+\tint tcs = bp-\u003enum_tc ? bp-\u003enum_tc : 1;\n+\tint min_tx_xdp = 0;\n+\tint min_tx = tcs;\n+\tint min_rx = 1;\n+\tint min_cp = 1;\n+\tint tx_cp;\n+\n+\tif (bp-\u003etx_nr_rings_xdp) {\n+\t\tmin_tx++;\n+\t\tmin_tx_xdp = 1;\n+\t}\n+\n+\tif (!(bp-\u003eflags \u0026 BNXT_FLAG_SHARED_RINGS)) {\n+\t\ttx_cp = __bnxt_num_tx_to_cp(bp, min_tx, tcs, min_tx_xdp);\n+\t\tmin_cp = tx_cp + min_rx;\n+\t}\n+\treturn hwr-\u003etx \u003e= min_tx \u0026\u0026 hwr-\u003erx \u003e= min_rx \u0026\u0026 hwr-\u003ecp \u003e= min_cp \u0026\u0026\n+\t       hwr-\u003egrp \u0026\u0026 hwr-\u003evnic \u0026\u0026 hwr-\u003estat \u0026\u0026\n+\t       (hwr-\u003ecp_p5 || !(bp-\u003eflags \u0026 BNXT_FLAG_CHIP_P5_PLUS));\n+}\n+\n+/* Check to see if we need to reset the user configured RSS table\n+ * (default RSS context) because of change in RX rings from\n+ * old_rx to new_rx.\n+ */\n+static void bnxt_check_rss_tbl_lost(struct bnxt *bp, int old_rx, int new_rx)\n+{\n+\tif (netif_is_rxfh_configured(bp-\u003edev) \u0026\u0026\n+\t    (bnxt_get_nr_rss_ctxs(bp, old_rx) !=\n+\t     bnxt_get_nr_rss_ctxs(bp, new_rx) ||\n+\t     bnxt_get_max_rss_ring(bp) \u003e= new_rx)) {\n+\t\tethtool_rxfh_indir_lost(bp-\u003edev);\n+\t}\n }\n \n static int bnxt_get_avail_msix(struct bnxt *bp, int num);\n+static void bnxt_adj_rings(struct bnxt *bp);\n \n static int __bnxt_reserve_rings(struct bnxt *bp)\n {\n \tstruct bnxt_en_dev *edev = bp-\u003eedev[BNXT_AUXDEV_RDMA];\n+\tint req_rx_rings = bp-\u003erx_nr_rings;\n+\tint req_tx_rings = bp-\u003etx_nr_rings;\n \tstruct bnxt_hw_rings hwr = {0};\n \tint rx_rings, old_rx_rings, rc;\n \tint cp = bp-\u003ecp_nr_rings;\n@@ -8240,54 +8181,68 @@ static int __bnxt_reserve_rings(struct bnxt *bp)\n \t\thwr.stat -= bnxt_get_ulp_stat_ctxs(bp);\n \thwr.cp = min_t(int, hwr.cp, hwr.stat);\n \trc = bnxt_trim_rings(bp, \u0026rx_rings, \u0026hwr.tx, hwr.cp, sh);\n+\tif (rc)\n+\t\tgoto reserve_rings_exit;\n+\n+\tif (bp-\u003ebnapi \u0026\u0026 (rx_rings \u003c bp-\u003erx_nr_rings ||\n+\t\t\t  hwr.tx \u003c bp-\u003etx_nr_rings)) {\n+\t\tnetdev_err(bp-\u003edev, \"Unexpected ring shrinkage %d/%d RX/TX to %d/%d\\n\",\n+\t\t\t   bp-\u003erx_nr_rings, bp-\u003etx_nr_rings, rx_rings, hwr.tx);\n+\t\trc = -ENOSPC;\n+\t\tgoto reserve_rings_exit;\n+\t}\n \tif (bp-\u003eflags \u0026 BNXT_FLAG_AGG_RINGS)\n \t\thwr.rx = rx_rings \u003c\u003c 1;\n \ttx_cp = bnxt_num_tx_to_cp(bp, hwr.tx);\n \thwr.cp = sh ? max_t(int, tx_cp, rx_rings) : tx_cp + rx_rings;\n-\tif (hwr.tx != bp-\u003etx_nr_rings) {\n-\t\tnetdev_warn(bp-\u003edev,\n-\t\t\t    \"Able to reserve only %d out of %d requested TX rings\\n\",\n-\t\t\t    hwr.tx, bp-\u003etx_nr_rings);\n+\n+\tif (!bnxt_rings_ok(bp, \u0026hwr)) {\n+\t\trc = -ENOMEM;\n+\t\tgoto reserve_rings_exit;\n \t}\n+\n \tbp-\u003etx_nr_rings = hwr.tx;\n+\tbp-\u003erx_nr_rings = rx_rings;\n+\tbp-\u003ecp_nr_rings = hwr.cp;\n+\n+\tif (!bp-\u003ebnapi)\n+\t\tbnxt_adj_rings(bp);\n \n+\tif (req_tx_rings != bp-\u003etx_nr_rings) {\n+\t\tnetdev_warn(bp-\u003edev,\n+\t\t\t    \"Able to reserve only %d out of %d requested TX rings\\n\",\n+\t\t\t    bp-\u003etx_nr_rings, req_tx_rings);\n+\t}\n \t/* If we cannot reserve all the RX rings, reset the RSS map only\n \t * if absolutely necessary\n \t */\n-\tif (rx_rings != bp-\u003erx_nr_rings) {\n+\tif (req_rx_rings != bp-\u003erx_nr_rings) {\n \t\tnetdev_warn(bp-\u003edev, \"Able to reserve only %d out of %d requested RX rings\\n\",\n-\t\t\t    rx_rings, bp-\u003erx_nr_rings);\n-\t\tif (netif_is_rxfh_configured(bp-\u003edev) \u0026\u0026\n-\t\t    (bnxt_get_nr_rss_ctxs(bp, bp-\u003erx_nr_rings) !=\n-\t\t     bnxt_get_nr_rss_ctxs(bp, rx_rings) ||\n-\t\t     bnxt_get_max_rss_ring(bp) \u003e= rx_rings)) {\n-\t\t\tethtool_rxfh_indir_lost(bp-\u003edev);\n-\t\t}\n+\t\t\t    bp-\u003erx_nr_rings, req_rx_rings);\n+\t\tbnxt_check_rss_tbl_lost(bp, req_rx_rings, bp-\u003erx_nr_rings);\n \t}\n-\tbp-\u003erx_nr_rings = rx_rings;\n-\tbp-\u003ecp_nr_rings = hwr.cp;\n \n \t/* Fall back if we cannot reserve enough HW RSS contexts */\n \tif ((bp-\u003erss_cap \u0026 BNXT_RSS_CAP_LARGE_RSS_CTX) \u0026\u0026\n \t    hwr.rss_ctx \u003c bnxt_get_total_rss_ctxs(bp, \u0026hwr))\n \t\tbp-\u003erss_cap \u0026= ~BNXT_RSS_CAP_LARGE_RSS_CTX;\n \n-\tif (!bnxt_rings_ok(bp, \u0026hwr))\n-\t\treturn -ENOMEM;\n-\n-\tif (old_rx_rings != bp-\u003ehw_resc.resv_rx_rings \u0026\u0026\n+\tif ((old_rx_rings != bp-\u003ehw_resc.resv_rx_rings ||\n+\t     req_rx_rings != bp-\u003erx_nr_rings) \u0026\u0026\n \t    !netif_is_rxfh_configured(bp-\u003edev))\n \t\tbnxt_set_dflt_rss_indir_tbl(bp, NULL);\n \n+reserve_rings_exit:\n \tif (!bnxt_ulp_registered(edev) \u0026\u0026 BNXT_NEW_RM(bp)) {\n \t\tint resv_msix, resv_ctx, ulp_ctxs;\n \t\tstruct bnxt_hw_resc *hw_resc;\n \n \t\thw_resc = \u0026bp-\u003ehw_resc;\n-\t\tresv_msix = hw_resc-\u003eresv_irqs - bp-\u003ecp_nr_rings;\n+\t\tresv_msix = max_t(int, hw_resc-\u003eresv_irqs - bp-\u003ecp_nr_rings, 0);\n \t\tulp_msix = min_t(int, resv_msix, ulp_msix);\n \t\tbnxt_set_ulp_msix_num(bp, ulp_msix);\n-\t\tresv_ctx = hw_resc-\u003eresv_stat_ctxs  - bp-\u003ecp_nr_rings;\n+\t\tresv_ctx = max_t(int, hw_resc-\u003eresv_stat_ctxs - bp-\u003ecp_nr_rings,\n+\t\t\t\t 0);\n \t\tulp_ctxs = min(resv_ctx, bnxt_get_ulp_stat_ctxs(bp));\n \t\tbnxt_set_ulp_stat_ctxs(bp, ulp_ctxs);\n \t}\n@@ -8608,9 +8563,6 @@ static void bnxt_hwrm_stat_ctx_free(struct bnxt *bp)\n \tif (!bp-\u003ebnapi)\n \t\treturn;\n \n-\tif (BNXT_CHIP_TYPE_NITRO_A0(bp))\n-\t\treturn;\n-\n \tif (hwrm_req_init(bp, req, HWRM_STAT_CTX_FREE))\n \t\treturn;\n \tif (BNXT_FW_MAJ(bp) \u003c= 20) {\n@@ -8647,9 +8599,6 @@ static int bnxt_hwrm_stat_ctx_alloc(struct bnxt *bp)\n \tstruct hwrm_stat_ctx_alloc_input *req;\n \tint rc, i;\n \n-\tif (BNXT_CHIP_TYPE_NITRO_A0(bp))\n-\t\treturn 0;\n-\n \trc = hwrm_req_init(bp, req, HWRM_STAT_CTX_ALLOC);\n \tif (rc)\n \t\treturn rc;\n@@ -10480,9 +10429,6 @@ static int bnxt_hwrm_ver_get(struct bnxt *bp)\n \n \tbp-\u003echip_num = le16_to_cpu(resp-\u003echip_num);\n \tbp-\u003echip_rev = resp-\u003echip_rev;\n-\tif (bp-\u003echip_num == CHIP_NUM_58700 \u0026\u0026 !resp-\u003echip_rev \u0026\u0026\n-\t    !resp-\u003echip_metal)\n-\t\tbp-\u003eflags |= BNXT_FLAG_CHIP_NITRO_A0;\n \n \tdev_caps_cfg = le32_to_cpu(resp-\u003edev_caps_cfg);\n \tif ((dev_caps_cfg \u0026 VER_GET_RESP_DEV_CAPS_CFG_SHORT_CMD_SUPPORTED) \u0026\u0026\n@@ -10897,16 +10843,6 @@ static int __bnxt_setup_vnic(struct bnxt *bp, struct bnxt_vnic_info *vnic)\n \t}\n \tbp-\u003ersscos_nr_ctxs++;\n \n-\tif (BNXT_CHIP_TYPE_NITRO_A0(bp)) {\n-\t\trc = bnxt_hwrm_vnic_ctx_alloc(bp, vnic, 1);\n-\t\tif (rc) {\n-\t\t\tnetdev_err(bp-\u003edev, \"hwrm vnic %d cos ctx alloc failure rc: %x\\n\",\n-\t\t\t\t   vnic-\u003evnic_id, rc);\n-\t\t\tgoto vnic_setup_err;\n-\t\t}\n-\t\tbp-\u003ersscos_nr_ctxs++;\n-\t}\n-\n skip_rss_ctx:\n \tbnxt_fill_hw_rss_tbl(bp, vnic);\n \t/* configure default vnic, ring grp */\n@@ -11207,30 +11143,6 @@ static bool bnxt_promisc_ok(struct bnxt *bp)\n \treturn true;\n }\n \n-static int bnxt_setup_nitroa0_vnic(struct bnxt *bp)\n-{\n-\tstruct bnxt_vnic_info *vnic = \u0026bp-\u003evnic_info[1];\n-\tunsigned int rc = 0;\n-\n-\trc = bnxt_hwrm_vnic_alloc(bp, vnic, bp-\u003erx_nr_rings - 1, 1);\n-\tif (rc) {\n-\t\tnetdev_err(bp-\u003edev, \"Cannot allocate special vnic for NS2 A0: %x\\n\",\n-\t\t\t   rc);\n-\t\treturn rc;\n-\t}\n-\n-\t/* Setup the proper default RX ring */\n-\tbnxt_fill_hw_rss_tbl(bp, vnic);\n-\n-\trc = bnxt_hwrm_vnic_cfg(bp, vnic);\n-\tif (rc) {\n-\t\tnetdev_err(bp-\u003edev, \"Cannot allocate special vnic for NS2 A0: %x\\n\",\n-\t\t\t   rc);\n-\t\treturn rc;\n-\t}\n-\treturn rc;\n-}\n-\n static int bnxt_cfg_rx_mode(struct bnxt *, struct netdev_hw_addr_list *, bool);\n static bool bnxt_mc_list_updated(struct bnxt *, u32 *,\n \t\t\t\t const struct netdev_hw_addr_list *);\n@@ -11239,7 +11151,6 @@ static int bnxt_init_chip(struct bnxt *bp, bool irq_re_init)\n {\n \tstruct bnxt_vnic_info *vnic = \u0026bp-\u003evnic_info[BNXT_VNIC_DEFAULT];\n \tint rc = 0;\n-\tunsigned int rx_nr_rings = bp-\u003erx_nr_rings;\n \n \tif (irq_re_init) {\n \t\trc = bnxt_hwrm_stat_ctx_alloc(bp);\n@@ -11262,11 +11173,8 @@ static int bnxt_init_chip(struct bnxt *bp, bool irq_re_init)\n \t\tgoto err_out;\n \t}\n \n-\tif (BNXT_CHIP_TYPE_NITRO_A0(bp))\n-\t\trx_nr_rings--;\n-\n \t/* default vnic 0 */\n-\trc = bnxt_hwrm_vnic_alloc(bp, vnic, 0, rx_nr_rings);\n+\trc = bnxt_hwrm_vnic_alloc(bp, vnic, 0, bp-\u003erx_nr_rings);\n \tif (rc) {\n \t\tnetdev_err(bp-\u003edev, \"hwrm vnic alloc failure rc: %x\\n\", rc);\n \t\tgoto err_out;\n@@ -11341,13 +11249,6 @@ static int bnxt_init_chip(struct bnxt *bp, bool irq_re_init)\n \t\tnetdev_warn(bp-\u003edev, \"HWRM set coalescing failure rc: %x\\n\",\n \t\t\t\trc);\n \n-\tif (BNXT_CHIP_TYPE_NITRO_A0(bp)) {\n-\t\trc = bnxt_setup_nitroa0_vnic(bp);\n-\t\tif (rc)\n-\t\t\tnetdev_err(bp-\u003edev, \"Special vnic setup failure for NS2 A0 rc: %x\\n\",\n-\t\t\t\t   rc);\n-\t}\n-\n \tif (BNXT_VF(bp)) {\n \t\tbnxt_hwrm_func_qcfg(bp);\n \t\tnetdev_update_features(bp-\u003edev);\n@@ -11510,6 +11411,12 @@ static int bnxt_change_msix(struct bnxt *bp, int total)\n \tstruct msi_map map;\n \tint i;\n \n+\tif (!bp-\u003eirq_tbl)\n+\t\treturn 0;\n+\n+\tif (total \u003e bp-\u003eirq_tbl_size)\n+\t\treturn bp-\u003etotal_irqs;\n+\n \t/* add MSIX to the end if needed */\n \tfor (i = bp-\u003etotal_irqs; i \u003c total; i++) {\n \t\tmap = pci_msix_alloc_irq_at(bp-\u003epdev, i, NULL);\n@@ -11629,7 +11536,9 @@ static int bnxt_get_num_msix(struct bnxt *bp)\n \n static int bnxt_init_int_mode(struct bnxt *bp)\n {\n-\tint i, total_vecs, max, rc, min = 1, ulp_msix, tx_cp, tbl_size;\n+\tint i, total_vecs, max, rc, min = 1, ulp_msix, tbl_size, req_rx_rings;\n+\tint min_tx, req_tx_rings, req_cp_rings, req_tx_per_tc, req_tx_xdp;\n+\tint tcs = bp-\u003enum_tc ? bp-\u003enum_tc : 1;\n \n \ttotal_vecs = bnxt_get_num_msix(bp);\n \tmax = bnxt_get_max_func_irqs(bp);\n@@ -11652,34 +11561,68 @@ static int bnxt_init_int_mode(struct bnxt *bp)\n \n \ttbl_size = total_vecs;\n \tif (pci_msix_can_alloc_dyn(bp-\u003epdev))\n-\t\ttbl_size = max;\n+\t\ttbl_size = bp-\u003ehw_resc.max_irqs;\n \tbp-\u003eirq_tbl = kzalloc_objs(*bp-\u003eirq_tbl, tbl_size);\n \tif (!bp-\u003eirq_tbl) {\n \t\trc = -ENOMEM;\n \t\tgoto msix_setup_exit;\n \t}\n+\tbp-\u003eirq_tbl_size = tbl_size;\n \n \tfor (i = 0; i \u003c total_vecs; i++)\n \t\tbp-\u003eirq_tbl[i].vector = pci_irq_vector(bp-\u003epdev, i);\n \n \tbp-\u003etotal_irqs = total_vecs;\n+\treq_tx_rings = bp-\u003etx_nr_rings;\n+\treq_tx_per_tc = bp-\u003etx_nr_rings_per_tc;\n+\treq_tx_xdp = bp-\u003etx_nr_rings_xdp;\n+\treq_rx_rings = bp-\u003erx_nr_rings;\n+\treq_cp_rings = bp-\u003ecp_nr_rings;\n+\n \t/* Trim rings based upon num of vectors allocated */\n \trc = bnxt_trim_rings(bp, \u0026bp-\u003erx_nr_rings, \u0026bp-\u003etx_nr_rings,\n \t\t\t     total_vecs - ulp_msix, min == 1);\n \tif (rc)\n \t\tgoto msix_setup_exit;\n \n-\ttx_cp = bnxt_num_tx_to_cp(bp, bp-\u003etx_nr_rings);\n-\tbp-\u003ecp_nr_rings = (min == 1) ?\n-\t\t\t  max_t(int, tx_cp, bp-\u003erx_nr_rings) :\n-\t\t\t  tx_cp + bp-\u003erx_nr_rings;\n+\tmin_tx = bp-\u003etx_nr_rings_xdp ? tcs + 1 : tcs;\n+\tif (bp-\u003etx_nr_rings \u003c min_tx) {\n+\t\tnetdev_err(bp-\u003edev, \"Not enough MSI-X to satisfy min. TX rings\\n\");\n+\t\trc = -ENOMEM;\n+\t\tgoto msix_setup_exit_restore;\n+\t}\n+\n+\tbnxt_adj_rings(bp);\n+\n+\tif (bp-\u003ebnapi \u0026\u0026 (req_tx_rings != bp-\u003etx_nr_rings ||\n+\t\t\t  req_rx_rings != bp-\u003erx_nr_rings)) {\n+\t\tnetdev_err(bp-\u003edev, \"Cannot shrink rings once NAPI is allocated\\n\");\n+\t\trc = -ENOSPC;\n+\t\tgoto msix_setup_exit_restore;\n+\t}\n \n+\tif (req_rx_rings != bp-\u003erx_nr_rings) {\n+\t\tnetdev_warn(bp-\u003edev, \"RX rings reduced from %d to %d\\n\",\n+\t\t\t    req_rx_rings, bp-\u003erx_nr_rings);\n+\t\tbnxt_check_rss_tbl_lost(bp, req_rx_rings, bp-\u003erx_nr_rings);\n+\t\tif (!netif_is_rxfh_configured(bp-\u003edev))\n+\t\t\tbnxt_set_dflt_rss_indir_tbl(bp, NULL);\n+\t}\n \treturn 0;\n \n+msix_setup_exit_restore:\n+\tbp-\u003etx_nr_rings = req_tx_rings;\n+\tbp-\u003etx_nr_rings_per_tc = req_tx_per_tc;\n+\tbp-\u003etx_nr_rings_xdp = req_tx_xdp;\n+\tbp-\u003erx_nr_rings = req_rx_rings;\n+\tbp-\u003ecp_nr_rings = req_cp_rings;\n+\n msix_setup_exit:\n \tnetdev_err(bp-\u003edev, \"bnxt_init_int_mode err: %x\\n\", rc);\n \tkfree(bp-\u003eirq_tbl);\n \tbp-\u003eirq_tbl = NULL;\n+\tbp-\u003etotal_irqs = 0;\n+\tbp-\u003eirq_tbl_size = 0;\n \tpci_free_irq_vectors(bp-\u003epdev);\n \treturn rc;\n }\n@@ -11690,33 +11633,36 @@ static void bnxt_clear_int_mode(struct bnxt *bp)\n \n \tkfree(bp-\u003eirq_tbl);\n \tbp-\u003eirq_tbl = NULL;\n+\tbp-\u003eirq_tbl_size = 0;\n }\n \n-int bnxt_reserve_rings(struct bnxt *bp, bool irq_re_init)\n+static int bnxt_irqs_required(struct bnxt *bp)\n {\n \tstruct bnxt_en_dev *edev = bp-\u003eedev[BNXT_AUXDEV_RDMA];\n-\tbool irq_cleared = false;\n-\tbool irq_change = false;\n-\tint tcs = bp-\u003enum_tc;\n-\tint irqs_required;\n-\tint rc;\n-\n-\tif (!bnxt_need_reserve_rings(bp))\n-\t\treturn 0;\n \n \tif (BNXT_NEW_RM(bp) \u0026\u0026 !bnxt_ulp_registered(edev)) {\n \t\tint ulp_msix = bnxt_get_avail_msix(bp, bp-\u003eulp_num_msix_want);\n \n \t\tif (ulp_msix \u003e bp-\u003eulp_num_msix_want)\n \t\t\tulp_msix = bp-\u003eulp_num_msix_want;\n-\t\tirqs_required = ulp_msix + bp-\u003ecp_nr_rings;\n-\t} else {\n-\t\tirqs_required = bnxt_get_num_msix(bp);\n+\t\treturn ulp_msix + bp-\u003ecp_nr_rings;\n \t}\n+\treturn bnxt_get_num_msix(bp);\n+}\n+\n+int bnxt_reserve_rings(struct bnxt *bp, bool irq_re_init)\n+{\n+\tbool irq_cleared = false;\n+\tint irqs_required;\n+\tint rc;\n+\n+\tif (!bnxt_need_reserve_rings(bp))\n+\t\treturn 0;\n+\n+\tirqs_required = bnxt_irqs_required(bp);\n \n \tif (irq_re_init \u0026\u0026 BNXT_NEW_RM(bp) \u0026\u0026 irqs_required != bp-\u003etotal_irqs) {\n-\t\tirq_change = true;\n-\t\tif (!pci_msix_can_alloc_dyn(bp-\u003epdev)) {\n+\t\tif (!pci_msix_can_alloc_dyn(bp-\u003epdev) || !bp-\u003eirq_tbl) {\n \t\t\tbnxt_ulp_irq_stop(bp);\n \t\t\tbnxt_clear_int_mode(bp);\n \t\t\tirq_cleared = true;\n@@ -11727,25 +11673,23 @@ int bnxt_reserve_rings(struct bnxt *bp, bool irq_re_init)\n \t\tif (!rc)\n \t\t\trc = bnxt_init_int_mode(bp);\n \t\tbnxt_ulp_irq_restart(bp, rc);\n-\t} else if (irq_change \u0026\u0026 !rc) {\n-\t\tif (bnxt_change_msix(bp, irqs_required) != irqs_required)\n-\t\t\trc = -ENOSPC;\n+\t} else if (irq_re_init \u0026\u0026 BNXT_NEW_RM(bp) \u0026\u0026 !rc) {\n+\t\t/* __bnxt_reserve_rings() may have shrunk the rings */\n+\t\tirqs_required = bnxt_irqs_required(bp);\n+\t\tif (irqs_required != bp-\u003etotal_irqs) {\n+\t\t\t/* Don't bother reducing static IRQs to avoid disrupting\n+\t\t\t * RoCE.\n+\t\t\t */\n+\t\t\tif (pci_msix_can_alloc_dyn(bp-\u003epdev) \u0026\u0026\n+\t\t\t    bnxt_change_msix(bp, irqs_required) !=\n+\t\t\t    irqs_required)\n+\t\t\t\trc = -ENOSPC;\n+\t\t}\n \t}\n \tif (rc) {\n \t\tnetdev_err(bp-\u003edev, \"ring reservation/IRQ init failure rc: %d\\n\", rc);\n \t\treturn rc;\n \t}\n-\tif (tcs \u0026\u0026 (bp-\u003etx_nr_rings_per_tc * tcs !=\n-\t\t    bp-\u003etx_nr_rings - bp-\u003etx_nr_rings_xdp)) {\n-\t\tnetdev_err(bp-\u003edev, \"tx ring reservation failure\\n\");\n-\t\tnetdev_reset_tc(bp-\u003edev);\n-\t\tbp-\u003enum_tc = 0;\n-\t\tif (bp-\u003etx_nr_rings_xdp)\n-\t\t\tbp-\u003etx_nr_rings_per_tc = bp-\u003etx_nr_rings_xdp;\n-\t\telse\n-\t\t\tbp-\u003etx_nr_rings_per_tc = bp-\u003etx_nr_rings;\n-\t\treturn -ENOMEM;\n-\t}\n \treturn 0;\n }\n \n@@ -12084,26 +12028,19 @@ static void bnxt_del_napi(struct bnxt *bp)\n static void bnxt_init_napi(struct bnxt *bp)\n {\n \tint (*poll_fn)(struct napi_struct *, int) = bnxt_poll;\n-\tunsigned int cp_nr_rings = bp-\u003ecp_nr_rings;\n \tstruct bnxt_napi *bnapi;\n \tint i;\n \n \tif (bp-\u003eflags \u0026 BNXT_FLAG_CHIP_P5_PLUS)\n \t\tpoll_fn = bnxt_poll_p5;\n-\telse if (BNXT_CHIP_TYPE_NITRO_A0(bp))\n-\t\tcp_nr_rings--;\n \n \tset_bit(BNXT_STATE_NAPI_DISABLED, \u0026bp-\u003estate);\n \n-\tfor (i = 0; i \u003c cp_nr_rings; i++) {\n+\tfor (i = 0; i \u003c bp-\u003ecp_nr_rings; i++) {\n \t\tbnapi = bp-\u003ebnapi[i];\n \t\tnetif_napi_add_config_locked(bp-\u003edev, \u0026bnapi-\u003enapi, poll_fn,\n \t\t\t\t\t     bnapi-\u003eindex);\n \t}\n-\tif (BNXT_CHIP_TYPE_NITRO_A0(bp)) {\n-\t\tbnapi = bp-\u003ebnapi[cp_nr_rings];\n-\t\tnetif_napi_add_locked(bp-\u003edev, \u0026bnapi-\u003enapi, bnxt_poll_nitroa0);\n-\t}\n }\n \n static void bnxt_disable_napi(struct bnxt *bp)\n@@ -13250,13 +13187,29 @@ static void bnxt_set_xdp_tx_rings(struct bnxt *bp)\n \tbp-\u003etx_nr_rings += bp-\u003etx_nr_rings_xdp;\n }\n \n-static void bnxt_adj_tx_rings(struct bnxt *bp)\n+static void bnxt_adj_rings(struct bnxt *bp)\n {\n-\t/* Make adjustments if reserved TX rings are less than requested */\n-\tbp-\u003etx_nr_rings -= bp-\u003etx_nr_rings_xdp;\n-\tbp-\u003etx_nr_rings_per_tc = bnxt_tx_nr_rings_per_tc(bp);\n-\tif (bp-\u003etx_nr_rings_xdp)\n-\t\tbnxt_set_xdp_tx_rings(bp);\n+\tint tcs = bp-\u003enum_tc ? bp-\u003enum_tc : 1;\n+\tint rx = bp-\u003erx_nr_rings;\n+\n+\t/* Make adjustments to rings based on TC/XDP/shared rings policies */\n+\tif (bp-\u003etx_nr_rings_xdp) {\n+\t\ttcs++;\n+\t\tbp-\u003etx_nr_rings_per_tc = bp-\u003etx_nr_rings / tcs;\n+\t\tbp-\u003etx_nr_rings_xdp = bp-\u003etx_nr_rings_per_tc;\n+\t} else {\n+\t\tbp-\u003etx_nr_rings_per_tc = bnxt_tx_nr_rings_per_tc(bp);\n+\t}\n+\n+\tif (bp-\u003eflags \u0026 BNXT_FLAG_SHARED_RINGS) {\n+\t\tbp-\u003etx_nr_rings_per_tc = min(bp-\u003etx_nr_rings_per_tc, rx);\n+\t\tbp-\u003erx_nr_rings = bp-\u003etx_nr_rings_per_tc;\n+\t\tif (bp-\u003etx_nr_rings_xdp)\n+\t\t\tbp-\u003etx_nr_rings_xdp = bp-\u003etx_nr_rings_per_tc;\n+\t}\n+\n+\tbp-\u003etx_nr_rings = bp-\u003etx_nr_rings_per_tc * tcs;\n+\tbnxt_set_cp_rings(bp, bp-\u003eflags \u0026 BNXT_FLAG_SHARED_RINGS);\n }\n \n static int __bnxt_open_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init)\n@@ -13276,7 +13229,6 @@ static int __bnxt_open_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init)\n \tif (rc)\n \t\treturn rc;\n \n-\tbnxt_adj_tx_rings(bp);\n \trc = bnxt_alloc_mem(bp, irq_re_init);\n \tif (rc) {\n \t\tnetdev_err(bp-\u003edev, \"bnxt_alloc_mem err: %x\\n\", rc);\n@@ -13977,7 +13929,7 @@ static bool bnxt_rfs_supported(struct bnxt *bp)\n \t/* 212 firmware is broken for aRFS */\n \tif (BNXT_FW_MAJ(bp) == 212)\n \t\treturn false;\n-\tif (BNXT_PF(bp) \u0026\u0026 !BNXT_CHIP_TYPE_NITRO_A0(bp))\n+\tif (BNXT_PF(bp))\n \t\treturn true;\n \tif (bp-\u003erss_cap \u0026 BNXT_RSS_CAP_NEW_RSS_CAP)\n \t\treturn true;\n@@ -14080,7 +14032,8 @@ static int bnxt_reinit_features(struct bnxt *bp, bool irq_re_init,\n \t\t\t\tbool link_re_init, u32 flags, bool update_tpa)\n {\n \tbnxt_close_nic(bp, irq_re_init, link_re_init);\n-\tbp-\u003eflags = flags;\n+\tbp-\u003eflags = (bp-\u003eflags \u0026 ~BNXT_FLAG_ALL_CONFIG_FEATS) |\n+\t\t    (flags \u0026 BNXT_FLAG_ALL_CONFIG_FEATS);\n \tif (update_tpa)\n \t\tbnxt_set_ring_params(bp);\n \treturn bnxt_open_nic(bp, irq_re_init, link_re_init);\n@@ -14090,10 +14043,11 @@ static int bnxt_set_features(struct net_device *dev, netdev_features_t features)\n {\n \tbool update_tpa = false, update_ntuple = false;\n \tstruct bnxt *bp = netdev_priv(dev);\n+\tbool irq_re_init = false;\n \tu32 flags = bp-\u003eflags;\n+\tbool re_init = false;\n \tu32 changes;\n \tint rc = 0;\n-\tbool re_init = false;\n \n \tbp-\u003etx_wake_thresh = max_t(int, bp-\u003etx_ring_size / 2,\n \t\t\t\t   bnxt_min_tx_desc_cnt(bp, features));\n@@ -14120,8 +14074,12 @@ static int bnxt_set_features(struct net_device *dev, netdev_features_t features)\n \t\tupdate_tpa = true;\n \t\tif ((bp-\u003eflags \u0026 BNXT_FLAG_TPA) == 0 ||\n \t\t    (flags \u0026 BNXT_FLAG_TPA) == 0 ||\n-\t\t    (bp-\u003eflags \u0026 BNXT_FLAG_CHIP_P5_PLUS))\n+\t\t    (bp-\u003eflags \u0026 BNXT_FLAG_CHIP_P5_PLUS)) {\n \t\t\tre_init = true;\n+\t\t\tif (!(bp-\u003eflags \u0026 BNXT_FLAG_AGG_RINGS) \u0026\u0026\n+\t\t\t    (flags \u0026 BNXT_FLAG_AGG_RINGS))\n+\t\t\t\tirq_re_init = true;\n+\t\t}\n \t}\n \n \tif (changes \u0026 ~BNXT_FLAG_TPA)\n@@ -14144,7 +14102,7 @@ static int bnxt_set_features(struct net_device *dev, netdev_features_t features)\n \t\t\treturn bnxt_reinit_features(bp, true, false, flags, update_tpa);\n \n \t\tif (re_init)\n-\t\t\treturn bnxt_reinit_features(bp, false, false, flags, update_tpa);\n+\t\t\treturn bnxt_reinit_features(bp, irq_re_init, false, flags, update_tpa);\n \n \t\tif (update_tpa) {\n \t\t\tbp-\u003eflags = flags;\n@@ -15080,7 +15038,7 @@ int bnxt_check_rings(struct bnxt *bp, int tx, int rx, bool sh, int tcs,\n \t\t\thwr.cp += bnxt_get_ulp_msix_num(bp);\n \t\t\thwr.cp = min_t(int, hwr.cp, bnxt_get_max_func_irqs(bp));\n \t\t}\n-\t\tif (hwr.cp \u003e bp-\u003etotal_irqs) {\n+\t\tif (bp-\u003eirq_tbl \u0026\u0026 hwr.cp \u003e bp-\u003etotal_irqs) {\n \t\t\tint total_msix = bnxt_change_msix(bp, hwr.cp);\n \n \t\t\tif (total_msix \u003c hwr.cp) {\n@@ -16794,10 +16752,6 @@ static void _bnxt_get_max_rings(struct bnxt *bp, int *max_rx, int *max_tx,\n \tif (!(bp-\u003eflags \u0026 BNXT_FLAG_CHIP_P5_PLUS))\n \t\t*max_cp = min_t(int, *max_cp, max_irq);\n \tmax_ring_grps = hw_resc-\u003emax_hw_ring_grps;\n-\tif (BNXT_CHIP_TYPE_NITRO_A0(bp) \u0026\u0026 BNXT_PF(bp)) {\n-\t\t*max_cp -= 1;\n-\t\t*max_rx -= 2;\n-\t}\n \tif (bp-\u003eflags \u0026 BNXT_FLAG_AGG_RINGS)\n \t\t*max_rx \u003e\u003e= 1;\n \tif (bp-\u003eflags \u0026 BNXT_FLAG_CHIP_P5_PLUS) {\n@@ -16936,7 +16890,6 @@ static int bnxt_set_dflt_rings(struct bnxt *bp, bool sh)\n \tif (rc \u0026\u0026 rc != -ENODEV)\n \t\tnetdev_warn(bp-\u003edev, \"Unable to reserve tx rings\\n\");\n \n-\tbnxt_adj_tx_rings(bp);\n \tif (sh)\n \t\tbnxt_adj_dflt_rings(bp, true);\n \n@@ -16945,11 +16898,6 @@ static int bnxt_set_dflt_rings(struct bnxt *bp, bool sh)\n \t\trc = __bnxt_reserve_rings(bp);\n \t\tif (rc \u0026\u0026 rc != -ENODEV)\n \t\t\tnetdev_warn(bp-\u003edev, \"2nd rings reservation failed.\\n\");\n-\t\tbnxt_adj_tx_rings(bp);\n-\t}\n-\tif (BNXT_CHIP_TYPE_NITRO_A0(bp)) {\n-\t\tbp-\u003erx_nr_rings++;\n-\t\tbp-\u003ecp_nr_rings++;\n \t}\n \tif (rc) {\n \t\tbp-\u003etx_nr_rings = 0;\n@@ -16979,8 +16927,6 @@ static int bnxt_init_dflt_ring_mode(struct bnxt *bp)\n \tif (rc)\n \t\tgoto init_dflt_ring_err;\n \n-\tbnxt_adj_tx_rings(bp);\n-\n \tbnxt_set_dflt_rfs(bp);\n \n init_dflt_ring_err:\n@@ -17221,6 +17167,13 @@ static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)\n \tif (rc)\n \t\tgoto init_err_pci_clean;\n \n+\tif (bp-\u003echip_num == CHIP_NUM_58700 \u0026\u0026 !bp-\u003echip_rev \u0026\u0026\n+\t    !bp-\u003ever_resp.chip_metal) {\n+\t\tdev_err(\u0026pdev-\u003edev, \"58700 A0 unsupported, aborting\\n\");\n+\t\trc = -ENODEV;\n+\t\tgoto init_err_pci_clean;\n+\t}\n+\n \tif (BNXT_PF(bp))\n \t\tbnxt_vpd_read_info(bp);\n \n@@ -17367,11 +17320,6 @@ static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)\n \tif (rc)\n \t\tgoto init_err_pci_clean;\n \n-\t/* No TC has been set yet and rings may have been trimmed due to\n-\t * limited MSIX, so we re-initialize the TX rings per TC.\n-\t */\n-\tbp-\u003etx_nr_rings_per_tc = bp-\u003etx_nr_rings;\n-\n \tif (BNXT_PF(bp)) {\n \t\tif (!bnxt_pf_wq) {\n \t\t\tbnxt_pf_wq =\n@@ -17743,7 +17691,7 @@ static void bnxt_io_resume(struct pci_dev *pdev)\n \t\t\terr = bnxt_open(netdev);\n \t\t} else {\n \t\t\terr = bnxt_reserve_rings(bp, true);\n-\t\t\tif (!err)\n+\t\t\tif (!err \u0026\u0026 !bp-\u003eirq_tbl)\n \t\t\t\terr = bnxt_init_int_mode(bp);\n \t\t}\n \t}\ndiff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.h b/drivers/net/ethernet/broadcom/bnxt/bnxt.h\nindex 41d05efd6307a..51a269d06c497 100644\n--- a/drivers/net/ethernet/broadcom/bnxt/bnxt.h\n+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.h\n@@ -2295,7 +2295,6 @@ struct bnxt {\n \t#define BNXT_FLAG_DSN_VALID\t0x200000\n \t#define BNXT_FLAG_DOUBLE_DB\t0x400000\n \t#define BNXT_FLAG_UDP_GSO_CAP\t0x800000\n-\t#define BNXT_FLAG_CHIP_NITRO_A0\t0x1000000\n \t#define BNXT_FLAG_DIM\t\t0x2000000\n \t#define BNXT_FLAG_ROCE_MIRROR_CAP\t0x4000000\n \t#define BNXT_FLAG_TX_COAL_CMPL\t0x8000000\n@@ -2323,10 +2322,8 @@ struct bnxt {\n #define BNXT_PHY_CFG_ABLE(bp)\t((BNXT_SINGLE_PF(bp) ||\t\t\t\\\n \t\t\t\t  BNXT_SH_PORT_CFG_OK(bp)) \u0026\u0026\t\t\\\n \t\t\t\t (bp)-\u003elink_info.phy_state == BNXT_PHY_STATE_ENABLED)\n-#define BNXT_CHIP_TYPE_NITRO_A0(bp) ((bp)-\u003eflags \u0026 BNXT_FLAG_CHIP_NITRO_A0)\n #define BNXT_RX_PAGE_MODE(bp)\t((bp)-\u003eflags \u0026 BNXT_FLAG_RX_PAGE_MODE)\n-#define BNXT_SUPPORTS_TPA(bp)\t(!BNXT_CHIP_TYPE_NITRO_A0(bp) \u0026\u0026\t\\\n-\t\t\t\t (!((bp)-\u003eflags \u0026 BNXT_FLAG_CHIP_P5_PLUS) ||\\\n+#define BNXT_SUPPORTS_TPA(bp)\t((!((bp)-\u003eflags \u0026 BNXT_FLAG_CHIP_P5_PLUS) ||\\\n \t\t\t\t  (bp)-\u003emax_tpa_v2) \u0026\u0026 !is_kdump_kernel())\n #define BNXT_RX_JUMBO_MODE(bp)\t((bp)-\u003eflags \u0026 BNXT_FLAG_JUMBO)\n \n@@ -2347,13 +2344,11 @@ struct bnxt {\n \t(BNXT_CHIP_NUM_57X1X((bp)-\u003echip_num) ||\t\\\n \t BNXT_CHIP_NUM_5745X((bp)-\u003echip_num) ||\t\\\n \t BNXT_CHIP_NUM_588XX((bp)-\u003echip_num) ||\t\\\n-\t (BNXT_CHIP_NUM_58700((bp)-\u003echip_num) \u0026\u0026\t\\\n-\t  !BNXT_CHIP_TYPE_NITRO_A0(bp)))\n+\t BNXT_CHIP_NUM_58700((bp)-\u003echip_num))\n \n /* Chip class phase 3.x */\n #define BNXT_CHIP_P3(bp)\t\t\t\\\n-\t(BNXT_CHIP_NUM_57X0X((bp)-\u003echip_num) ||\t\\\n-\t BNXT_CHIP_TYPE_NITRO_A0(bp))\n+\t(BNXT_CHIP_NUM_57X0X((bp)-\u003echip_num))\n \n #define BNXT_CHIP_P4_PLUS(bp)\t\t\t\\\n \t(BNXT_CHIP_P4(bp) || BNXT_CHIP_P5_PLUS(bp))\n@@ -2489,6 +2484,7 @@ struct bnxt {\n \t */\n \tunsigned long\t\t*ring_affinity_set;\n \tint\t\t\tmax_irqs;\n+\tint\t\t\tirq_tbl_size;\n \tint\t\t\ttotal_irqs;\n \tint\t\t\tulp_num_msix_want;\n \tu8\t\t\tmac_addr[ETH_ALEN];\ndiff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c\nindex 622e89587e5db..62f894021fd18 100644\n--- a/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c\n+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c\n@@ -853,6 +853,7 @@ static int bnxt_set_ringparam(struct net_device *dev,\n {\n \tu8 tcp_data_split = kernel_ering-\u003etcp_data_split;\n \tstruct bnxt *bp = netdev_priv(dev);\n+\tbool irq_re_init = false;\n \tu8 hds_config_mod;\n \tint rc;\n \n@@ -876,8 +877,13 @@ static int bnxt_set_ringparam(struct net_device *dev,\n \t\treturn -EINVAL;\n \t}\n \n+\tif (hds_config_mod \u0026\u0026\n+\t    tcp_data_split == ETHTOOL_TCP_DATA_SPLIT_ENABLED \u0026\u0026\n+\t    !(bp-\u003eflags \u0026 BNXT_FLAG_AGG_RINGS))\n+\t\tirq_re_init = true;\n+\n \tif (netif_running(dev))\n-\t\tbnxt_close_nic(bp, false, false);\n+\t\tbnxt_close_nic(bp, irq_re_init, false);\n \n \tif (hds_config_mod) {\n \t\tif (tcp_data_split == ETHTOOL_TCP_DATA_SPLIT_ENABLED)\n@@ -891,7 +897,7 @@ static int bnxt_set_ringparam(struct net_device *dev,\n \tbnxt_set_ring_params(bp);\n \n \tif (netif_running(dev)) {\n-\t\trc = bnxt_open_nic(bp, false, false);\n+\t\trc = bnxt_open_nic(bp, irq_re_init, false);\n \t\tif (rc)\n \t\t\treturn rc;\n \t}\n@@ -943,13 +949,9 @@ static void bnxt_get_channels(struct net_device *dev,\n \tchannel-\u003emax_other = 0;\n \tif (bp-\u003eflags \u0026 BNXT_FLAG_SHARED_RINGS) {\n \t\tchannel-\u003ecombined_count = bp-\u003erx_nr_rings;\n-\t\tif (BNXT_CHIP_TYPE_NITRO_A0(bp))\n-\t\t\tchannel-\u003ecombined_count--;\n \t} else {\n-\t\tif (!BNXT_CHIP_TYPE_NITRO_A0(bp)) {\n-\t\t\tchannel-\u003erx_count = bp-\u003erx_nr_rings;\n-\t\t\tchannel-\u003etx_count = bp-\u003etx_nr_rings_per_tc;\n-\t\t}\n+\t\tchannel-\u003erx_count = bp-\u003erx_nr_rings;\n+\t\tchannel-\u003etx_count = bp-\u003etx_nr_rings_per_tc;\n \t}\n }\n \n@@ -974,10 +976,6 @@ static int bnxt_set_channels(struct net_device *dev,\n \t    (channel-\u003erx_count || channel-\u003etx_count))\n \t\treturn -EINVAL;\n \n-\tif (BNXT_CHIP_TYPE_NITRO_A0(bp) \u0026\u0026 (channel-\u003erx_count ||\n-\t\t\t\t\t    channel-\u003etx_count))\n-\t\treturn -EINVAL;\n-\n \tif (channel-\u003ecombined_count)\n \t\tsh = true;\n \n"
}

2/1 2026/10/12 22:55 agent patch-evaluator
1m Model:
core

Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch series exclusively modifies the Broadcom NetXtreme-C/E driver (drivers/net/ethernet/broadcom/bnxt/), which is a vendor-specific PCIe NIC driver requiring physical Broadcom ASIC hardware. Because this hardware is not emulated in standard virtualized environments (QEMU/GCE), the modified code is structurally unreachable for syzkaller fuzzing.",
  "WorthFuzzing": false
}

Instruction:
You are an expert Linux kernel maintainer and security engineer.
Your job is to review a provided patch series and evaluate whether it warrants fuzzing with syzkaller.

IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in
your workspace. Do NOT rely on internal assumptions. You must actively use your code access
tools to inspect the actual source code, callers, and surrounding context.

================================================================================
1. CORE TRIAGE PHILOSOPHY
================================================================================
The goal of patch fuzzing is to discover crashes, regressions, exposed latent bugs,
and newly triggered assertions introduced by the patch series.

- REACHABILITY IS THE PRIMARY GATE:
  Fuzzing can only discover bugs in code that can actually execute in standard virtualized
  environments (GCE or QEMU, utilizing software-emulated devices like USB gadgets, netdev, tun/tap).
  If the modified code is structurally unreachable (see Section 2), it MUST NOT be fuzzed,
  regardless of whether it adds assertions or complex logic.

- DO NOT BLINDLY TRUST "NO FUNCTIONAL CHANGE" (NFCI) OR "REFACTORING" CLAIMS:
  Patch authors routinely label changes as "cleanups", "refactorings", or state
  "No functional change intended". Do NOT take these claims at face value.
  Code refactorings that rearrange logic, introduce helper functions, or alter state management
  in core subsystems frequently introduce subtle semantic shifts or uncover latent kernel bugs.
  If reachable executable code is modified or refactored, it MUST be fuzzed.

- NEW OR MODIFIED ASSERTIONS IN REACHABLE CODE MUST BE FUZZED:
  When a patch introduces or modifies runtime checks or assertions (e.g., WARN_ON*, VM_WARN_ON*,
  BUG_ON*, lockdep_assert*) in reachable code paths, it enforces new or stricter invariants.
  Even if the author believes the invariant always holds, fuzzing is essential to verify whether
  an unusual sequence of operations can violate it.

================================================================================
2. WHEN TO RETURN WorthFuzzing=false (NEGATIVE CRITERIA)
================================================================================
Return WorthFuzzing=false ONLY IF all modified code falls strictly into one or more of these categories:

- Non-kernel and non-executable changes:
  * Modifications to Documentation/, comments, or spelling fixes.
  * User-space directories, self-tests, samples, or scripts (e.g., tools/, samples/, scripts/, usr/)
    that do not affect the compiled kernel image (vmlinux) or kernel modules.
  * Purely decorative logging (e.g., message strings in pr_err, printk, dev_info) or tracepoints
    that do not alter control flow or data structures.
  * Build system or Kconfig changes that do not alter compiled C logic.
- Structurally unreachable hardware:
  * Vendor-specific PCIe switches, SmartNICs, or GPU drivers (e.g., mlxsw, pds_core, qed,
    ionic, amdgpu) requiring physical ASIC/PCIe cards not emulated in standard QEMU.
- Unreachable execution paths:
  * Driver teardown callbacks (.remove, .shutdown, pci_unregister_driver) executed only during
    physical PCI hot-unplug or manual sysfs driver unbinding.
  * Code paths exclusive to architectures other than the target architecture.

================================================================================
3. WHEN TO RETURN WorthFuzzing=true (POSITIVE CRITERIA)
================================================================================
Return WorthFuzzing=true whenever the patch touches reachable executable code, including:
- Core Subsystems:
  * Any logic modifications in memory management (mm/), synchronization/locking (kernel/locking/),
    BPF, scheduler, core networking, VFS, or syscall handling.
- Refactorings and Code Cleanups:
  * Any restructuring of reachable data structures, helper abstractions, or algorithm flows.
- Runtime Assertions and Defensive Checks:
  * Any introduction or alteration of assertions (WARN_ON*, VM_WARN_ON*, BUG_ON*, etc.) in reachable paths.
- Reachable Drivers and Protocols:
  * Drivers accessible via virtual buses (virtio, USB gadget, loopback, netlink, binder, sockets, etc.).

================================================================================
4. EXTRACTING FocusSymbols (PREVENTING DILUTION)
================================================================================
When WorthFuzzing=true, you must extract specific kernel functions into FocusSymbols to guide the fuzzer:

- AVOID UBIQUITOUS LIFECYCLE HOT-PATHS:
  Do NOT list generic, ubiquitous functions called by almost every program in the corpus
  (including, but not limited to: general memory allocators and deallocators, page fault
  and trap handlers, or core synchronization primitives; this is not an exhaustive list).
  Listing ubiquitous functions causes the fuzzer to classify thousands of unrelated tests as "focused",
  which severely dilutes fuzzing effort away from the actual changes.

- TARGET SPECIFIC FEATURE LOGIC AND ENTRYPOINTS:
  List functions that specifically implement the logic being added or altered, or direct API entrypoints
  for the subsystem feature under review.

- HANDLING STATIC INLINE FUNCTIONS IN HEADERS (.h):
  Compiler-inlined static functions (such as static inlines in mm/*.h or include/linux/*.h) lack
  distinct symbol addresses in vmlinux and cannot be targeted directly by symbol coverage filters.
  If the changes are primarily in static inline helpers, identify non-static, feature-specific caller
  functions in .c files that exercise them (avoiding ubiquitous lifecycle wrappers).

================================================================================
5. IDENTIFYING EnableConfigs
================================================================================
Identify any specific CONFIG_ options required to properly compile and reach the modified code:
- Inspect Kconfig files and #ifdef guards; do not make assumptions.
- Check "depends on" lines in Kconfig to include any non-standard parent subsystem configs needed.
- Strip any 'CONFIG_' prefix (e.g., return "NET_IPV4" instead of "CONFIG_NET_IPV4").
Prefer calling several tools at the same time to save round-trips.


Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.

Prompt:
Target architecture: amd64

For your convenience, here is the diff of the changes:
commit 28f7fc7d17f2d4153fd41952d34b368f5094fbed
Author: syz-cluster <triage@syzkaller.com>
Date:   Mon Oct 12 22:55:48 2026 +0000

    syz-cluster: applied patch under review

diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
index c1d3fcc7ae846..cbf7aef1d5b82 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
@@ -3209,82 +3209,6 @@ static int bnxt_poll_work(struct bnxt *bp, struct bnxt_cp_ring_info *cpr,
 	return rx_pkts;
 }
 
-static int bnxt_poll_nitroa0(struct napi_struct *napi, int budget)
-{
-	struct bnxt_napi *bnapi = container_of(napi, struct bnxt_napi, napi);
-	struct bnxt *bp = bnapi->bp;
-	struct bnxt_cp_ring_info *cpr = &bnapi->cp_ring;
-	struct bnxt_rx_ring_info *rxr = bnapi->rx_ring;
-	struct tx_cmp *txcmp;
-	struct rx_cmp_ext *rxcmp1;
-	u32 cp_cons, tmp_raw_cons;
-	u32 raw_cons = cpr->cp_raw_cons;
-	bool flush_xdp = false;
-	u32 rx_pkts = 0;
-	u8 event = 0;
-
-	while (1) {
-		int rc;
-
-		cp_cons = RING_CMP(raw_cons);
-		txcmp = &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)];
-
-		if (!TX_CMP_VALID(txcmp, raw_cons))
-			break;
-
-		/* The valid test of the entry must be done first before
-		 * reading any further.
-		 */
-		dma_rmb();
-		if ((TX_CMP_TYPE(txcmp) & 0x30) == 0x10) {
-			tmp_raw_cons = NEXT_RAW_CMP(raw_cons);
-			cp_cons = RING_CMP(tmp_raw_cons);
-			rxcmp1 = (struct rx_cmp_ext *)
-			  &cpr->cp_desc_ring[CP_RING(cp_cons)][CP_IDX(cp_cons)];
-
-			if (!RX_CMP_VALID(rxcmp1, tmp_raw_cons))
-				break;
-
-			/* force an error to recycle the buffer */
-			rxcmp1->rx_cmp_cfa_code_errors_v2 |=
-				cpu_to_le32(RX_CMPL_ERRORS_CRC_ERROR);
-
-			rc = bnxt_rx_pkt(bp, cpr, &raw_cons, &event);
-			if (likely(rc == -EIO) && budget)
-				rx_pkts++;
-			else if (rc == -EBUSY)	/* partial completion */
-				break;
-			if (event & BNXT_REDIRECT_EVENT)
-				flush_xdp = true;
-		} else if (unlikely(TX_CMP_TYPE(txcmp) ==
-				    CMPL_BASE_TYPE_HWRM_DONE)) {
-			bnxt_hwrm_handler(bp, txcmp);
-		} else {
-			netdev_err(bp->dev,
-				   "Invalid completion received on special ring\n");
-		}
-		raw_cons = NEXT_RAW_CMP(raw_cons);
-
-		if (rx_pkts == budget)
-			break;
-	}
-
-	cpr->cp_raw_cons = raw_cons;
-	BNXT_DB_CQ(&cpr->cp_db, cpr->cp_raw_cons);
-	bnxt_db_write(bp, &rxr->rx_db, rxr->rx_prod);
-
-	if (event & BNXT_AGG_EVENT)
-		bnxt_db_write(bp, &rxr->rx_agg_db, rxr->rx_agg_prod);
-	if (flush_xdp)
-		xdp_do_flush();
-
-	if (!bnxt_has_work(bp, cpr) && rx_pkts < budget) {
-		napi_complete_done(napi, rx_pkts);
-		BNXT_DB_CQ_ARM(&cpr->cp_db, cpr->cp_raw_cons);
-	}
-	return rx_pkts;
-}
-
 static int bnxt_poll(struct napi_struct *napi, int budget)
 {
 	struct bnxt_napi *bnapi = container_of(napi, struct bnxt_napi, napi);
@@ -4791,9 +4715,6 @@ static int bnxt_alloc_vnics(struct bnxt *bp)
 	}
 #endif
 
-	if (BNXT_CHIP_TYPE_NITRO_A0(bp))
-		num_vnics++;
-
 	bp->vnic_info = kzalloc_objs(struct bnxt_vnic_info, num_vnics);
 	if (!bp->vnic_info)
 		return -ENOMEM;
@@ -6327,11 +6248,8 @@ int bnxt_hwrm_l2_filter_alloc(struct bnxt *bp, struct bnxt_l2_filter *fltr)
 		return rc;
 
 	req->target_id = cpu_to_le16(target_id);
-	req->flags = cpu_to_le32(CFA_L2_FILTER_ALLOC_REQ_FLAGS_PATH_RX);
-
-	if (!BNXT_CHIP_TYPE_NITRO_A0(bp))
-		req->flags |=
-			cpu_to_le32(CFA_L2_FILTER_ALLOC_REQ_FLAGS_OUTERMOST);
+	req->flags = cpu_to_le32(CFA_L2_FILTER_ALLOC_REQ_FLAGS_PATH_RX |
+				 CFA_L2_FILTER_ALLOC_REQ_FLAGS_OUTERMOST);
 	req->dst_id = cpu_to_le16(fltr->base.fw_vnic_id);
 	req->enables =
 		cpu_to_le32(CFA_L2_FILTER_ALLOC_REQ_ENABLES_L2_ADDR |
@@ -6688,10 +6606,7 @@ void bnxt_set_dflt_rss_indir_tbl(struct bnxt *bp,
 	if (!bp->rx_nr_rings)
 		return;
 
-	if (BNXT_CHIP_TYPE_NITRO_A0(bp))
-		max_rings = bp->rx_nr_rings - 1;
-	else
-		max_rings = bp->rx_nr_rings;
+	max_rings = bp->rx_nr_rings;
 
 	max_entries = bnxt_get_rxfh_indir_size(bp->dev);
 	if (rss_ctx)
@@ -6731,8 +6646,6 @@ int bnxt_get_nr_rss_ctxs(struct bnxt *bp, int rx_rings)
 		return bnxt_calc_nr_ring_pages(rx_rings - 1,
 					       BNXT_RSS_TABLE_ENTRIES_P5);
 	}
-	if (BNXT_CHIP_TYPE_NITRO_A0(bp))
-		return 2;
 	return 1;
 }
 
@@ -6757,8 +6670,6 @@ static void bnxt_fill_hw_rss_tbl(struct bnxt *bp, struct bnxt_vnic_info *vnic)
 		vnic->default_rx_ring = min_j;
 	else if (vnic->flags & BNXT_VNIC_RFS_FLAG)
 		vnic->default_rx_ring = vnic->vnic_id - 1;
-	else if ((vnic->vnic_id == 1) && BNXT_CHIP_TYPE_NITRO_A0(bp))
-		vnic->default_rx_ring = bp->rx_nr_rings - 1;
 	else
 		vnic->default_rx_ring = 0;
 }
@@ -7013,13 +6924,7 @@ int bnxt_hwrm_vnic_cfg(struct bnxt *bp, struct bnxt_vnic_info *vnic)
 		req->rss_rule = cpu_to_le16(0xffff);
 	}
 
-	if (BNXT_CHIP_TYPE_NITRO_A0(bp) &&
-	    (vnic->fw_rss_cos_lb_ctx[0] != INVALID_HW_RING_ID)) {
-		req->cos_rule = cpu_to_le16(vnic->fw_rss_cos_lb_ctx[1]);
-		req->enables |= cpu_to_le32(VNIC_CFG_REQ_ENABLES_COS_RULE);
-	} else {
-		req->cos_rule = cpu_to_le16(0xffff);
-	}
+	req->cos_rule = cpu_to_le16(0xffff);
 
 	ring = vnic->default_rx_ring;
 	grp_idx = bp->rx_ring[ring].bnapi->index;
@@ -8145,6 +8050,8 @@ static bool bnxt_need_reserve_rings(struct bnxt *bp)
 	return false;
 }
 
+static int __bnxt_num_tx_to_cp(struct bnxt *bp, int tx, int tx_sets, int tx_xdp);
+
 static void bnxt_copy_reserved_rings(struct bnxt *bp, struct bnxt_hw_rings *hwr)
 {
 	struct bnxt_hw_resc *hw_resc = &bp->hw_resc;
@@ -8164,15 +8071,49 @@ static void bnxt_copy_reserved_rings(struct bnxt *bp, struct bnxt_hw_rings *hwr)
 
 static bool bnxt_rings_ok(struct bnxt *bp, struct bnxt_hw_rings *hwr)
 {
-	return hwr->tx && hwr->rx && hwr->cp && hwr->grp && hwr->vnic &&
-	       hwr->stat && (hwr->cp_p5 || !(bp->flags & BNXT_FLAG_CHIP_P5_PLUS));
+	int tcs = bp->num_tc ? bp->num_tc : 1;
+	int min_tx_xdp = 0;
+	int min_tx = tcs;
+	int min_rx = 1;
+	int min_cp = 1;
+	int tx_cp;
+
+	if (bp->tx_nr_rings_xdp) {
+		min_tx++;
+		min_tx_xdp = 1;
+	}
+
+	if (!(bp->flags & BNXT_FLAG_SHARED_RINGS)) {
+		tx_cp = __bnxt_num_tx_to_cp(bp, min_tx, tcs, min_tx_xdp);
+		min_cp = tx_cp + min_rx;
+	}
+	return hwr->tx >= min_tx && hwr->rx >= min_rx && hwr->cp >= min_cp &&
+	       hwr->grp && hwr->vnic && hwr->stat &&
+	       (hwr->cp_p5 || !(bp->flags & BNXT_FLAG_CHIP_P5_PLUS));
+}
+
+/* Check to see if we need to reset the user configured RSS table
+ * (default RSS context) because of change in RX rings from
+ * old_rx to new_rx.
+ */
+static void bnxt_check_rss_tbl_lost(struct bnxt *bp, int old_rx, int new_rx)
+{
+	if (netif_is_rxfh_configured(bp->dev) &&
+	    (bnxt_get_nr_rss_ctxs(bp, old_rx) !=
+	     bnxt_get_nr_rss_ctxs(bp, new_rx) ||
+	     bnxt_get_max_rss_ring(bp) >= new_rx)) {
+		ethtool_rxfh_indir_lost(bp->dev);
+	}
 }
 
 static int bnxt_get_avail_msix(struct bnxt *bp, int num);
+static void bnxt_adj_rings(struct bnxt *bp);
 
 static int __bnxt_reserve_rings(struct bnxt *bp)
 {
 	struct bnxt_en_dev *edev = bp->edev[BNXT_AUXDEV_RDMA];
+	int req_rx_rings = bp->rx_nr_rings;
+	int req_tx_rings = bp->tx_nr_rings;
 	struct bnxt_hw_rings hwr = {0};
 	int rx_rings, old_rx_rings, rc;
 	int cp = bp->cp_nr_rings;
@@ -8240,54 +8181,68 @@ static int __bnxt_reserve_rings(struct bnxt *bp)
 		hwr.stat -= bnxt_get_ulp_stat_ctxs(bp);
 	hwr.cp = min_t(int, hwr.cp, hwr.stat);
 	rc = bnxt_trim_rings(bp, &rx_rings, &hwr.tx, hwr.cp, sh);
+	if (rc)
+		goto reserve_rings_exit;
+
+	if (bp->bnapi && (rx_rings < bp->rx_nr_rings ||
+			  hwr.tx < bp->tx_nr_rings)) {
+		netdev_err(bp->dev, "Unexpected ring shrinkage %d/%d RX/TX to %d/%d\n",
+			   bp->rx_nr_rings, bp->tx_nr_rings, rx_rings, hwr.tx);
+		rc = -ENOSPC;
+		goto reserve_rings_exit;
+	}
 	if (bp->flags & BNXT_FLAG_AGG_RINGS)
 		hwr.rx = rx_rings << 1;
 	tx_cp = bnxt_num_tx_to_cp(bp, hwr.tx);
 	hwr.cp = sh ? max_t(int, tx_cp, rx_rings) : tx_cp + rx_rings;
-	if (hwr.tx != bp->tx_nr_rings) {
-		netdev_warn(bp->dev,
-			    "Able to reserve only %d out of %d requested TX rings\n",
-			    hwr.tx, bp->tx_nr_rings);
+
+	if (!bnxt_rings_ok(bp, &hwr)) {
+		rc = -ENOMEM;
+		goto reserve_rings_exit;
 	}
+
 	bp->tx_nr_rings = hwr.tx;
+	bp->rx_nr_rings = rx_rings;
+	bp->cp_nr_rings = hwr.cp;
+
+	if (!bp->bnapi)
+		bnxt_adj_rings(bp);
 
+	if (req_tx_rings != bp->tx_nr_rings) {
+		netdev_warn(bp->dev,
+			    "Able to reserve only %d out of %d requested TX rings\n",
+			    bp->tx_nr_rings, req_tx_rings);
+	}
 	/* If we cannot reserve all the RX rings, reset the RSS map only
 	 * if absolutely necessary
 	 */
-	if (rx_rings != bp->rx_nr_rings) {
+	if (req_rx_rings != bp->rx_nr_rings) {
 		netdev_warn(bp->dev, "Able to reserve only %d out of %d requested RX rings\n",
-			    rx_rings, bp->rx_nr_rings);
-		if (netif_is_rxfh_configured(bp->dev) &&
-		    (bnxt_get_nr_rss_ctxs(bp, bp->rx_nr_rings) !=
-		     bnxt_get_nr_rss_ctxs(bp, rx_rings) ||
-		     bnxt_get_max_rss_ring(bp) >= rx_rings)) {
-			ethtool_rxfh_indir_lost(bp->dev);
-		}
+			    bp->rx_nr_rings, req_rx_rings);
+		bnxt_check_rss_tbl_lost(bp, req_rx_rings, bp->rx_nr_rings);
 	}
-	bp->rx_nr_rings = rx_rings;
-	bp->cp_nr_rings = hwr.cp;
 
 	/* Fall back if we cannot reserve enough HW RSS contexts */
 	if ((bp->rss_cap & BNXT_RSS_CAP_LARGE_RSS_CTX) &&
 	    hwr.rss_ctx < bnxt_get_total_rss_ctxs(bp, &hwr))
 		bp->rss_cap &= ~BNXT_RSS_CAP_LARGE_RSS_CTX;
 
-	if (!bnxt_rings_ok(bp, &hwr))
-		return -ENOMEM;
-
-	if (old_rx_rings != bp->hw_resc.resv_rx_rings &&
+	if ((old_rx_rings != bp->hw_resc.resv_rx_rings ||
+	     req_rx_rings != bp->rx_nr_rings) &&
 	    !netif_is_rxfh_configured(bp->dev))
 		bnxt_set_dflt_rss_indir_tbl(bp, NULL);
 
+reserve_rings_exit:
 	if (!bnxt_ulp_registered(edev) && BNXT_NEW_RM(bp)) {
 		int resv_msix, resv_ctx, ulp_ctxs;
 		struct bnxt_hw_resc *hw_resc;
 
 		hw_resc = &bp->hw_resc;
-		resv_msix = hw_resc->resv_irqs - bp->cp_nr_rings;
+		resv_msix = max_t(int, hw_resc->resv_irqs - bp->cp_nr_rings, 0);
 		ulp_msix = min_t(int, resv_msix, ulp_msix);
 		bnxt_set_ulp_msix_num(bp, ulp_msix);
-		resv_ctx = hw_resc->resv_stat_ctxs  - bp->cp_nr_rings;
+		resv_ctx = max_t(int, hw_resc->resv_stat_ctxs - bp->cp_nr_rings,
+				 0);
 		ulp_ctxs = min(resv_ctx, bnxt_get_ulp_stat_ctxs(bp));
 		bnxt_set_ulp_stat_ctxs(bp, ulp_ctxs);
 	}
@@ -8608,9 +8563,6 @@ static void bnxt_hwrm_stat_ctx_free(struct bnxt *bp)
 	if (!bp->bnapi)
 		return;
 
-	if (BNXT_CHIP_TYPE_NITRO_A0(bp))
-		return;
-
 	if (hwrm_req_init(bp, req, HWRM_STAT_CTX_FREE))
 		return;
 	if (BNXT_FW_MAJ(bp) <= 20) {
@@ -8647,9 +8599,6 @@ static int bnxt_hwrm_stat_ctx_alloc(struct bnxt *bp)
 	struct hwrm_stat_ctx_alloc_input *req;
 	int rc, i;
 
-	if (BNXT_CHIP_TYPE_NITRO_A0(bp))
-		return 0;
-
 	rc = hwrm_req_init(bp, req, HWRM_STAT_CTX_ALLOC);
 	if (rc)
 		return rc;
@@ -10480,9 +10429,6 @@ static int bnxt_hwrm_ver_get(struct bnxt *bp)
 
 	bp->chip_num = le16_to_cpu(resp->chip_num);
 	bp->chip_rev = resp->chip_rev;
-	if (bp->chip_num == CHIP_NUM_58700 && !resp->chip_rev &&
-	    !resp->chip_metal)
-		bp->flags |= BNXT_FLAG_CHIP_NITRO_A0;
 
 	dev_caps_cfg = le32_to_cpu(resp->dev_caps_cfg);
 	if ((dev_caps_cfg & VER_GET_RESP_DEV_CAPS_CFG_SHORT_CMD_SUPPORTED) &&
@@ -10897,16 +10843,6 @@ static int __bnxt_setup_vnic(struct bnxt *bp, struct bnxt_vnic_info *vnic)
 	}
 	bp->rsscos_nr_ctxs++;
 
-	if (BNXT_CHIP_TYPE_NITRO_A0(bp)) {
-		rc = bnxt_hwrm_vnic_ctx_alloc(bp, vnic, 1);
-		if (rc) {
-			netdev_err(bp->dev, "hwrm vnic %d cos ctx alloc failure rc: %x\n",
-				   vnic->vnic_id, rc);
-			goto vnic_setup_err;
-		}
-		bp->rsscos_nr_ctxs++;
-	}
-
 skip_rss_ctx:
 	bnxt_fill_hw_rss_tbl(bp, vnic);
 	/* configure default vnic, ring grp */
@@ -11207,30 +11143,6 @@ static bool bnxt_promisc_ok(struct bnxt *bp)
 	return true;
 }
 
-static int bnxt_setup_nitroa0_vnic(struct bnxt *bp)
-{
-	struct bnxt_vnic_info *vnic = &bp->vnic_info[1];
-	unsigned int rc = 0;
-
-	rc = bnxt_hwrm_vnic_alloc(bp, vnic, bp->rx_nr_rings - 1, 1);
-	if (rc) {
-		netdev_err(bp->dev, "Cannot allocate special vnic for NS2 A0: %x\n",
-			   rc);
-		return rc;
-	}
-
-	/* Setup the proper default RX ring */
-	bnxt_fill_hw_rss_tbl(bp, vnic);
-
-	rc = bnxt_hwrm_vnic_cfg(bp, vnic);
-	if (rc) {
-		netdev_err(bp->dev, "Cannot allocate special vnic for NS2 A0: %x\n",
-			   rc);
-		return rc;
-	}
-	return rc;
-}
-
 static int bnxt_cfg_rx_mode(struct bnxt *, struct netdev_hw_addr_list *, bool);
 static bool bnxt_mc_list_updated(struct bnxt *, u32 *,
 				 const struct netdev_hw_addr_list *);
@@ -11239,7 +11151,6 @@ static int bnxt_init_chip(struct bnxt *bp, bool irq_re_init)
 {
 	struct bnxt_vnic_info *vnic = &bp->vnic_info[BNXT_VNIC_DEFAULT];
 	int rc = 0;
-	unsigned int rx_nr_rings = bp->rx_nr_rings;
 
 	if (irq_re_init) {
 		rc = bnxt_hwrm_stat_ctx_alloc(bp);
@@ -11262,11 +11173,8 @@ static int bnxt_init_chip(struct bnxt *bp, bool irq_re_init)
 		goto err_out;
 	}
 
-	if (BNXT_CHIP_TYPE_NITRO_A0(bp))
-		rx_nr_rings--;
-
 	/* default vnic 0 */
-	rc = bnxt_hwrm_vnic_alloc(bp, vnic, 0, rx_nr_rings);
+	rc = bnxt_hwrm_vnic_alloc(bp, vnic, 0, bp->rx_nr_rings);
 	if (rc) {
 		netdev_err(bp->dev, "hwrm vnic alloc failure rc: %x\n", rc);
 		goto err_out;
@@ -11341,13 +11249,6 @@ static int bnxt_init_chip(struct bnxt *bp, bool irq_re_init)
 		netdev_warn(bp->dev, "HWRM set coalescing failure rc: %x\n",
 				rc);
 
-	if (BNXT_CHIP_TYPE_NITRO_A0(bp)) {
-		rc = bnxt_setup_nitroa0_vnic(bp);
-		if (rc)
-			netdev_err(bp->dev, "Special vnic setup failure for NS2 A0 rc: %x\n",
-				   rc);
-	}
-
 	if (BNXT_VF(bp)) {
 		bnxt_hwrm_func_qcfg(bp);
 		netdev_update_features(bp->dev);
@@ -11510,6 +11411,12 @@ static int bnxt_change_msix(struct bnxt *bp, int total)
 	struct msi_map map;
 	int i;
 
+	if (!bp->irq_tbl)
+		return 0;
+
+	if (total > bp->irq_tbl_size)
+		return bp->total_irqs;
+
 	/* add MSIX to the end if needed */
 	for (i = bp->total_irqs; i < total; i++) {
 		map = pci_msix_alloc_irq_at(bp->pdev, i, NULL);
@@ -11629,7 +11536,9 @@ static int bnxt_get_num_msix(struct bnxt *bp)
 
 static int bnxt_init_int_mode(struct bnxt *bp)
 {
-	int i, total_vecs, max, rc, min = 1, ulp_msix, tx_cp, tbl_size;
+	int i, total_vecs, max, rc, min = 1, ulp_msix, tbl_size, req_rx_rings;
+	int min_tx, req_tx_rings, req_cp_rings, req_tx_per_tc, req_tx_xdp;
+	int tcs = bp->num_tc ? bp->num_tc : 1;
 
 	total_vecs = bnxt_get_num_msix(bp);
 	max = bnxt_get_max_func_irqs(bp);
@@ -11652,34 +11561,68 @@ static int bnxt_init_int_mode(struct bnxt *bp)
 
 	tbl_size = total_vecs;
 	if (pci_msix_can_alloc_dyn(bp->pdev))
-		tbl_size = max;
+		tbl_size = bp->hw_resc.max_irqs;
 	bp->irq_tbl = kzalloc_objs(*bp->irq_tbl, tbl_size);
 	if (!bp->irq_tbl) {
 		rc = -ENOMEM;
 		goto msix_setup_exit;
 	}
+	bp->irq_tbl_size = tbl_size;
 
 	for (i = 0; i < total_vecs; i++)
 		bp->irq_tbl[i].vector = pci_irq_vector(bp->pdev, i);
 
 	bp->total_irqs = total_vecs;
+	req_tx_rings = bp->tx_nr_rings;
+	req_tx_per_tc = bp->tx_nr_rings_per_tc;
+	req_tx_xdp = bp->tx_nr_rings_xdp;
+	req_rx_rings = bp->rx_nr_rings;
+	req_cp_rings = bp->cp_nr_rings;
+
 	/* Trim rings based upon num of vectors allocated */
 	rc = bnxt_trim_rings(bp, &bp->rx_nr_rings, &bp->tx_nr_rings,
 			     total_vecs - ulp_msix, min == 1);
 	if (rc)
 		goto msix_setup_exit;
 
-	tx_cp = bnxt_num_tx_to_cp(bp, bp->tx_nr_rings);
-	bp->cp_nr_rings = (min == 1) ?
-			  max_t(int, tx_cp, bp->rx_nr_rings) :
-			  tx_cp + bp->rx_nr_rings;
+	min_tx = bp->tx_nr_rings_xdp ? tcs + 1 : tcs;
+	if (bp->tx_nr_rings < min_tx) {
+		netdev_err(bp->dev, "Not enough MSI-X to satisfy min. TX rings\n");
+		rc = -ENOMEM;
+		goto msix_setup_exit_restore;
+	}
+
+	bnxt_adj_rings(bp);
+
+	if (bp->bnapi && (req_tx_rings != bp->tx_nr_rings ||
+			  req_rx_rings != bp->rx_nr_rings)) {
+		netdev_err(bp->dev, "Cannot shrink rings once NAPI is allocated\n");
+		rc = -ENOSPC;
+		goto msix_setup_exit_restore;
+	}
 
+	if (req_rx_rings != bp->rx_nr_rings) {
+		netdev_warn(bp->dev, "RX rings reduced from %d to %d\n",
+			    req_rx_rings, bp->rx_nr_rings);
+		bnxt_check_rss_tbl_lost(bp, req_rx_rings, bp->rx_nr_rings);
+		if (!netif_is_rxfh_configured(bp->dev))
+			bnxt_set_dflt_rss_indir_tbl(bp, NULL);
+	}
 	return 0;
 
+msix_setup_exit_restore:
+	bp->tx_nr_rings = req_tx_rings;
+	bp->tx_nr_rings_per_tc = req_tx_per_tc;
+	bp->tx_nr_rings_xdp = req_tx_xdp;
+	bp->rx_nr_rings = req_rx_rings;
+	bp->cp_nr_rings = req_cp_rings;
+
 msix_setup_exit:
 	netdev_err(bp->dev, "bnxt_init_int_mode err: %x\n", rc);
 	kfree(bp->irq_tbl);
 	bp->irq_tbl = NULL;
+	bp->total_irqs = 0;
+	bp->irq_tbl_size = 0;
 	pci_free_irq_vectors(bp->pdev);
 	return rc;
 }
@@ -11690,33 +11633,36 @@ static void bnxt_clear_int_mode(struct bnxt *bp)
 
 	kfree(bp->irq_tbl);
 	bp->irq_tbl = NULL;
+	bp->irq_tbl_size = 0;
 }
 
-int bnxt_reserve_rings(struct bnxt *bp, bool irq_re_init)
+static int bnxt_irqs_required(struct bnxt *bp)
 {
 	struct bnxt_en_dev *edev = bp->edev[BNXT_AUXDEV_RDMA];
-	bool irq_cleared = false;
-	bool irq_change = false;
-	int tcs = bp->num_tc;
-	int irqs_required;
-	int rc;
-
-	if (!bnxt_need_reserve_rings(bp))
-		return 0;
 
 	if (BNXT_NEW_RM(bp) && !bnxt_ulp_registered(edev)) {
 		int ulp_msix = bnxt_get_avail_msix(bp, bp->ulp_num_msix_want);
 
 		if (ulp_msix > bp->ulp_num_msix_want)
 			ulp_msix = bp->ulp_num_msix_want;
-		irqs_required = ulp_msix + bp->cp_nr_rings;
-	} else {
-		irqs_required = bnxt_get_num_msix(bp);
+		return ulp_msix + bp->cp_nr_rings;
 	}
+	return bnxt_get_num_msix(bp);
+}
+
+int bnxt_reserve_rings(struct bnxt *bp, bool irq_re_init)
+{
+	bool irq_cleared = false;
+	int irqs_required;
+	int rc;
+
+	if (!bnxt_need_reserve_rings(bp))
+		return 0;
+
+	irqs_required = bnxt_irqs_required(bp);
 
 	if (irq_re_init && BNXT_NEW_RM(bp) && irqs_required != bp->total_irqs) {
-		irq_change = true;
-		if (!pci_msix_can_alloc_dyn(bp->pdev)) {
+		if (!pci_msix_can_alloc_dyn(bp->pdev) || !bp->irq_tbl) {
 			bnxt_ulp_irq_stop(bp);
 			bnxt_clear_int_mode(bp);
 			irq_cleared = true;
@@ -11727,25 +11673,23 @@ int bnxt_reserve_rings(struct bnxt *bp, bool irq_re_init)
 		if (!rc)
 			rc = bnxt_init_int_mode(bp);
 		bnxt_ulp_irq_restart(bp, rc);
-	} else if (irq_change && !rc) {
-		if (bnxt_change_msix(bp, irqs_required) != irqs_required)
-			rc = -ENOSPC;
+	} else if (irq_re_init && BNXT_NEW_RM(bp) && !rc) {
+		/* __bnxt_reserve_rings() may have shrunk the rings */
+		irqs_required = bnxt_irqs_required(bp);
+		if (irqs_required != bp->total_irqs) {
+			/* Don't bother reducing static IRQs to avoid disrupting
+			 * RoCE.
+			 */
+			if (pci_msix_can_alloc_dyn(bp->pdev) &&
+			    bnxt_change_msix(bp, irqs_required) !=
+			    irqs_required)
+				rc = -ENOSPC;
+		}
 	}
 	if (rc) {
 		netdev_err(bp->dev, "ring reservation/IRQ init failure rc: %d\n", rc);
 		return rc;
 	}
-	if (tcs && (bp->tx_nr_rings_per_tc * tcs !=
-		    bp->tx_nr_rings - bp->tx_nr_rings_xdp)) {
-		netdev_err(bp->dev, "tx ring reservation failure\n");
-		netdev_reset_tc(bp->dev);
-		bp->num_tc = 0;
-		if (bp->tx_nr_rings_xdp)
-			bp->tx_nr_rings_per_tc = bp->tx_nr_rings_xdp;
-		else
-			bp->tx_nr_rings_per_tc = bp->tx_nr_rings;
-		return -ENOMEM;
-	}
 	return 0;
 }
 
@@ -12084,26 +12028,19 @@ static void bnxt_del_napi(struct bnxt *bp)
 static void bnxt_init_napi(struct bnxt *bp)
 {
 	int (*poll_fn)(struct napi_struct *, int) = bnxt_poll;
-	unsigned int cp_nr_rings = bp->cp_nr_rings;
 	struct bnxt_napi *bnapi;
 	int i;
 
 	if (bp->flags & BNXT_FLAG_CHIP_P5_PLUS)
 		poll_fn = bnxt_poll_p5;
-	else if (BNXT_CHIP_TYPE_NITRO_A0(bp))
-		cp_nr_rings--;
 
 	set_bit(BNXT_STATE_NAPI_DISABLED, &bp->state);
 
-	for (i = 0; i < cp_nr_rings; i++) {
+	for (i = 0; i < bp->cp_nr_rings; i++) {
 		bnapi = bp->bnapi[i];
 		netif_napi_add_config_locked(bp->dev, &bnapi->napi, poll_fn,
 					     bnapi->index);
 	}
-	if (BNXT_CHIP_TYPE_NITRO_A0(bp)) {
-		bnapi = bp->bnapi[cp_nr_rings];
-		netif_napi_add_locked(bp->dev, &bnapi->napi, bnxt_poll_nitroa0);
-	}
 }
 
 static void bnxt_disable_napi(struct bnxt *bp)
@@ -13250,13 +13187,29 @@ static void bnxt_set_xdp_tx_rings(struct bnxt *bp)
 	bp->tx_nr_rings += bp->tx_nr_rings_xdp;
 }
 
-static void bnxt_adj_tx_rings(struct bnxt *bp)
+static void bnxt_adj_rings(struct bnxt *bp)
 {
-	/* Make adjustments if reserved TX rings are less than requested */
-	bp->tx_nr_rings -= bp->tx_nr_rings_xdp;
-	bp->tx_nr_rings_per_tc = bnxt_tx_nr_rings_per_tc(bp);
-	if (bp->tx_nr_rings_xdp)
-		bnxt_set_xdp_tx_rings(bp);
+	int tcs = bp->num_tc ? bp->num_tc : 1;
+	int rx = bp->rx_nr_rings;
+
+	/* Make adjustments to rings based on TC/XDP/shared rings policies */
+	if (bp->tx_nr_rings_xdp) {
+		tcs++;
+		bp->tx_nr_rings_per_tc = bp->tx_nr_rings / tcs;
+		bp->tx_nr_rings_xdp = bp->tx_nr_rings_per_tc;
+	} else {
+		bp->tx_nr_rings_per_tc = bnxt_tx_nr_rings_per_tc(bp);
+	}
+
+	if (bp->flags & BNXT_FLAG_SHARED_RINGS) {
+		bp->tx_nr_rings_per_tc = min(bp->tx_nr_rings_per_tc, rx);
+		bp->rx_nr_rings = bp->tx_nr_rings_per_tc;
+		if (bp->tx_nr_rings_xdp)
+			bp->tx_nr_rings_xdp = bp->tx_nr_rings_per_tc;
+	}
+
+	bp->tx_nr_rings = bp->tx_nr_rings_per_tc * tcs;
+	bnxt_set_cp_rings(bp, bp->flags & BNXT_FLAG_SHARED_RINGS);
 }
 
 static int __bnxt_open_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init)
@@ -13276,7 +13229,6 @@ static int __bnxt_open_nic(struct bnxt *bp, bool irq_re_init, bool link_re_init)
 	if (rc)
 		return rc;
 
-	bnxt_adj_tx_rings(bp);
 	rc = bnxt_alloc_mem(bp, irq_re_init);
 	if (rc) {
 		netdev_err(bp->dev, "bnxt_alloc_mem err: %x\n", rc);
@@ -13977,7 +13929,7 @@ static bool bnxt_rfs_supported(struct bnxt *bp)
 	/* 212 firmware is broken for aRFS */
 	if (BNXT_FW_MAJ(bp) == 212)
 		return false;
-	if (BNXT_PF(bp) && !BNXT_CHIP_TYPE_NITRO_A0(bp))
+	if (BNXT_PF(bp))
 		return true;
 	if (bp->rss_cap & BNXT_RSS_CAP_NEW_RSS_CAP)
 		return true;
@@ -14080,7 +14032,8 @@ static int bnxt_reinit_features(struct bnxt *bp, bool irq_re_init,
 				bool link_re_init, u32 flags, bool update_tpa)
 {
 	bnxt_close_nic(bp, irq_re_init, link_re_init);
-	bp->flags = flags;
+	bp->flags = (bp->flags & ~BNXT_FLAG_ALL_CONFIG_FEATS) |
+		    (flags & BNXT_FLAG_ALL_CONFIG_FEATS);
 	if (update_tpa)
 		bnxt_set_ring_params(bp);
 	return bnxt_open_nic(bp, irq_re_init, link_re_init);
@@ -14090,10 +14043,11 @@ static int bnxt_set_features(struct net_device *dev, netdev_features_t features)
 {
 	bool update_tpa = false, update_ntuple = false;
 	struct bnxt *bp = netdev_priv(dev);
+	bool irq_re_init = false;
 	u32 flags = bp->flags;
+	bool re_init = false;
 	u32 changes;
 	int rc = 0;
-	bool re_init = false;
 
 	bp->tx_wake_thresh = max_t(int, bp->tx_ring_size / 2,
 				   bnxt_min_tx_desc_cnt(bp, features));
@@ -14120,8 +14074,12 @@ static int bnxt_set_features(struct net_device *dev, netdev_features_t features)
 		update_tpa = true;
 		if ((bp->flags & BNXT_FLAG_TPA) == 0 ||
 		    (flags & BNXT_FLAG_TPA) == 0 ||
-		    (bp->flags & BNXT_FLAG_CHIP_P5_PLUS))
+		    (bp->flags & BNXT_FLAG_CHIP_P5_PLUS)) {
 			re_init = true;
+			if (!(bp->flags & BNXT_FLAG_AGG_RINGS) &&
+			    (flags & BNXT_FLAG_AGG_RINGS))
+				irq_re_init = true;
+		}
 	}
 
 	if (changes & ~BNXT_FLAG_TPA)
@@ -14144,7 +14102,7 @@ static int bnxt_set_features(struct net_device *dev, netdev_features_t features)
 			return bnxt_reinit_features(bp, true, false, flags, update_tpa);
 
 		if (re_init)
-			return bnxt_reinit_features(bp, false, false, flags, update_tpa);
+			return bnxt_reinit_features(bp, irq_re_init, false, flags, update_tpa);
 
 		if (update_tpa) {
 			bp->flags = flags;
@@ -15080,7 +15038,7 @@ int bnxt_check_rings(struct bnxt *bp, int tx, int rx, bool sh, int tcs,
 			hwr.cp += bnxt_get_ulp_msix_num(bp);
 			hwr.cp = min_t(int, hwr.cp, bnxt_get_max_func_irqs(bp));
 		}
-		if (hwr.cp > bp->total_irqs) {
+		if (bp->irq_tbl && hwr.cp > bp->total_irqs) {
 			int total_msix = bnxt_change_msix(bp, hwr.cp);
 
 			if (total_msix < hwr.cp) {
@@ -16794,10 +16752,6 @@ static void _bnxt_get_max_rings(struct bnxt *bp, int *max_rx, int *max_tx,
 	if (!(bp->flags & BNXT_FLAG_CHIP_P5_PLUS))
 		*max_cp = min_t(int, *max_cp, max_irq);
 	max_ring_grps = hw_resc->max_hw_ring_grps;
-	if (BNXT_CHIP_TYPE_NITRO_A0(bp) && BNXT_PF(bp)) {
-		*max_cp -= 1;
-		*max_rx -= 2;
-	}
 	if (bp->flags & BNXT_FLAG_AGG_RINGS)
 		*max_rx >>= 1;
 	if (bp->flags & BNXT_FLAG_CHIP_P5_PLUS) {
@@ -16936,7 +16890,6 @@ static int bnxt_set_dflt_rings(struct bnxt *bp, bool sh)
 	if (rc && rc != -ENODEV)
 		netdev_warn(bp->dev, "Unable to reserve tx rings\n");
 
-	bnxt_adj_tx_rings(bp);
 	if (sh)
 		bnxt_adj_dflt_rings(bp, true);
 
@@ -16945,11 +16898,6 @@ static int bnxt_set_dflt_rings(struct bnxt *bp, bool sh)
 		rc = __bnxt_reserve_rings(bp);
 		if (rc && rc != -ENODEV)
 			netdev_warn(bp->dev, "2nd rings reservation failed.\n");
-		bnxt_adj_tx_rings(bp);
-	}
-	if (BNXT_CHIP_TYPE_NITRO_A0(bp)) {
-		bp->rx_nr_rings++;
-		bp->cp_nr_rings++;
 	}
 	if (rc) {
 		bp->tx_nr_rings = 0;
@@ -16979,8 +16927,6 @@ static int bnxt_init_dflt_ring_mode(struct bnxt *bp)
 	if (rc)
 		goto init_dflt_ring_err;
 
-	bnxt_adj_tx_rings(bp);
-
 	bnxt_set_dflt_rfs(bp);
 
 init_dflt_ring_err:
@@ -17221,6 +17167,13 @@ static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
 	if (rc)
 		goto init_err_pci_clean;
 
+	if (bp->chip_num == CHIP_NUM_58700 && !bp->chip_rev &&
+	    !bp->ver_resp.chip_metal) {
+		dev_err(&pdev->dev, "58700 A0 unsupported, aborting\n");
+		rc = -ENODEV;
+		goto init_err_pci_clean;
+	}
+
 	if (BNXT_PF(bp))
 		bnxt_vpd_read_info(bp);
 
@@ -17367,11 +17320,6 @@ static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
 	if (rc)
 		goto init_err_pci_clean;
 
-	/* No TC has been set yet and rings may have been trimmed due to
-	 * limited MSIX, so we re-initialize the TX rings per TC.
-	 */
-	bp->tx_nr_rings_per_tc = bp->tx_nr_rings;
-
 	if (BNXT_PF(bp)) {
 		if (!bnxt_pf_wq) {
 			bnxt_pf_wq =
@@ -17743,7 +17691,7 @@ static void bnxt_io_resume(struct pci_dev *pdev)
 			err = bnxt_open(netdev);
 		} else {
 			err = bnxt_reserve_rings(bp, true);
-			if (!err)
+			if (!err && !bp->irq_tbl)
 				err = bnxt_init_int_mode(bp);
 		}
 	}
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.h b/drivers/net/ethernet/broadcom/bnxt/bnxt.h
index 41d05efd6307a..51a269d06c497 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt.h
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.h
@@ -2295,7 +2295,6 @@ struct bnxt {
 	#define BNXT_FLAG_DSN_VALID	0x200000
 	#define BNXT_FLAG_DOUBLE_DB	0x400000
 	#define BNXT_FLAG_UDP_GSO_CAP	0x800000
-	#define BNXT_FLAG_CHIP_NITRO_A0	0x1000000
 	#define BNXT_FLAG_DIM		0x2000000
 	#define BNXT_FLAG_ROCE_MIRROR_CAP	0x4000000
 	#define BNXT_FLAG_TX_COAL_CMPL	0x8000000
@@ -2323,10 +2322,8 @@ struct bnxt {
 #define BNXT_PHY_CFG_ABLE(bp)	((BNXT_SINGLE_PF(bp) ||			\
 				  BNXT_SH_PORT_CFG_OK(bp)) &&		\
 				 (bp)->link_info.phy_state == BNXT_PHY_STATE_ENABLED)
-#define BNXT_CHIP_TYPE_NITRO_A0(bp) ((bp)->flags & BNXT_FLAG_CHIP_NITRO_A0)
 #define BNXT_RX_PAGE_MODE(bp)	((bp)->flags & BNXT_FLAG_RX_PAGE_MODE)
-#define BNXT_SUPPORTS_TPA(bp)	(!BNXT_CHIP_TYPE_NITRO_A0(bp) &&	\
-				 (!((bp)->flags & BNXT_FLAG_CHIP_P5_PLUS) ||\
+#define BNXT_SUPPORTS_TPA(bp)	((!((bp)->flags & BNXT_FLAG_CHIP_P5_PLUS) ||\
 				  (bp)->max_tpa_v2) && !is_kdump_kernel())
 #define BNXT_RX_JUMBO_MODE(bp)	((bp)->flags & BNXT_FLAG_JUMBO)
 
@@ -2347,13 +2344,11 @@ struct bnxt {
 	(BNXT_CHIP_NUM_57X1X((bp)->chip_num) ||	\
 	 BNXT_CHIP_NUM_5745X((bp)->chip_num) ||	\
 	 BNXT_CHIP_NUM_588XX((bp)->chip_num) ||	\
-	 (BNXT_CHIP_NUM_58700((bp)->chip_num) &&	\
-	  !BNXT_CHIP_TYPE_NITRO_A0(bp)))
+	 BNXT_CHIP_NUM_58700((bp)->chip_num))
 
 /* Chip class phase 3.x */
 #define BNXT_CHIP_P3(bp)			\
-	(BNXT_CHIP_NUM_57X0X((bp)->chip_num) ||	\
-	 BNXT_CHIP_TYPE_NITRO_A0(bp))
+	(BNXT_CHIP_NUM_57X0X((bp)->chip_num))
 
 #define BNXT_CHIP_P4_PLUS(bp)			\
 	(BNXT_CHIP_P4(bp) || BNXT_CHIP_P5_PLUS(bp))
@@ -2489,6 +2484,7 @@ struct bnxt {
 	 */
 	unsigned long		*ring_affinity_set;
 	int			max_irqs;
+	int			irq_tbl_size;
 	int			total_irqs;
 	int			ulp_num_msix_want;
 	u8			mac_addr[ETH_ALEN];
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
index 622e89587e5db..62f894021fd18 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
@@ -853,6 +853,7 @@ static int bnxt_set_ringparam(struct net_device *dev,
 {
 	u8 tcp_data_split = kernel_ering->tcp_data_split;
 	struct bnxt *bp = netdev_priv(dev);
+	bool irq_re_init = false;
 	u8 hds_config_mod;
 	int rc;
 
@@ -876,8 +877,13 @@ static int bnxt_set_ringparam(struct net_device *dev,
 		return -EINVAL;
 	}
 
+	if (hds_config_mod &&
+	    tcp_data_split == ETHTOOL_TCP_DATA_SPLIT_ENABLED &&
+	    !(bp->flags & BNXT_FLAG_AGG_RINGS))
+		irq_re_init = true;
+
 	if (netif_running(dev))
-		bnxt_close_nic(bp, false, false);
+		bnxt_close_nic(bp, irq_re_init, false);
 
 	if (hds_config_mod) {
 		if (tcp_data_split == ETHTOOL_TCP_DATA_SPLIT_ENABLED)
@@ -891,7 +897,7 @@ static int bnxt_set_ringparam(struct net_device *dev,
 	bnxt_set_ring_params(bp);
 
 	if (netif_running(dev)) {
-		rc = bnxt_open_nic(bp, false, false);
+		rc = bnxt_open_nic(bp, irq_re_init, false);
 		if (rc)
 			return rc;
 	}
@@ -943,13 +949,9 @@ static void bnxt_get_channels(struct net_device *dev,
 	channel->max_other = 0;
 	if (bp->flags & BNXT_FLAG_SHARED_RINGS) {
 		channel->combined_count = bp->rx_nr_rings;
-		if (BNXT_CHIP_TYPE_NITRO_A0(bp))
-			channel->combined_count--;
 	} else {
-		if (!BNXT_CHIP_TYPE_NITRO_A0(bp)) {
-			channel->rx_count = bp->rx_nr_rings;
-			channel->tx_count = bp->tx_nr_rings_per_tc;
-		}
+		channel->rx_count = bp->rx_nr_rings;
+		channel->tx_count = bp->tx_nr_rings_per_tc;
 	}
 }
 
@@ -974,10 +976,6 @@ static int bnxt_set_channels(struct net_device *dev,
 	    (channel->rx_count || channel->tx_count))
 		return -EINVAL;
 
-	if (BNXT_CHIP_TYPE_NITRO_A0(bp) && (channel->rx_count ||
-					    channel->tx_count))
-		return -EINVAL;
-
 	if (channel->combined_count)
 		sh = true;
 

3/2 2026/10/12 22:55 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 17283
							output: 34
							thoughts: 320
						

Thoughts:
**Analyzing a Linux Kernel Patch for Syzkaller Fuzzing Potential**

Okay, so I've got this patch series for the Linux kernel that I need to assess for fuzzing with syzkaller. The first thing I'm going to do is figure out the scope of the change. Looks like we're touching `drivers/net/ethernet/broadcom/bnxt/bnxt.c`, `bnxt.h`, and `bnxt_ethtool.c`. Ah, right, that's the Broadcom NetXtreme-C/E, the `bnxt_en` driver.

Now, the crucial question for syzkaller is reachability. I need to figure out if this is fuzzable. Specifically, according to the criteria for `WorthFuzzing=false`, are there negative criteria that applies? That list gives us this critical exception: "Structurally unreachable hardware: * Vendor-specific PCIe switches, SmartNICs, or GPU drivers (e.g., mlxsw, pds_core, qed, ionic, amdgpu) requiring physical ASIC/PCIe cards not emulated in standard QEMU."

My primary concern right now is the emulation status. Is `bnxt_en` emulated in QEMU? Or is it one of those drivers that depends on actual Broadcom hardware? I need to know if I can reliably test this in a standard syzkaller environment. Let's dig into the Kconfig options for `bnxt_en` and see if they reveal anything about the hardware it's driving. This is where I'll get the real answer.



4/2 2026/10/12 22:56 tool grepper
0m Args:
{
  "Expression": "config BNXT",
  "PathPrefixes": [
    "drivers/net/ethernet/broadcom/"
  ]
}

Results:
{
  "Output": "drivers/net/ethernet/broadcom/Kconfig=195=config SYSTEMPORT\n--\ndrivers/net/ethernet/broadcom/Kconfig-206-\ndrivers/net/ethernet/broadcom/Kconfig:207:config BNXT\ndrivers/net/ethernet/broadcom/Kconfig-208-\ttristate \"Broadcom NetXtreme-C/E support\"\n--\ndrivers/net/ethernet/broadcom/Kconfig-221-\ndrivers/net/ethernet/broadcom/Kconfig:222:config BNXT_SRIOV\ndrivers/net/ethernet/broadcom/Kconfig-223-\tbool \"Broadcom NetXtreme-C/E SR-IOV support\"\n--\ndrivers/net/ethernet/broadcom/Kconfig-230-\ndrivers/net/ethernet/broadcom/Kconfig:231:config BNXT_FLOWER_OFFLOAD\ndrivers/net/ethernet/broadcom/Kconfig-232-\tbool \"TC Flower offload support for NetXtreme-C/E\"\n--\ndrivers/net/ethernet/broadcom/Kconfig-239-\ndrivers/net/ethernet/broadcom/Kconfig:240:config BNXT_DCB\ndrivers/net/ethernet/broadcom/Kconfig-241-\tbool \"Data Center Bridging (DCB) Support\"\n--\ndrivers/net/ethernet/broadcom/Kconfig-249-\ndrivers/net/ethernet/broadcom/Kconfig:250:config BNXT_HWMON\ndrivers/net/ethernet/broadcom/Kconfig-251-\tbool \"Broadcom NetXtreme-C/E HWMON support\"\n"
}

5/2 2026/10/12 22:56 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 18406
							output: 40
							thoughts: 25
						

Thoughts:
Here's a summary of my thought process:

**Diving into the Broadcom Ethernet Driver Configuration**

Okay, time to get to the heart of the matter. I need to investigate a configuration issue related to a Broadcom Ethernet driver. My first instinct is to drill down into the Kconfig file, specifically the one for the Broadcom drivers. I'll focus on the `drivers/net/ethernet/broadcom/Kconfig` file, and I'm guessing the relevant settings are probably clustered around line 207. That seems like a reasonable place to start looking for the options I'm interested in and where I'm likely to find definitions or dependencies that relate to my current challenge. This approach gives me a targeted starting point for my investigation.



6/2 2026/10/12 22:56 tool read-file
0m Args:
{
  "File": "drivers/net/ethernet/broadcom/Kconfig",
  "FirstLine": 205,
  "LineCount": 30
}

Results:
{
  "Contents": " 205:\t\t  Ethernet switch.\n 206:\t\n 207:\tconfig BNXT\n 208:\t\ttristate \"Broadcom NetXtreme-C/E support\"\n 209:\t\tdepends on PCI\n 210:\t\tdepends on PTP_1588_CLOCK_OPTIONAL\n 211:\t\tselect FW_LOADER\n 212:\t\tselect CRC32\n 213:\t\tselect NET_DEVLINK\n 214:\t\tselect PAGE_POOL\n 215:\t\tselect DIMLIB\n 216:\t\tselect AUXILIARY_BUS\n 217:\t\thelp\n 218:\t\t  This driver supports Broadcom NetXtreme-C/E 10/25/40/50 gigabit\n 219:\t\t  Ethernet cards.  To compile this driver as a module, choose M here:\n 220:\t\t  the module will be called bnxt_en.  This is recommended.\n 221:\t\n 222:\tconfig BNXT_SRIOV\n 223:\t\tbool \"Broadcom NetXtreme-C/E SR-IOV support\"\n 224:\t\tdepends on BNXT \u0026\u0026 PCI_IOV\n 225:\t\tdefault y\n 226:\t\thelp\n 227:\t\t  This configuration parameter enables Single Root Input Output\n 228:\t\t  Virtualization support in the NetXtreme-C/E products. This\n 229:\t\t  allows for virtual function acceleration in virtual environments.\n 230:\t\n 231:\tconfig BNXT_FLOWER_OFFLOAD\n 232:\t\tbool \"TC Flower offload support for NetXtreme-C/E\"\n 233:\t\tdepends on BNXT\n 234:\t\tdefault y\n"
}

7/2 2026/10/12 22:56 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 19085
							output: 40
							thoughts: 50
						

Thoughts:
Okay, let's dive into this. I need to understand how the `bnxt` driver works, specifically the devices it handles and how it's bound to them. My instinct tells me to look at the source code, so I'll start with the standard location: `drivers/net/ethernet/broadcom/bnxt/bnxt.c`.

**Investigating the bnxt Driver's Device Binding**

I'll begin by focusing on how the driver identifies and interacts with hardware. The crucial point of contact is almost certainly the `pci_driver` structure. My next step is to use my searching skills to look for `pci_driver bnxt` within that file. That should point me directly to the heart of the matter – the driver's registration and device probe functions. I'll bet it's all right there.



8/2 2026/10/12 22:56 tool grepper
0m Args:
{
  "Expression": "struct pci_driver bnxt",
  "PathPrefixes": [
    "drivers/net/ethernet/broadcom/bnxt"
  ]
}

Results:
{
  "Output": "drivers/net/ethernet/broadcom/bnxt/bnxt.c=17710=static const struct pci_error_handlers bnxt_err_handler = {\n--\ndrivers/net/ethernet/broadcom/bnxt/bnxt.c-17715-\ndrivers/net/ethernet/broadcom/bnxt/bnxt.c:17716:static struct pci_driver bnxt_pci_driver = {\ndrivers/net/ethernet/broadcom/bnxt/bnxt.c-17717-\t.name\t\t= DRV_MODULE_NAME,\n"
}

9/2 2026/10/12 22:56 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 19514
							output: 40
							thoughts: 259
						

Thoughts:
**Investigating bnxt Driver Emulation**

Okay, so I'm looking at the `bnxt_pci_driver`, which I know is the PCI driver for those Broadcom NetXtreme-C/E 10/25/40/50 gigabit Ethernet cards. My immediate question is: does standard QEMU or Google Compute Engine actually *emulate* these specific Broadcom devices (bnxt)? I need to know this for testing and development.

I already know the standard QEMU network devices, of course: e1000/e1000e, rtl8139, virtio-net, vmxnet3, and so on. But based on my knowledge and a quick skim, I'm pretty certain that the Broadcom NetXtreme-C/E models like the BCM57301, 57302, 57304, and the others, are *not* emulated by either of those environments.

But, before I definitively close that door, let's verify. I should confirm the *complete* lack of bnxt emulation or any virtual bus support. It's best to be thorough.

And what about a software-only mock or some USB or virtual device? Could something like that exist and be used in testing? Let's check `bnxt_pci_tbl` – that's where I would expect to find any clues about supported device IDs or any hints of alternative emulation methods.



10/2 2026/10/12 22:57 tool grepper
0m Args:
{
  "Expression": "bnxt_pci_tbl",
  "PathPrefixes": [
    "drivers/net/ethernet/broadcom/bnxt"
  ]
}

Results:
{
  "Output": "drivers/net/ethernet/broadcom/bnxt/bnxt.c=94=static const struct {\n--\ndrivers/net/ethernet/broadcom/bnxt/bnxt.c-149-\ndrivers/net/ethernet/broadcom/bnxt/bnxt.c:150:static const struct pci_device_id bnxt_pci_tbl[] = {\ndrivers/net/ethernet/broadcom/bnxt/bnxt.c-151-\t{ PCI_VDEVICE(BROADCOM, 0x1604), .driver_data = BCM5745x_NPAR },\n--\ndrivers/net/ethernet/broadcom/bnxt/bnxt.c-228-\ndrivers/net/ethernet/broadcom/bnxt/bnxt.c:229:MODULE_DEVICE_TABLE(pci, bnxt_pci_tbl);\ndrivers/net/ethernet/broadcom/bnxt/bnxt.c-230-\n--\ndrivers/net/ethernet/broadcom/bnxt/bnxt.c=17716=static struct pci_driver bnxt_pci_driver = {\ndrivers/net/ethernet/broadcom/bnxt/bnxt.c-17717-\t.name\t\t= DRV_MODULE_NAME,\ndrivers/net/ethernet/broadcom/bnxt/bnxt.c:17718:\t.id_table\t= bnxt_pci_tbl,\ndrivers/net/ethernet/broadcom/bnxt/bnxt.c-17719-\t.probe\t\t= bnxt_init_one,\n"
}

11/2 2026/10/12 22:57 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 20542
							output: 110
							thoughts: 964
						

Thoughts:
**bnxt_pci_driver WorthFuzzing Evaluation**

Alright, let's break this down. `bnxt_pci_driver` binds exclusively to Broadcom devices with a specific vendor ID and device IDs. The prompt's negative criteria are very clear: we need to flag this as not worth fuzzing if the changes fall into the "Structurally unreachable hardware" category, specifically vendor-specific PCIe switch/SmartNIC/GPU drivers.

`bnxt` is the Broadcom NetXtreme-C/E NIC driver. It's *precisely* the type of vendor-specific PCIe NIC driver that's mentioned as a hard no-go. We're talking about hardware that requires a physical Broadcom ASIC and PCIe card, something that's not going to be emulated in a standard QEMU or Google Compute Engine setup, which is what we're assuming for the fuzzing environment.

Now, let's look at what the patch actually *does*. It looks like it's dropping support for Nitro A0, which is handled in the `bnxt.c` file by checking the chip type. It's also making adjustments to ring reservation logic in `bnxt.c` and `bnxt_ethtool.c`. The changed files are all contained neatly within the `drivers/net/ethernet/broadcom/bnxt/` directory. No escapes, nothing ambiguous.

The crucial part here is the "structurally unreachable" concept. Section 1 explicitly states that fuzzing only applies to code that can execute in our standard virtualized environment. Section 2 nails it down with the examples: things like `mlxsw`, `pds_core`, `qed`, `ionic`, and `amdgpu`. `bnxt` clearly falls into that bucket. This all depends on the physical Broadcom PCIe NIC card.

We need to double-check our work. Let's make sure that `bnxt` doesn't have a virtual or test harness. Nope, this is a PCIe vendor-specific NIC driver. All changes are confined to the relevant `drivers/net/ethernet/broadcom/bnxt/` directory.

We can confidently set `WorthFuzzing=false` and an empty list for `FocusSymbols` and `EnableConfigs`. The reasoning is straightforward: the modified code is strictly within a vendor-specific Broadcom NetXtreme-C/E NIC driver that requires physical PCIe hardware not emulated in standard QEMU or GCE environments, making it structurally unreachable for fuzzing.



12/2 2026/10/12 22:57 tool set-results
0m Args:
{
  "EnableConfigs": [],
  "FocusSymbols": [],
  "Reasoning": "The patch series exclusively modifies the Broadcom NetXtreme-C/E driver (drivers/net/ethernet/broadcom/bnxt/), which is a vendor-specific PCIe NIC driver requiring physical Broadcom ASIC hardware. Because this hardware is not emulated in standard virtualized environments (QEMU/GCE), the modified code is structurally unreachable for syzkaller fuzzing.",
  "WorthFuzzing": false
}

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch series exclusively modifies the Broadcom NetXtreme-C/E driver (drivers/net/ethernet/broadcom/bnxt/), which is a vendor-specific PCIe NIC driver requiring physical Broadcom ASIC hardware. Because this hardware is not emulated in standard virtualized environments (QEMU/GCE), the modified code is structurally unreachable for syzkaller fuzzing.",
  "WorthFuzzing": false
}

13/1 2026/10/12 22:57 action If
0m Args:
{
  "WorthFuzzing": false
}

Results:
null

LLM Calls Summary:
Total Calls Total Tokens Avg Tokens Total Duration (Seconds) Avg Duration (Seconds)
Tool Calls Summary:
Total Calls Total Duration (Seconds) Avg Duration (Seconds)