| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/09/20 15:03 | flow | patch-triage |
1mArgs:null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"KMSANReasoning": "",
"NeedsKMSAN": false,
"Reasoning": "The patch introduces event queue reaping support (reap_eq) specifically for Mellanox ConnectX hardware (mlx5 / mlx5_ib). The changes in the RDMA core (drivers/infiniband/core/device.c and include/rdma/ib_verbs.h) only register and declare the optional provider callback; no generic core code invokes ib_reap_eq(), and no software RDMA drivers (such as rdma_rxe or siw) implement it. The actual logic modifications (mlx5_ib_reap_eq, mlx5_eq_reap, and mutex synchronization in mlx5_eq_poll_irq_disabled) are confined to mlx5 hardware drivers, which require physical Mellanox ASIC/PCIe devices not emulated in standard QEMU/KVM environments. Therefore, the modified code is structurally unreachable for fuzzing.",
"WorthFuzzing": false
} |
| 1/1 | 2026/09/20 15:03 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit 2eb85aa15acab7e2e15cb6ca9ef0561718ed1785\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Sun Sep 20 15:03:35 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/drivers/infiniband/core/device.c b/drivers/infiniband/core/device.c\nindex 7a3ed5ecac001..a0a6e4a9ed50a 100644\n--- a/drivers/infiniband/core/device.c\n+++ b/drivers/infiniband/core/device.c\n@@ -3016,6 +3016,7 @@ void ib_set_device_ops(struct ib_device *dev, const struct ib_device_ops *ops)\n \tSET_DEVICE_OP(dev_ops, rdma_netdev_get_params);\n \tSET_DEVICE_OP(dev_ops, read_counters);\n \tSET_DEVICE_OP(dev_ops, read_comp_cntr);\n+\tSET_DEVICE_OP(dev_ops, reap_eq);\n \tSET_DEVICE_OP(dev_ops, reg_dm_mr);\n \tSET_DEVICE_OP(dev_ops, reg_user_mr);\n \tSET_DEVICE_OP(dev_ops, reg_user_mr_dmabuf);\ndiff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c\nindex 373ee1f42d4ad..ae8d32358e82d 100644\n--- a/drivers/infiniband/hw/mlx5/main.c\n+++ b/drivers/infiniband/hw/mlx5/main.c\n@@ -22,6 +22,7 @@\n #include \u003crdma/ib_addr.h\u003e\n #include \u003crdma/ib_cache.h\u003e\n #include \u003clinux/mlx5/port.h\u003e\n+#include \u003clinux/mlx5/eq.h\u003e\n #include \u003clinux/mlx5/vport.h\u003e\n #include \u003clinux/mlx5/fs.h\u003e\n #include \u003clinux/mlx5/eswitch.h\u003e\n@@ -3654,6 +3655,22 @@ static void get_dev_fw_str(struct ib_device *ibdev, char *str)\n \t\t fw_rev_sub(dev-\u003emdev));\n }\n \n+static int mlx5_ib_reap_eq(struct ib_device *ibdev, struct ib_cq *ibcq)\n+{\n+\tstruct mlx5_ib_dev *dev;\n+\tstruct mlx5_ib_cq *cq;\n+\n+\tif (!ibdev || !ibcq || ibcq-\u003edevice != ibdev)\n+\t\treturn -EINVAL;\n+\n+\tdev = to_mdev(ibdev);\n+\tif (!dev-\u003emdev)\n+\t\treturn -ENODEV;\n+\n+\tcq = to_mcq(ibcq);\n+\treturn mlx5_eq_reap(dev-\u003emdev, cq-\u003emcq.eq);\n+}\n+\n static int lag_event(struct notifier_block *nb, unsigned long event, void *data)\n {\n \tstruct mlx5_ib_dev *dev = container_of(nb, struct mlx5_ib_dev,\n@@ -4642,6 +4659,7 @@ static const struct ib_device_ops mlx5_ib_dev_ops = {\n \t.query_ucontext = mlx5_ib_query_ucontext,\n \t.reg_user_mr = mlx5_ib_reg_user_mr,\n \t.reg_user_mr_dmabuf = mlx5_ib_reg_user_mr_dmabuf,\n+\t.reap_eq = mlx5_ib_reap_eq,\n \t.req_notify_cq = mlx5_ib_arm_cq,\n \t.rereg_user_mr = mlx5_ib_rereg_user_mr,\n \t.resize_user_cq = mlx5_ib_resize_cq,\ndiff --git a/drivers/net/ethernet/mellanox/mlx5/core/eq.c b/drivers/net/ethernet/mellanox/mlx5/core/eq.c\nindex d11ec263d53c9..b5f292c1e9a70 100644\n--- a/drivers/net/ethernet/mellanox/mlx5/core/eq.c\n+++ b/drivers/net/ethernet/mellanox/mlx5/core/eq.c\n@@ -154,15 +154,36 @@ u32 mlx5_eq_poll_irq_disabled(struct mlx5_eq_comp *eq)\n {\n \tu32 count_eqe;\n \n+\tmutex_lock(\u0026eq-\u003epoll_lock);\n \tdisable_irq(eq-\u003ecore.irqn);\n \tcount_eqe = eq-\u003ecore.cons_index;\n \tmlx5_eq_comp_int(\u0026eq-\u003eirq_nb, 0, NULL);\n \tcount_eqe = eq-\u003ecore.cons_index - count_eqe;\n \tenable_irq(eq-\u003ecore.irqn);\n+\tmutex_unlock(\u0026eq-\u003epoll_lock);\n \n \treturn count_eqe;\n }\n \n+int mlx5_eq_reap(struct mlx5_core_dev *dev, struct mlx5_eq_comp *eq)\n+{\n+\tu32 eqe_count;\n+\n+\tif (!dev || !eq)\n+\t\treturn -EINVAL;\n+\n+\tmlx5_core_dbg(dev, \"EQ 0x%x: Cons = 0x%x, irqn = 0x%x\\n\",\n+\t\t eq-\u003ecore.eqn, eq-\u003ecore.cons_index, eq-\u003ecore.irqn);\n+\n+\teqe_count = mlx5_eq_poll_irq_disabled(eq);\n+\tif (eqe_count)\n+\t\tmlx5_core_warn(dev, \"Recovered %d EQEs on EQ 0x%x\\n\",\n+\t\t\t eqe_count, eq-\u003ecore.eqn);\n+\n+\treturn 0;\n+}\n+EXPORT_SYMBOL(mlx5_eq_reap);\n+\n static void mlx5_eq_async_int_lock(struct mlx5_eq_async *eq, bool recovery,\n \t\t\t\t unsigned long *flags)\n \t__acquires(\u0026eq-\u003elock)\n@@ -1012,6 +1033,7 @@ static int create_comp_eq(struct mlx5_core_dev *dev, u16 vecidx)\n \tINIT_LIST_HEAD(\u0026eq-\u003etasklet_ctx.list);\n \tINIT_LIST_HEAD(\u0026eq-\u003etasklet_ctx.process_list);\n \tspin_lock_init(\u0026eq-\u003etasklet_ctx.lock);\n+\tmutex_init(\u0026eq-\u003epoll_lock);\n \ttasklet_setup(\u0026eq-\u003etasklet_ctx.task, mlx5_cq_tasklet_cb);\n \n \tirq = xa_load(\u0026table-\u003ecomp_irqs, vecidx);\ndiff --git a/drivers/net/ethernet/mellanox/mlx5/core/lib/eq.h b/drivers/net/ethernet/mellanox/mlx5/core/lib/eq.h\nindex b1edc71ffc6dd..ca019b3019aac 100644\n--- a/drivers/net/ethernet/mellanox/mlx5/core/lib/eq.h\n+++ b/drivers/net/ethernet/mellanox/mlx5/core/lib/eq.h\n@@ -6,6 +6,7 @@\n #include \u003clinux/mlx5/driver.h\u003e\n #include \u003clinux/mlx5/eq.h\u003e\n #include \u003clinux/mlx5/cq.h\u003e\n+#include \u003clinux/mutex.h\u003e\n \n #define MLX5_EQE_SIZE (sizeof(struct mlx5_eqe))\n \n@@ -46,6 +47,7 @@ struct mlx5_eq_comp {\n \tstruct notifier_block irq_nb;\n \tstruct mlx5_eq_tasklet tasklet_ctx;\n \tstruct list_head list;\n+\tstruct mutex poll_lock; /* protect recovery polling */\n };\n \n static inline u32 eq_get_size(struct mlx5_eq *eq)\ndiff --git a/include/linux/mlx5/eq.h b/include/linux/mlx5/eq.h\nindex 3705a382276b3..a053f9eb2614a 100644\n--- a/include/linux/mlx5/eq.h\n+++ b/include/linux/mlx5/eq.h\n@@ -9,6 +9,7 @@\n #define MLX5_NUM_SPARE_EQE (0x80)\n \n struct mlx5_eq;\n+struct mlx5_eq_comp;\n struct mlx5_irq;\n struct mlx5_core_dev;\n \n@@ -29,6 +30,7 @@ void mlx5_eq_disable(struct mlx5_core_dev *dev, struct mlx5_eq *eq,\n \n struct mlx5_eqe *mlx5_eq_get_eqe(struct mlx5_eq *eq, u32 cc);\n void mlx5_eq_update_ci(struct mlx5_eq *eq, u32 cc, bool arm);\n+int mlx5_eq_reap(struct mlx5_core_dev *dev, struct mlx5_eq_comp *eq);\n \n /* The HCA will think the queue has overflowed if we\n * don't tell it we've been processing events. We\ndiff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h\nindex cb3b6163961b8..aa08c7a5ea22f 100644\n--- a/include/rdma/ib_verbs.h\n+++ b/include/rdma/ib_verbs.h\n@@ -2542,6 +2542,7 @@ struct ib_device_ops {\n \tint (*poll_cq)(struct ib_cq *cq, int num_entries, struct ib_wc *wc);\n \tint (*peek_cq)(struct ib_cq *cq, int wc_cnt);\n \tint (*req_notify_cq)(struct ib_cq *cq, enum ib_cq_notify_flags flags);\n+\tint (*reap_eq)(struct ib_device *device, struct ib_cq *cq);\n \tint (*post_srq_recv)(struct ib_srq *srq,\n \t\t\t const struct ib_recv_wr *recv_wr,\n \t\t\t const struct ib_recv_wr **bad_recv_wr);\n@@ -4296,6 +4297,29 @@ static inline int ib_req_notify_cq(struct ib_cq *cq,\n \treturn cq-\u003edevice-\u003eops.req_notify_cq(cq, flags);\n }\n \n+/**\n+ * ib_reap_eq - Poll the event queue associated with a CQ.\n+ * @device: Device that owns the CQ.\n+ * @cq: CQ whose associated event queue should be polled.\n+ *\n+ * Poll the device event queue associated with @cq to recover completions\n+ * after a missed event queue notification. This is an optional provider\n+ * callback.\n+ *\n+ * Return: 0 on success, %-EINVAL for invalid input, and %-EOPNOTSUPP when\n+ * unsupported.\n+ */\n+static inline int ib_reap_eq(struct ib_device *device, struct ib_cq *cq)\n+{\n+\tif (!device || !cq || cq-\u003edevice != device)\n+\t\treturn -EINVAL;\n+\n+\tif (!device-\u003eops.reap_eq)\n+\t\treturn -EOPNOTSUPP;\n+\n+\treturn device-\u003eops.reap_eq(device, cq);\n+}\n+\n struct ib_cq *ib_cq_pool_get(struct ib_device *dev, unsigned int nr_cqe,\n \t\t\t int comp_vector_hint,\n \t\t\t enum ib_poll_context poll_ctx);\n"
} |
| 2/1 | 2026/09/20 15:03 | agent | patch-evaluator |
1mModel:core Args: null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch introduces event queue reaping support (reap_eq) specifically for Mellanox ConnectX hardware (mlx5 / mlx5_ib). The changes in the RDMA core (drivers/infiniband/core/device.c and include/rdma/ib_verbs.h) only register and declare the optional provider callback; no generic core code invokes ib_reap_eq(), and no software RDMA drivers (such as rdma_rxe or siw) implement it. The actual logic modifications (mlx5_ib_reap_eq, mlx5_eq_reap, and mutex synchronization in mlx5_eq_poll_irq_disabled) are confined to mlx5 hardware drivers, which require physical Mellanox ASIC/PCIe devices not emulated in standard QEMU/KVM environments. Therefore, the modified code is structurally unreachable for 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 2eb85aa15acab7e2e15cb6ca9ef0561718ed1785
Author: syz-cluster <triage@syzkaller.com>
Date: Sun Sep 20 15:03:35 2026 +0000
syz-cluster: applied patch under review
diff --git a/drivers/infiniband/core/device.c b/drivers/infiniband/core/device.c
index 7a3ed5ecac001..a0a6e4a9ed50a 100644
--- a/drivers/infiniband/core/device.c
+++ b/drivers/infiniband/core/device.c
@@ -3016,6 +3016,7 @@ void ib_set_device_ops(struct ib_device *dev, const struct ib_device_ops *ops)
SET_DEVICE_OP(dev_ops, rdma_netdev_get_params);
SET_DEVICE_OP(dev_ops, read_counters);
SET_DEVICE_OP(dev_ops, read_comp_cntr);
+ SET_DEVICE_OP(dev_ops, reap_eq);
SET_DEVICE_OP(dev_ops, reg_dm_mr);
SET_DEVICE_OP(dev_ops, reg_user_mr);
SET_DEVICE_OP(dev_ops, reg_user_mr_dmabuf);
diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c
index 373ee1f42d4ad..ae8d32358e82d 100644
--- a/drivers/infiniband/hw/mlx5/main.c
+++ b/drivers/infiniband/hw/mlx5/main.c
@@ -22,6 +22,7 @@
#include <rdma/ib_addr.h>
#include <rdma/ib_cache.h>
#include <linux/mlx5/port.h>
+#include <linux/mlx5/eq.h>
#include <linux/mlx5/vport.h>
#include <linux/mlx5/fs.h>
#include <linux/mlx5/eswitch.h>
@@ -3654,6 +3655,22 @@ static void get_dev_fw_str(struct ib_device *ibdev, char *str)
fw_rev_sub(dev->mdev));
}
+static int mlx5_ib_reap_eq(struct ib_device *ibdev, struct ib_cq *ibcq)
+{
+ struct mlx5_ib_dev *dev;
+ struct mlx5_ib_cq *cq;
+
+ if (!ibdev || !ibcq || ibcq->device != ibdev)
+ return -EINVAL;
+
+ dev = to_mdev(ibdev);
+ if (!dev->mdev)
+ return -ENODEV;
+
+ cq = to_mcq(ibcq);
+ return mlx5_eq_reap(dev->mdev, cq->mcq.eq);
+}
+
static int lag_event(struct notifier_block *nb, unsigned long event, void *data)
{
struct mlx5_ib_dev *dev = container_of(nb, struct mlx5_ib_dev,
@@ -4642,6 +4659,7 @@ static const struct ib_device_ops mlx5_ib_dev_ops = {
.query_ucontext = mlx5_ib_query_ucontext,
.reg_user_mr = mlx5_ib_reg_user_mr,
.reg_user_mr_dmabuf = mlx5_ib_reg_user_mr_dmabuf,
+ .reap_eq = mlx5_ib_reap_eq,
.req_notify_cq = mlx5_ib_arm_cq,
.rereg_user_mr = mlx5_ib_rereg_user_mr,
.resize_user_cq = mlx5_ib_resize_cq,
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eq.c b/drivers/net/ethernet/mellanox/mlx5/core/eq.c
index d11ec263d53c9..b5f292c1e9a70 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/eq.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/eq.c
@@ -154,15 +154,36 @@ u32 mlx5_eq_poll_irq_disabled(struct mlx5_eq_comp *eq)
{
u32 count_eqe;
+ mutex_lock(&eq->poll_lock);
disable_irq(eq->core.irqn);
count_eqe = eq->core.cons_index;
mlx5_eq_comp_int(&eq->irq_nb, 0, NULL);
count_eqe = eq->core.cons_index - count_eqe;
enable_irq(eq->core.irqn);
+ mutex_unlock(&eq->poll_lock);
return count_eqe;
}
+int mlx5_eq_reap(struct mlx5_core_dev *dev, struct mlx5_eq_comp *eq)
+{
+ u32 eqe_count;
+
+ if (!dev || !eq)
+ return -EINVAL;
+
+ mlx5_core_dbg(dev, "EQ 0x%x: Cons = 0x%x, irqn = 0x%x\n",
+ eq->core.eqn, eq->core.cons_index, eq->core.irqn);
+
+ eqe_count = mlx5_eq_poll_irq_disabled(eq);
+ if (eqe_count)
+ mlx5_core_warn(dev, "Recovered %d EQEs on EQ 0x%x\n",
+ eqe_count, eq->core.eqn);
+
+ return 0;
+}
+EXPORT_SYMBOL(mlx5_eq_reap);
+
static void mlx5_eq_async_int_lock(struct mlx5_eq_async *eq, bool recovery,
unsigned long *flags)
__acquires(&eq->lock)
@@ -1012,6 +1033,7 @@ static int create_comp_eq(struct mlx5_core_dev *dev, u16 vecidx)
INIT_LIST_HEAD(&eq->tasklet_ctx.list);
INIT_LIST_HEAD(&eq->tasklet_ctx.process_list);
spin_lock_init(&eq->tasklet_ctx.lock);
+ mutex_init(&eq->poll_lock);
tasklet_setup(&eq->tasklet_ctx.task, mlx5_cq_tasklet_cb);
irq = xa_load(&table->comp_irqs, vecidx);
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/lib/eq.h b/drivers/net/ethernet/mellanox/mlx5/core/lib/eq.h
index b1edc71ffc6dd..ca019b3019aac 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/lib/eq.h
+++ b/drivers/net/ethernet/mellanox/mlx5/core/lib/eq.h
@@ -6,6 +6,7 @@
#include <linux/mlx5/driver.h>
#include <linux/mlx5/eq.h>
#include <linux/mlx5/cq.h>
+#include <linux/mutex.h>
#define MLX5_EQE_SIZE (sizeof(struct mlx5_eqe))
@@ -46,6 +47,7 @@ struct mlx5_eq_comp {
struct notifier_block irq_nb;
struct mlx5_eq_tasklet tasklet_ctx;
struct list_head list;
+ struct mutex poll_lock; /* protect recovery polling */
};
static inline u32 eq_get_size(struct mlx5_eq *eq)
diff --git a/include/linux/mlx5/eq.h b/include/linux/mlx5/eq.h
index 3705a382276b3..a053f9eb2614a 100644
--- a/include/linux/mlx5/eq.h
+++ b/include/linux/mlx5/eq.h
@@ -9,6 +9,7 @@
#define MLX5_NUM_SPARE_EQE (0x80)
struct mlx5_eq;
+struct mlx5_eq_comp;
struct mlx5_irq;
struct mlx5_core_dev;
@@ -29,6 +30,7 @@ void mlx5_eq_disable(struct mlx5_core_dev *dev, struct mlx5_eq *eq,
struct mlx5_eqe *mlx5_eq_get_eqe(struct mlx5_eq *eq, u32 cc);
void mlx5_eq_update_ci(struct mlx5_eq *eq, u32 cc, bool arm);
+int mlx5_eq_reap(struct mlx5_core_dev *dev, struct mlx5_eq_comp *eq);
/* The HCA will think the queue has overflowed if we
* don't tell it we've been processing events. We
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index cb3b6163961b8..aa08c7a5ea22f 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -2542,6 +2542,7 @@ struct ib_device_ops {
int (*poll_cq)(struct ib_cq *cq, int num_entries, struct ib_wc *wc);
int (*peek_cq)(struct ib_cq *cq, int wc_cnt);
int (*req_notify_cq)(struct ib_cq *cq, enum ib_cq_notify_flags flags);
+ int (*reap_eq)(struct ib_device *device, struct ib_cq *cq);
int (*post_srq_recv)(struct ib_srq *srq,
const struct ib_recv_wr *recv_wr,
const struct ib_recv_wr **bad_recv_wr);
@@ -4296,6 +4297,29 @@ static inline int ib_req_notify_cq(struct ib_cq *cq,
return cq->device->ops.req_notify_cq(cq, flags);
}
+/**
+ * ib_reap_eq - Poll the event queue associated with a CQ.
+ * @device: Device that owns the CQ.
+ * @cq: CQ whose associated event queue should be polled.
+ *
+ * Poll the device event queue associated with @cq to recover completions
+ * after a missed event queue notification. This is an optional provider
+ * callback.
+ *
+ * Return: 0 on success, %-EINVAL for invalid input, and %-EOPNOTSUPP when
+ * unsupported.
+ */
+static inline int ib_reap_eq(struct ib_device *device, struct ib_cq *cq)
+{
+ if (!device || !cq || cq->device != device)
+ return -EINVAL;
+
+ if (!device->ops.reap_eq)
+ return -EOPNOTSUPP;
+
+ return device->ops.reap_eq(device, cq);
+}
+
struct ib_cq *ib_cq_pool_get(struct ib_device *dev, unsigned int nr_cqe,
int comp_vector_hint,
enum ib_poll_context poll_ctx);
|
| 3/2 | 2026/09/20 15:03 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 5658 output: 20 thoughts: 688 Thoughts: **Analyzing the Patch: Implications for RDMA and Emulation** Okay, let's break this down. First, I need to understand what this patch is changing. Seems like a focus on `reap_eq` functionality. * `drivers/infiniband/core/device.c`: Sets a device operation, `reap_eq`. Alright, standard setup. * `drivers/infiniband/hw/mlx5/main.c`: Introduces `mlx5_ib_reap_eq`, and connects it in `mlx5_ib_dev_ops`. This looks Mellanox specific. * `drivers/net/ethernet/mellanox/mlx5/core/eq.c`: Ah, some locking primitives (mutex) around the EQ polling code (`mlx5_eq_poll_irq_disabled`) and a new function `mlx5_eq_reap` is being *exported*. Interesting. This suggests something external might be calling this. And a `poll_lock` mutex is being initialized in `create_comp_eq`. Okay, sounds good. * `drivers/net/ethernet/mellanox/mlx5/core/lib/eq.h`: Adds the `poll_lock` mutex to the `struct mlx5_eq_comp`. Consistent. * `include/linux/mlx5/eq.h`: Declares `mlx5_eq_reap`. Supporting header. * `include/rdma/ib_verbs.h`: Defines the function pointer `reap_eq` in `struct ib_device_ops` and provides a static inline for `ib_reap_eq`. This is the important part - generalizing the interface. Now, this gets me thinking. Is the hardware this is addressing reachable or... not? That section about structurally unreachable hardware... Let me review. PCIe switches, SmartNICs, GPU drivers (mlxsw, pds_core, qed, ionic, amdgpu) that need physical ASIC/PCIe cards. The patch is working on `mlx5`. *That's* Mellanox ConnectX-4, -5, -6, right? Ethernet and InfiniBand adapters. The real question is... is `mlx5` emulated in QEMU? And QEMU *doesn't* have mlx5 emulation! It's got e1000, igb, virtio-net and the usual suspects. This is starting to feel like a very niche situation. But the patch does touch `drivers/infiniband/core/device.c`, with the `ib_reap_eq` function. Let me see where `ib_reap_eq` is actually *called*. That's where I'll get the real story. |
| 4/2 | 2026/09/20 15:03 | tool | grepper |
0mArgs:{
"Expression": "ib_reap_eq"
}Results: {
"Output": "drivers/infiniband/hw/mlx5/main.c=3649=static void get_dev_fw_str(struct ib_device *ibdev, char *str)\n--\ndrivers/infiniband/hw/mlx5/main.c-3657-\ndrivers/infiniband/hw/mlx5/main.c:3658:static int mlx5_ib_reap_eq(struct ib_device *ibdev, struct ib_cq *ibcq)\ndrivers/infiniband/hw/mlx5/main.c-3659-{\n--\ndrivers/infiniband/hw/mlx5/main.c=4598=static const struct ib_device_ops mlx5_ib_dev_ops = {\n--\ndrivers/infiniband/hw/mlx5/main.c-4661-\t.reg_user_mr_dmabuf = mlx5_ib_reg_user_mr_dmabuf,\ndrivers/infiniband/hw/mlx5/main.c:4662:\t.reap_eq = mlx5_ib_reap_eq,\ndrivers/infiniband/hw/mlx5/main.c-4663-\t.req_notify_cq = mlx5_ib_arm_cq,\n--\ninclude/rdma/ib_verbs.h=4294=static inline int ib_req_notify_cq(struct ib_cq *cq,\n--\ninclude/rdma/ib_verbs.h-4300-/**\ninclude/rdma/ib_verbs.h:4301: * ib_reap_eq - Poll the event queue associated with a CQ.\ninclude/rdma/ib_verbs.h-4302- * @device: Device that owns the CQ.\n--\ninclude/rdma/ib_verbs.h-4311- */\ninclude/rdma/ib_verbs.h:4312:static inline int ib_reap_eq(struct ib_device *device, struct ib_cq *cq)\ninclude/rdma/ib_verbs.h-4313-{\n"
} |
| 5/2 | 2026/09/20 15:03 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 7493 output: 19 thoughts: 16 Thoughts: Here's my summary, as though I'm thinking it: **Digging into `reap_eq`'s Usage** Okay, so I need to understand the implications of this function, `reap_eq`. The first, and arguably most crucial, thing I want to do is see where this is *actually* being called within the codebase. Knowing just where `reap_eq` is used will give me a huge head start in understanding its purpose, its potential side effects, and any dependencies it might have. I need a clear picture of its calling context before I can even begin to assess its significance properly. Let's see if I can trace its usage. |
| 6/2 | 2026/09/20 15:03 | tool | grepper |
0mArgs:{
"Expression": "\\.reap_eq"
}Results: {
"Output": "drivers/infiniband/hw/mlx5/main.c=4598=static const struct ib_device_ops mlx5_ib_dev_ops = {\n--\ndrivers/infiniband/hw/mlx5/main.c-4661-\t.reg_user_mr_dmabuf = mlx5_ib_reg_user_mr_dmabuf,\ndrivers/infiniband/hw/mlx5/main.c:4662:\t.reap_eq = mlx5_ib_reap_eq,\ndrivers/infiniband/hw/mlx5/main.c-4663-\t.req_notify_cq = mlx5_ib_arm_cq,\n--\ninclude/rdma/ib_verbs.h=4312=static inline int ib_reap_eq(struct ib_device *device, struct ib_cq *cq)\n--\ninclude/rdma/ib_verbs.h-4316-\ninclude/rdma/ib_verbs.h:4317:\tif (!device-\u003eops.reap_eq)\ninclude/rdma/ib_verbs.h-4318-\t\treturn -EOPNOTSUPP;\ninclude/rdma/ib_verbs.h-4319-\ninclude/rdma/ib_verbs.h:4320:\treturn device-\u003eops.reap_eq(device, cq);\ninclude/rdma/ib_verbs.h-4321-}\n"
} |
| 7/2 | 2026/09/20 15:03 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 8039 output: 21 thoughts: 18 Thoughts: Okay, let's see. My first thought is: **Hunting Down `mlx5_eq_reap`**. I need to figure out where this function, `mlx5_eq_reap`, is actually used. I need to understand its call graph to see its role in the bigger picture. Time to get digging, see if I can find all the instances where it's invoked. Let's start the search and see what the code reveals. |
| 8/2 | 2026/09/20 15:03 | tool | grepper |
0mArgs:{
"Expression": "mlx5_eq_reap"
}Results: {
"Output": "drivers/infiniband/hw/mlx5/main.c=3658=static int mlx5_ib_reap_eq(struct ib_device *ibdev, struct ib_cq *ibcq)\n--\ndrivers/infiniband/hw/mlx5/main.c-3670-\tcq = to_mcq(ibcq);\ndrivers/infiniband/hw/mlx5/main.c:3671:\treturn mlx5_eq_reap(dev-\u003emdev, cq-\u003emcq.eq);\ndrivers/infiniband/hw/mlx5/main.c-3672-}\n--\ndrivers/net/ethernet/mellanox/mlx5/core/eq.c=153=u32 mlx5_eq_poll_irq_disabled(struct mlx5_eq_comp *eq)\n--\ndrivers/net/ethernet/mellanox/mlx5/core/eq.c-167-\ndrivers/net/ethernet/mellanox/mlx5/core/eq.c:168:int mlx5_eq_reap(struct mlx5_core_dev *dev, struct mlx5_eq_comp *eq)\ndrivers/net/ethernet/mellanox/mlx5/core/eq.c-169-{\n--\ndrivers/net/ethernet/mellanox/mlx5/core/eq.c-184-}\ndrivers/net/ethernet/mellanox/mlx5/core/eq.c:185:EXPORT_SYMBOL(mlx5_eq_reap);\ndrivers/net/ethernet/mellanox/mlx5/core/eq.c-186-\n--\ninclude/linux/mlx5/eq.h=32=void mlx5_eq_update_ci(struct mlx5_eq *eq, u32 cc, bool arm);\ninclude/linux/mlx5/eq.h:33:int mlx5_eq_reap(struct mlx5_core_dev *dev, struct mlx5_eq_comp *eq);\ninclude/linux/mlx5/eq.h-34-\n"
} |
| 9/2 | 2026/09/20 15:04 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 8698 output: 25 thoughts: 23 Thoughts: Here's my summary, as though I were thinking through the problem: **Digging into `mlx5_eq_poll_irq_disabled` Usage** Okay, so I've got this function, `mlx5_eq_poll_irq_disabled`, and I need to understand its role within the broader context. My initial instinct is to track down its call sites. Knowing *where* it's being used is key to understanding *why* it's being used. I need to see if it's confined to a specific module or if it's more widely employed. A quick search for cross-references should give me a good handle on its scope. This will tell me a lot about its importance and if its behaviour is as I would expect, to ensure everything's running smoothly. Time to dive into the code and see what I can find! |
| 10/2 | 2026/09/20 15:04 | tool | grepper |
0mArgs:{
"Expression": "mlx5_eq_poll_irq_disabled"
}Results: {
"Output": "drivers/net/ethernet/mellanox/mlx5/core/en/health.c=133=int mlx5e_health_channel_eq_recover(struct net_device *dev, struct mlx5_eq_comp *eq,\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/health.c-140-\ndrivers/net/ethernet/mellanox/mlx5/core/en/health.c:141:\teqe_count = mlx5_eq_poll_irq_disabled(eq);\ndrivers/net/ethernet/mellanox/mlx5/core/en/health.c-142-\tif (!eqe_count)\n--\ndrivers/net/ethernet/mellanox/mlx5/core/eq.c=106=static int mlx5_eq_comp_int(struct notifier_block *nb,\n--\ndrivers/net/ethernet/mellanox/mlx5/core/eq.c-148-/* Some architectures don't latch interrupts when they are disabled, so using\ndrivers/net/ethernet/mellanox/mlx5/core/eq.c:149: * mlx5_eq_poll_irq_disabled could end up losing interrupts while trying to\ndrivers/net/ethernet/mellanox/mlx5/core/eq.c-150- * avoid losing them. It is not recommended to use it, unless this is the last\n--\ndrivers/net/ethernet/mellanox/mlx5/core/eq.c-152- */\ndrivers/net/ethernet/mellanox/mlx5/core/eq.c:153:u32 mlx5_eq_poll_irq_disabled(struct mlx5_eq_comp *eq)\ndrivers/net/ethernet/mellanox/mlx5/core/eq.c-154-{\n--\ndrivers/net/ethernet/mellanox/mlx5/core/eq.c=168=int mlx5_eq_reap(struct mlx5_core_dev *dev, struct mlx5_eq_comp *eq)\n--\ndrivers/net/ethernet/mellanox/mlx5/core/eq.c-177-\ndrivers/net/ethernet/mellanox/mlx5/core/eq.c:178:\teqe_count = mlx5_eq_poll_irq_disabled(eq);\ndrivers/net/ethernet/mellanox/mlx5/core/eq.c-179-\tif (eqe_count)\n--\ndrivers/net/ethernet/mellanox/mlx5/core/lib/eq.h=89=void mlx5_cq_tasklet_cb(struct tasklet_struct *t);\ndrivers/net/ethernet/mellanox/mlx5/core/lib/eq.h-90-\ndrivers/net/ethernet/mellanox/mlx5/core/lib/eq.h:91:u32 mlx5_eq_poll_irq_disabled(struct mlx5_eq_comp *eq);\ndrivers/net/ethernet/mellanox/mlx5/core/lib/eq.h-92-void mlx5_cmd_eq_recover(struct mlx5_core_dev *dev);\n"
} |
| 11/2 | 2026/09/20 15:04 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 9736 output: 41 thoughts: 293 Thoughts: **My Assessment of the WorthFuzzing Criteria** Okay, so we're looking at `mlx5` – that's Mellanox ConnectX hardware. Time to quickly run through the criteria for determining if this patch is "WorthFuzzing" or not. Let's see... we need to find the negative criteria, the times when we *don't* fuzz. I need to make sure I understand the restrictions so I don't waste time. Here are the relevant negative criteria from the document: * Structurally unreachable hardware: Vendor-specific PCIe switches, SmartNICs, or GPU drivers requiring physical hardware not emulated in standard QEMU. That list includes `mlxsw`, `pds_core`, `qed`, `ionic`, and `amdgpu`. * Unreachable execution paths: Driver teardown callbacks only used during PCI hot-unplug or manual sysfs driver unbinding, or code paths exclusive to different architectures. Now, let's look at the patch itself. I need to figure out what it's actually modifying. Ah, I see: `drivers/infiniband/core/device.c`. Okay... but wait. What's going on in `drivers/infiniband/core/device.c`? There's a `SET_DEVICE_OP` call in there. Specifically, `SET_DEVICE_OP(dev_ops, reap_eq)`. Hmm, that's interesting. I need to understand that. I need to see what that particular bit of code is doing within the context of the larger file. Let me check around line 3016 in `drivers/infiniband/core/device.c`. |
| 12/2 | 2026/09/20 15:04 | tool | read-file |
0mArgs:{
"File": "drivers/infiniband/core/device.c",
"FirstLine": 3005,
"LineCount": 35
}Results: {
"Contents": "3005:\t\tSET_DEVICE_OP(dev_ops, process_mad);\n3006:\t\tSET_DEVICE_OP(dev_ops, query_ah);\n3007:\t\tSET_DEVICE_OP(dev_ops, query_comp_cntr_caps);\n3008:\t\tSET_DEVICE_OP(dev_ops, query_device);\n3009:\t\tSET_DEVICE_OP(dev_ops, query_gid);\n3010:\t\tSET_DEVICE_OP(dev_ops, query_pkey);\n3011:\t\tSET_DEVICE_OP(dev_ops, query_port);\n3012:\t\tSET_DEVICE_OP(dev_ops, query_port_speed);\n3013:\t\tSET_DEVICE_OP(dev_ops, query_qp);\n3014:\t\tSET_DEVICE_OP(dev_ops, query_srq);\n3015:\t\tSET_DEVICE_OP(dev_ops, query_ucontext);\n3016:\t\tSET_DEVICE_OP(dev_ops, rdma_netdev_get_params);\n3017:\t\tSET_DEVICE_OP(dev_ops, read_counters);\n3018:\t\tSET_DEVICE_OP(dev_ops, read_comp_cntr);\n3019:\t\tSET_DEVICE_OP(dev_ops, reap_eq);\n3020:\t\tSET_DEVICE_OP(dev_ops, reg_dm_mr);\n3021:\t\tSET_DEVICE_OP(dev_ops, reg_user_mr);\n3022:\t\tSET_DEVICE_OP(dev_ops, reg_user_mr_dmabuf);\n3023:\t\tSET_DEVICE_OP(dev_ops, req_notify_cq);\n3024:\t\tSET_DEVICE_OP(dev_ops, rereg_user_mr);\n3025:\t\tSET_DEVICE_OP(dev_ops, resize_user_cq);\n3026:\t\tSET_DEVICE_OP(dev_ops, modify_comp_cntr);\n3027:\t\tSET_DEVICE_OP(dev_ops, set_vf_guid);\n3028:\t\tSET_DEVICE_OP(dev_ops, set_vf_link_state);\n3029:\t\tSET_DEVICE_OP(dev_ops, ufile_hw_cleanup);\n3030:\t\tSET_DEVICE_OP(dev_ops, report_port_event);\n3031:\t\n3032:\t\tSET_OBJ_SIZE(dev_ops, ib_ah);\n3033:\t\tSET_OBJ_SIZE(dev_ops, ib_counters);\n3034:\t\tSET_OBJ_SIZE(dev_ops, ib_cq);\n3035:\t\tSET_OBJ_SIZE(dev_ops, ib_comp_cntr);\n3036:\t\tSET_OBJ_SIZE(dev_ops, ib_dmah);\n3037:\t\tSET_OBJ_SIZE(dev_ops, ib_mw);\n3038:\t\tSET_OBJ_SIZE(dev_ops, ib_pd);\n3039:\t\tSET_OBJ_SIZE(dev_ops, ib_qp);\n"
} |
| 13/2 | 2026/09/20 15:04 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 11220 output: 30 thoughts: 72 Thoughts: **My Initial Thoughts on IB Device Operations and `reap_eq` Implementation** Okay, so `ib_set_device_ops` seems straightforward enough; it's just copying operations from one structure (`ops`) to another (`dev->ops`). A standard initialization function, I'd say. But it got me thinking. Specifically, the function `reap_eq`. Now, I'm curious. Is `reap_eq` actually implemented by any of the *emulated* or software RDMA drivers out there? I'm thinking of things like `rxe`, or `siw` – you know, the ones that don't rely on dedicated hardware but still provide RDMA functionality. That would be a really interesting piece of information. So, let's dive into the code. I'm going to search the `drivers/infiniband/` directory for the usage of `reap_eq`. That'll give me a good handle on where and how it's used within the codebase, and hopefully, answer my question regarding its implementation among the software drivers. |
| 14/2 | 2026/09/20 15:04 | tool | grepper |
0mArgs:{
"Expression": "reap_eq",
"PathPrefix": "drivers/infiniband"
}Results: {
"Output": "drivers/infiniband/core/device.c=2867=void ib_set_device_ops(struct ib_device *dev, const struct ib_device_ops *ops)\n--\ndrivers/infiniband/core/device.c-3018-\tSET_DEVICE_OP(dev_ops, read_comp_cntr);\ndrivers/infiniband/core/device.c:3019:\tSET_DEVICE_OP(dev_ops, reap_eq);\ndrivers/infiniband/core/device.c-3020-\tSET_DEVICE_OP(dev_ops, reg_dm_mr);\n--\ndrivers/infiniband/hw/mlx5/main.c=3649=static void get_dev_fw_str(struct ib_device *ibdev, char *str)\n--\ndrivers/infiniband/hw/mlx5/main.c-3657-\ndrivers/infiniband/hw/mlx5/main.c:3658:static int mlx5_ib_reap_eq(struct ib_device *ibdev, struct ib_cq *ibcq)\ndrivers/infiniband/hw/mlx5/main.c-3659-{\n--\ndrivers/infiniband/hw/mlx5/main.c=4598=static const struct ib_device_ops mlx5_ib_dev_ops = {\n--\ndrivers/infiniband/hw/mlx5/main.c-4661-\t.reg_user_mr_dmabuf = mlx5_ib_reg_user_mr_dmabuf,\ndrivers/infiniband/hw/mlx5/main.c:4662:\t.reap_eq = mlx5_ib_reap_eq,\ndrivers/infiniband/hw/mlx5/main.c-4663-\t.req_notify_cq = mlx5_ib_arm_cq,\n"
} |
| 15/2 | 2026/09/20 15:04 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 12037 output: 18 thoughts: 182 Thoughts: **My Investigation into the `ib_reap_eq` Function** Okay, so `ib_reap_eq` is solely implemented by the mlx5 driver (`mlx5_ib_dev_ops`). That's a key piece of information. But wait a minute... I need to be absolutely sure this function is *actually* used. Is it called anywhere else in the kernel? I need to check. Let's quickly run a `git log -1`, a `git diff`, or a `grep` to hunt down any calls to `ib_reap_eq`. Hmm, earlier I did a `grep` for `ib_reap_eq` and the results were: `drivers/infiniband/hw/mlx5/main.c: static int mlx5_ib_reap_eq` `include/rdma/ib_verbs.h: static inline int ib_reap_eq(...)` But wait, that just shows the *definition* of the function. It doesn't tell me where it's *called*. Did I miss something? I need to know where it's used. Based on these search results, I haven't found a single call to `ib_reap_eq` within the kernel source. Okay, let's step back for a moment. Could userspace be calling it through uverbs, ioctls, or the RDMA user API (uapi)? I need to check the user-space interfaces to confirm that kernel code is not invoking `ib_reap_eq`. That's the next logical step. |
| 16/2 | 2026/09/20 15:04 | tool | grepper |
0mArgs:{
"Expression": "reap_eq"
}Results: {
"Output": "drivers/infiniband/core/device.c=2867=void ib_set_device_ops(struct ib_device *dev, const struct ib_device_ops *ops)\n--\ndrivers/infiniband/core/device.c-3018-\tSET_DEVICE_OP(dev_ops, read_comp_cntr);\ndrivers/infiniband/core/device.c:3019:\tSET_DEVICE_OP(dev_ops, reap_eq);\ndrivers/infiniband/core/device.c-3020-\tSET_DEVICE_OP(dev_ops, reg_dm_mr);\n--\ndrivers/infiniband/hw/mlx5/main.c=3649=static void get_dev_fw_str(struct ib_device *ibdev, char *str)\n--\ndrivers/infiniband/hw/mlx5/main.c-3657-\ndrivers/infiniband/hw/mlx5/main.c:3658:static int mlx5_ib_reap_eq(struct ib_device *ibdev, struct ib_cq *ibcq)\ndrivers/infiniband/hw/mlx5/main.c-3659-{\n--\ndrivers/infiniband/hw/mlx5/main.c=4598=static const struct ib_device_ops mlx5_ib_dev_ops = {\n--\ndrivers/infiniband/hw/mlx5/main.c-4661-\t.reg_user_mr_dmabuf = mlx5_ib_reg_user_mr_dmabuf,\ndrivers/infiniband/hw/mlx5/main.c:4662:\t.reap_eq = mlx5_ib_reap_eq,\ndrivers/infiniband/hw/mlx5/main.c-4663-\t.req_notify_cq = mlx5_ib_arm_cq,\n--\ninclude/rdma/ib_verbs.h=2516=struct ib_device_ops {\n--\ninclude/rdma/ib_verbs.h-2544-\tint (*req_notify_cq)(struct ib_cq *cq, enum ib_cq_notify_flags flags);\ninclude/rdma/ib_verbs.h:2545:\tint (*reap_eq)(struct ib_device *device, struct ib_cq *cq);\ninclude/rdma/ib_verbs.h-2546-\tint (*post_srq_recv)(struct ib_srq *srq,\n--\ninclude/rdma/ib_verbs.h=4294=static inline int ib_req_notify_cq(struct ib_cq *cq,\n--\ninclude/rdma/ib_verbs.h-4300-/**\ninclude/rdma/ib_verbs.h:4301: * ib_reap_eq - Poll the event queue associated with a CQ.\ninclude/rdma/ib_verbs.h-4302- * @device: Device that owns the CQ.\n--\ninclude/rdma/ib_verbs.h-4311- */\ninclude/rdma/ib_verbs.h:4312:static inline int ib_reap_eq(struct ib_device *device, struct ib_cq *cq)\ninclude/rdma/ib_verbs.h-4313-{\n--\ninclude/rdma/ib_verbs.h-4316-\ninclude/rdma/ib_verbs.h:4317:\tif (!device-\u003eops.reap_eq)\ninclude/rdma/ib_verbs.h-4318-\t\treturn -EOPNOTSUPP;\ninclude/rdma/ib_verbs.h-4319-\ninclude/rdma/ib_verbs.h:4320:\treturn device-\u003eops.reap_eq(device, cq);\ninclude/rdma/ib_verbs.h-4321-}\n"
} |
| 17/2 | 2026/09/20 15:04 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 13548 output: 26 thoughts: 2161 Thoughts: **Analysis of the "reap_eq" RDMA Patch** Okay, let's break this down systematically. My initial observation is that `reap_eq` and `mlx5_eq_reap` are tightly coupled within the Mellanox (mlx5) driver, specifically related to event queue (EQ) reaping. `mlx5_eq_poll_irq_disabled` is also involved, and that's only called in `mlx5_eq_reap`, and the health channel recovery. The question immediately arises: can this mlx5 code even *run* in a standard QEMU or GCE environment that doesn't have physical hardware? I need to clarify if there's any form of virtualization or emulation for this hardware. The core of mlx5 is designed for Mellanox ConnectX hardware, which are specific PCIe devices. Standard virtual environments do not emulate or virtualize this class of hardware. Now, that `ib_set_device_ops` is interesting. The addition of `SET_DEVICE_OP(dev_ops, reap_eq)` to `drivers/infiniband/core/device.c` means that when *any* IB device registers (e.g. `rxe` or `siw`), `ib_set_device_ops` is called. Inside `ib_set_device_ops`, we see a conditional assignment: `dev->ops.reap_eq = ops->reap_eq;` But, importantly, in the case of software RDMA devices like `rxe` or `siw`, the `ops->reap_eq` pointer is always `NULL`. Further, even if `reap_eq` was *set*, there is *no* call site for `ib_reap_eq()` in the kernel. `ib_reap_eq()` is an inline helper. The critical point here is that the *only* implementation of `reap_eq` is `mlx5_ib_reap_eq`, and that's completely within the mlx5 driver. `mlx5_ib_reap_eq` requires the physical Mellanox hardware. All other code changes are strictly within the mlx5 driver and therefore not applicable. So, the key negative criteria for determining if this warrants fuzzing hinges on structural unreachability. Is the Mellanox hardware structurally unreachable? The answer is *unequivocally yes*. The mlx5 driver requires specific physical ASIC/PCIe cards (Mellanox ConnectX) not emulated in standard QEMU. This means the crucial part of this patch, which is the actual logic introduced in mlx5 (`mlx5_ib_reap_eq`, `mlx5_eq_reap`, `mlx5_eq_poll_irq_disabled`, and the mutex locking), is all in unreachable code. Even though the `SET_DEVICE_OP` macro does execute when an RDMA device registers, it only copies the `reap_eq` function pointer if `ops->reap_eq` is not null. For `rxe` or `siw` (software RDMA), it's null, so the macro expands to a simple `if (0)` that has no effect. The rdma core change is just adding `reap_eq` to `ib_device_ops` and calling `SET_DEVICE_OP(dev_ops, reap_eq);`, plus an unused inline helper in `include/rdma/ib_verbs.h`. The executable changes are only in the mlx5 driver. Given that fuzzing requires reachability, and given that the core logic and all the relevant execution paths are tied to hardware that is *not* present in standard virtualized environments, this patch is a definite `WorthFuzzing=false`. The only remotely executable code is functionally a no-op, adding an unnecessary null check. |
| 18/2 | 2026/09/20 15:04 | tool | grepper |
0mArgs:{
"Expression": "CONFIG_MLX5",
"PathPrefix": "drivers"
}Results: {
"Output": "\nFull output is too long, showing 500 out of 1406 lines.\nUse more precise expression if possible.\n\ndrivers/infiniband/hw/Makefile=7=obj-$(CONFIG_MLX4_INFINIBAND)\t\t+= mlx4/\ndrivers/infiniband/hw/Makefile:8:obj-$(CONFIG_MLX5_INFINIBAND)\t\t+= mlx5/\ndrivers/infiniband/hw/Makefile-9-obj-$(CONFIG_INFINIBAND_OCRDMA)\t\t+= ocrdma/\n--\ndrivers/infiniband/hw/mlx5/Makefile-1-# SPDX-License-Identifier: GPL-2.0-only\ndrivers/infiniband/hw/mlx5/Makefile:2:obj-$(CONFIG_MLX5_INFINIBAND) += mlx5_ib.o\ndrivers/infiniband/hw/mlx5/Makefile-3-\n--\ndrivers/infiniband/hw/mlx5/Makefile=28=mlx5_ib-$(CONFIG_INFINIBAND_ON_DEMAND_PAGING) += odp.o\ndrivers/infiniband/hw/mlx5/Makefile:29:mlx5_ib-$(CONFIG_MLX5_ESWITCH) += ib_rep.o\ndrivers/infiniband/hw/mlx5/Makefile-30-mlx5_ib-$(CONFIG_INFINIBAND_USER_ACCESS) += devx.o \\\n--\ndrivers/infiniband/hw/mlx5/Makefile-32-\t\t\t\t\t std_types.o\ndrivers/infiniband/hw/mlx5/Makefile:33:mlx5_ib-$(CONFIG_MLX5_MACSEC) += macsec.o\n--\ndrivers/infiniband/hw/mlx5/ib_rep.h=12=extern const struct mlx5_ib_profile raw_eth_profile;\ndrivers/infiniband/hw/mlx5/ib_rep.h-13-\ndrivers/infiniband/hw/mlx5/ib_rep.h:14:#ifdef CONFIG_MLX5_ESWITCH\ndrivers/infiniband/hw/mlx5/ib_rep.h-15-int mlx5r_rep_init(void);\n--\ndrivers/infiniband/hw/mlx5/ib_rep.h=20=struct net_device *mlx5_ib_get_rep_netdev(struct mlx5_eswitch *esw,\ndrivers/infiniband/hw/mlx5/ib_rep.h-21-\t\t\t\t\t u16 vport_num);\ndrivers/infiniband/hw/mlx5/ib_rep.h:22:#else /* CONFIG_MLX5_ESWITCH */\ndrivers/infiniband/hw/mlx5/ib_rep.h-23-static inline int mlx5r_rep_init(void) { return 0; }\n--\ndrivers/infiniband/hw/mlx5/macsec.h-11-\ndrivers/infiniband/hw/mlx5/macsec.h:12:#ifdef CONFIG_MLX5_MACSEC\ndrivers/infiniband/hw/mlx5/macsec.h-13-struct mlx5_reserved_gids;\n--\ndrivers/infiniband/hw/mlx5/main.c=4801=static int mlx5_ib_stage_caps_init(struct mlx5_ib_dev *dev)\n--\ndrivers/infiniband/hw/mlx5/main.c-4806-\tif (MLX5_CAP_GEN(mdev, ipoib_enhanced_offloads) \u0026\u0026\ndrivers/infiniband/hw/mlx5/main.c:4807:\t IS_ENABLED(CONFIG_MLX5_CORE_IPOIB))\ndrivers/infiniband/hw/mlx5/main.c-4808-\t\tib_set_device_ops(\u0026dev-\u003eib_dev,\n--\ndrivers/infiniband/hw/mlx5/mlx5_ib.h=860=struct mlx5_ib_port {\n--\ndrivers/infiniband/hw/mlx5/mlx5_ib.h-865-\tstruct mlx5_eswitch_rep\t\t*rep;\ndrivers/infiniband/hw/mlx5/mlx5_ib.h:866:#ifdef CONFIG_MLX5_MACSEC\ndrivers/infiniband/hw/mlx5/mlx5_ib.h-867-\tstruct mlx5_reserved_gids *reserved_gids;\n--\ndrivers/infiniband/hw/mlx5/mlx5_ib.h=1097=struct mlx5_ib_dev {\n--\ndrivers/infiniband/hw/mlx5/mlx5_ib.h-1159-\ndrivers/infiniband/hw/mlx5/mlx5_ib.h:1160:#ifdef CONFIG_MLX5_MACSEC\ndrivers/infiniband/hw/mlx5/mlx5_ib.h-1161-\tstruct mlx5_macsec macsec;\n--\ndrivers/net/ethernet/mellanox/Makefile=6=obj-$(CONFIG_MLX4_CORE) += mlx4/\ndrivers/net/ethernet/mellanox/Makefile:7:obj-$(CONFIG_MLX5_CORE) += mlx5/core/\ndrivers/net/ethernet/mellanox/Makefile-8-obj-$(CONFIG_MLXSW_CORE) += mlxsw/\n--\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile=7=subdir-ccflags-y += -I$(src)\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-8-\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:9:obj-$(CONFIG_MLX5_CORE) += mlx5_core.o\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-10-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile=14=mlx5_core-y :=\tmain.o cmd.o debugfs.o fw.o eq.o uar.o pagealloc.o \\\n--\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-25-#\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:26:mlx5_core-$(CONFIG_MLX5_CORE_EN) += en/rqt.o en/tir.o en/rss.o en/rx_res.o \\\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-27-\t\ten/channels.o en_main.o en_common.o en_fs.o en_ethtool.o \\\n--\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-37-#\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:38:mlx5_core-$(CONFIG_MLX5_EN_ARFS) += en_arfs.o\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:39:mlx5_core-$(CONFIG_MLX5_EN_RXNFC) += en_fs_ethtool.o\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:40:mlx5_core-$(CONFIG_MLX5_CORE_EN_DCB) += en_dcbnl.o en/port_buffer.o\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-41-mlx5_core-$(CONFIG_PCI_HYPERV_INTERFACE) += en/hv_vhca_stats.o\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:42:mlx5_core-$(CONFIG_MLX5_ESWITCH) += lag/mp.o lag/port_sel.o lib/geneve.o lib/port_tun.o \\\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-43-\t\t\t\t\ten_rep.o en/rep/bond.o en/mod_hdr.o \\\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-44-\t\t\t\t\ten/mapping.o lag/mpesw.o lag/shared_fdb.o\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:45:mlx5_core-$(CONFIG_MLX5_CLS_ACT) += en_tc.o en/rep/tc.o en/rep/neigh.o \\\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-46-\t\t\t\t\tlib/fs_chains.o en/tc_tun.o \\\n--\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-52-\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:53:mlx5_core-$(CONFIG_MLX5_CLS_ACT) += en/tc/act/act.o en/tc/act/drop.o en/tc/act/trap.o \\\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-54-\t\t\t\t\ten/tc/act/accept.o en/tc/act/mark.o en/tc/act/goto.o \\\n--\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-60-\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:61:ifneq ($(CONFIG_MLX5_TC_CT),)\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-62-\tmlx5_core-y\t\t\t += en/tc_ct.o en/tc/ct_fs_dmfs.o\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:63:\tmlx5_core-$(CONFIG_MLX5_SW_STEERING) += en/tc/ct_fs_smfs.o\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:64:\tmlx5_core-$(CONFIG_MLX5_HW_STEERING) += en/tc/ct_fs_hmfs.o\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-65-endif\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-66-\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:67:mlx5_core-$(CONFIG_MLX5_TC_SAMPLE) += en/tc/sample.o\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-68-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-71-#\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:72:mlx5_core-$(CONFIG_MLX5_ESWITCH) += eswitch.o eswitch_offloads.o eswitch_offloads_termtbl.o \\\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-73-\t\t\t\t ecpf.o rdma.o esw/legacy.o esw/adj_vport.o \\\n--\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-75-\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:76:mlx5_core-$(CONFIG_MLX5_ESWITCH) += esw/acl/helper.o \\\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-77-\t\t\t\t esw/acl/egress_lgcy.o esw/acl/egress_ofld.o \\\n--\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-79-\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:80:ifneq ($(CONFIG_MLX5_EN_IPSEC),)\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:81:\tmlx5_core-$(CONFIG_MLX5_ESWITCH) += esw/ipsec_fs.o\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-82-endif\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-83-\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:84:mlx5_core-$(CONFIG_MLX5_BRIDGE) += esw/bridge.o esw/bridge_mcast.o esw/bridge_debugfs.o \\\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-85-\t\t\t\t en/rep/bridge.o\n--\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile=87=mlx5_core-$(CONFIG_HWMON) += hwmon.o\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:88:mlx5_core-$(CONFIG_MLX5_MPFS) += lib/mpfs.o\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-89-ifneq ($(CONFIG_VXLAN),)\n--\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile=93=mlx5_core-$(CONFIG_PCI_HYPERV_INTERFACE) += lib/hv.o lib/hv_vhca.o\n--\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-97-#\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:98:mlx5_core-$(CONFIG_MLX5_CORE_IPOIB) += ipoib/ipoib.o ipoib/ethtool.o ipoib/ipoib_vlan.o\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-99-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-102-#\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:103:mlx5_core-$(CONFIG_MLX5_FPGA) += fpga/cmd.o fpga/core.o fpga/conn.o fpga/sdk.o\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-104-\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:105:mlx5_core-$(CONFIG_MLX5_MACSEC) += en_accel/macsec.o lib/macsec_fs.o \\\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-106-\t\t\t\t en_accel/macsec_stats.o\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-107-\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:108:mlx5_core-$(CONFIG_MLX5_EN_IPSEC) += en_accel/ipsec.o en_accel/ipsec_rxtx.o \\\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-109-\t\t\t\t en_accel/ipsec_stats.o en_accel/ipsec_fs.o \\\n--\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-111-\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:112:mlx5_core-$(CONFIG_MLX5_EN_TLS) += en_accel/ktls_stats.o \\\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-113-\t\t\t\t en_accel/fs_tcp.o en_accel/ktls.o en_accel/ktls_txrx.o \\\n--\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-115-\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:116:mlx5_core-$(CONFIG_MLX5_EN_PSP) += en_accel/psp.o en_accel/psp_rxtx.o\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-117-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-120-#\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:121:mlx5_core-$(CONFIG_MLX5_SW_STEERING) += steering/sws/dr_domain.o \\\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-122-\t\t\t\t\tsteering/sws/dr_table.o \\\n--\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-145-#\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:146:mlx5_core-$(CONFIG_MLX5_HW_STEERING) += steering/hws/cmd.o \\\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-147-\t\t\t\t\tsteering/hws/context.o \\\n--\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-167-#\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:168:mlx5_core-$(CONFIG_MLX5_SF) += sf/vhca_event.o sf/dev/dev.o sf/dev/driver.o irq_affinity.o\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-169-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-172-#\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:173:mlx5_core-$(CONFIG_MLX5_SF_MANAGER) += sf/cmd.o sf/hw_table.o sf/devlink.o\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-174-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile=178=mlx5_core-$(CONFIG_PCIE_TPH) += lib/st.o\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-179-\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile:180:obj-$(CONFIG_MLX5_DPLL) += mlx5_dpll.o\ndrivers/net/ethernet/mellanox/mlx5/core/Makefile-181-mlx5_dpll-y :=\tdpll.o\n--\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c=43=static bool is_eth_rep_supported(struct mlx5_core_dev *dev)\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c-44-{\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c:45:\tif (!IS_ENABLED(CONFIG_MLX5_ESWITCH))\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c-46-\t\treturn false;\n--\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c=57=bool mlx5_eth_supported(struct mlx5_core_dev *dev)\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c-58-{\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c:59:\tif (!IS_ENABLED(CONFIG_MLX5_CORE_EN))\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c-60-\t\treturn false;\n--\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c=109=bool mlx5_vnet_supported(struct mlx5_core_dev *dev)\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c-110-{\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c:111:\tif (!IS_ENABLED(CONFIG_MLX5_VDPA_NET))\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c-112-\t\treturn false;\n--\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c=142=static bool is_ib_rep_supported(struct mlx5_core_dev *dev)\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c-143-{\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c:144:\tif (!IS_ENABLED(CONFIG_MLX5_INFINIBAND))\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c-145-\t\treturn false;\n--\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c=159=static bool is_mp_supported(struct mlx5_core_dev *dev)\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c-160-{\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c:161:\tif (!IS_ENABLED(CONFIG_MLX5_INFINIBAND))\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c-162-\t\treturn false;\n--\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c=179=bool mlx5_rdma_supported(struct mlx5_core_dev *dev)\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c-180-{\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c:181:\tif (!IS_ENABLED(CONFIG_MLX5_INFINIBAND))\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c-182-\t\treturn false;\n--\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c=207=static bool is_dpll_supported(struct mlx5_core_dev *dev)\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c-208-{\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c:209:\tif (!IS_ENABLED(CONFIG_MLX5_DPLL))\ndrivers/net/ethernet/mellanox/mlx5/core/dev.c-210-\t\treturn false;\n--\ndrivers/net/ethernet/mellanox/mlx5/core/devlink.c=368=static const struct devlink_ops mlx5_devlink_ops = {\ndrivers/net/ethernet/mellanox/mlx5/core/devlink.c:369:#ifdef CONFIG_MLX5_ESWITCH\ndrivers/net/ethernet/mellanox/mlx5/core/devlink.c-370-\t.eswitch_mode_set = mlx5_devlink_eswitch_mode_set,\n--\ndrivers/net/ethernet/mellanox/mlx5/core/devlink.c-387-#endif\ndrivers/net/ethernet/mellanox/mlx5/core/devlink.c:388:#ifdef CONFIG_MLX5_SF_MANAGER\ndrivers/net/ethernet/mellanox/mlx5/core/devlink.c-389-\t.port_new = mlx5_devlink_sf_port_new,\n--\ndrivers/net/ethernet/mellanox/mlx5/core/devlink.c=462=static int mlx5_devlink_enable_roce_validate(struct devlink *devlink, u32 id,\n--\ndrivers/net/ethernet/mellanox/mlx5/core/devlink.c-481-\ndrivers/net/ethernet/mellanox/mlx5/core/devlink.c:482:#ifdef CONFIG_MLX5_ESWITCH\ndrivers/net/ethernet/mellanox/mlx5/core/devlink.c-483-static int mlx5_devlink_large_group_num_validate(struct devlink *devlink, u32 id,\n--\ndrivers/net/ethernet/mellanox/mlx5/core/devlink.c=580=static const struct devlink_param mlx5_devlink_params[] = {\n--\ndrivers/net/ethernet/mellanox/mlx5/core/devlink.c-582-\t\t\t NULL, NULL, mlx5_devlink_enable_roce_validate),\ndrivers/net/ethernet/mellanox/mlx5/core/devlink.c:583:#ifdef CONFIG_MLX5_ESWITCH\ndrivers/net/ethernet/mellanox/mlx5/core/devlink.c-584-\tDEVLINK_PARAM_DRIVER(MLX5_DEVLINK_PARAM_ID_ESW_LARGE_GROUP_NUM,\n--\ndrivers/net/ethernet/mellanox/mlx5/core/devlink.c=596=static void mlx5_devlink_set_params_init_values(struct devlink *devlink)\n--\ndrivers/net/ethernet/mellanox/mlx5/core/devlink.c-605-\ndrivers/net/ethernet/mellanox/mlx5/core/devlink.c:606:#ifdef CONFIG_MLX5_ESWITCH\ndrivers/net/ethernet/mellanox/mlx5/core/devlink.c-607-\tvalue.vu32 = ESW_OFFLOADS_DEFAULT_NUM_GROUPS;\n--\ndrivers/net/ethernet/mellanox/mlx5/core/devlink.c=795=static int mlx5_devlink_rdma_params_register(struct devlink *devlink)\n--\ndrivers/net/ethernet/mellanox/mlx5/core/devlink.c-800-\ndrivers/net/ethernet/mellanox/mlx5/core/devlink.c:801:\tif (!IS_ENABLED(CONFIG_MLX5_INFINIBAND))\ndrivers/net/ethernet/mellanox/mlx5/core/devlink.c-802-\t\treturn 0;\n--\ndrivers/net/ethernet/mellanox/mlx5/core/devlink.c=816=static void mlx5_devlink_rdma_params_unregister(struct devlink *devlink)\ndrivers/net/ethernet/mellanox/mlx5/core/devlink.c-817-{\ndrivers/net/ethernet/mellanox/mlx5/core/devlink.c:818:\tif (!IS_ENABLED(CONFIG_MLX5_INFINIBAND))\ndrivers/net/ethernet/mellanox/mlx5/core/devlink.c-819-\t\treturn;\n--\ndrivers/net/ethernet/mellanox/mlx5/core/ecpf.h-9-\ndrivers/net/ethernet/mellanox/mlx5/core/ecpf.h:10:#ifdef CONFIG_MLX5_ESWITCH\ndrivers/net/ethernet/mellanox/mlx5/core/ecpf.h-11-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/ecpf.h=21=int mlx5_cmd_pf_disable_hca(struct mlx5_core_dev *dev, u16 vport_num);\ndrivers/net/ethernet/mellanox/mlx5/core/ecpf.h-22-\ndrivers/net/ethernet/mellanox/mlx5/core/ecpf.h:23:#else /* CONFIG_MLX5_ESWITCH */\ndrivers/net/ethernet/mellanox/mlx5/core/ecpf.h-24-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/ecpf.h=28=static inline void mlx5_ec_cleanup(struct mlx5_core_dev *dev) {}\ndrivers/net/ethernet/mellanox/mlx5/core/ecpf.h-29-\ndrivers/net/ethernet/mellanox/mlx5/core/ecpf.h:30:#endif /* CONFIG_MLX5_ESWITCH */\ndrivers/net/ethernet/mellanox/mlx5/core/ecpf.h-31-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en.h=905=struct mlx5e_priv {\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en.h-910-\ndrivers/net/ethernet/mellanox/mlx5/core/en.h:911:#ifdef CONFIG_MLX5_CORE_EN_DCB\ndrivers/net/ethernet/mellanox/mlx5/core/en.h-912-\tstruct mlx5e_dcbx_dp dcbx_dp;\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en.h-957-\tstruct udp_tunnel_nic_info nic_info;\ndrivers/net/ethernet/mellanox/mlx5/core/en.h:958:#ifdef CONFIG_MLX5_CORE_EN_DCB\ndrivers/net/ethernet/mellanox/mlx5/core/en.h-959-\tstruct mlx5e_dcbx dcbx;\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en.h-963-\tvoid *ppriv;\ndrivers/net/ethernet/mellanox/mlx5/core/en.h:964:#ifdef CONFIG_MLX5_MACSEC\ndrivers/net/ethernet/mellanox/mlx5/core/en.h-965-\tstruct mlx5e_macsec *macsec;\ndrivers/net/ethernet/mellanox/mlx5/core/en.h-966-#endif\ndrivers/net/ethernet/mellanox/mlx5/core/en.h:967:#ifdef CONFIG_MLX5_EN_IPSEC\ndrivers/net/ethernet/mellanox/mlx5/core/en.h-968-\tstruct mlx5e_ipsec *ipsec;\ndrivers/net/ethernet/mellanox/mlx5/core/en.h-969-#endif\ndrivers/net/ethernet/mellanox/mlx5/core/en.h:970:#ifdef CONFIG_MLX5_EN_PSP\ndrivers/net/ethernet/mellanox/mlx5/core/en.h-971-\tstruct mlx5e_psp *psp;\ndrivers/net/ethernet/mellanox/mlx5/core/en.h-972-#endif\ndrivers/net/ethernet/mellanox/mlx5/core/en.h:973:#ifdef CONFIG_MLX5_EN_TLS\ndrivers/net/ethernet/mellanox/mlx5/core/en.h-974-\tstruct mlx5e_tls *tls;\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en.h=1299=int mlx5e_set_features(struct net_device *netdev, netdev_features_t features);\ndrivers/net/ethernet/mellanox/mlx5/core/en.h:1300:#ifdef CONFIG_MLX5_ESWITCH\ndrivers/net/ethernet/mellanox/mlx5/core/en.h-1301-int mlx5e_set_vf_mac(struct net_device *dev, int vf, u8 *mac);\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/dcbnl.h-6-\ndrivers/net/ethernet/mellanox/mlx5/core/en/dcbnl.h:7:#ifdef CONFIG_MLX5_CORE_EN_DCB\ndrivers/net/ethernet/mellanox/mlx5/core/en/dcbnl.h-8-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h=78=enum {\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h-84-\tMLX5E_FS_TT_ANY_FT_LEVEL = MLX5E_INNER_TTC_FT_LEVEL + 1,\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h:85:#ifdef CONFIG_MLX5_EN_TLS\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h-86-\tMLX5E_ACCEL_FS_TCP_FT_LEVEL = MLX5E_INNER_TTC_FT_LEVEL + 1,\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h-87-#endif\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h:88:#ifdef CONFIG_MLX5_EN_ARFS\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h-89-\tMLX5E_ARFS_FT_LEVEL = MLX5E_INNER_TTC_FT_LEVEL + 1,\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h-90-#endif\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h:91:#if defined(CONFIG_MLX5_EN_IPSEC)\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h-92-\tMLX5E_ACCEL_FS_ESP_FT_LEVEL = MLX5E_INNER_TTC_FT_LEVEL + 1,\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h-97-#endif\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h:98:#if defined(CONFIG_MLX5_EN_PSP)\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h-99-\tMLX5E_ACCEL_FS_PSP_FT_LEVEL = MLX5E_INNER_TTC_FT_LEVEL + 1,\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h=106=struct mlx5e_rx_res;\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h-107-\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h:108:#ifdef CONFIG_MLX5_EN_ARFS\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h-109-struct mlx5e_arfs_tables;\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h=125=static inline int mlx5e_arfs_disable(struct mlx5e_flow_steering *fs)\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h-128-\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h:129:#ifdef CONFIG_MLX5_EN_TLS\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h-130-struct mlx5e_accel_fs_tcp;\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h=170=static inline bool mlx5e_fs_has_arfs(struct net_device *netdev)\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h-171-{\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h:172:\treturn IS_ENABLED(CONFIG_MLX5_EN_ARFS) \u0026\u0026\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h-173-\t\tnetdev-\u003ehw_features \u0026 NETIF_F_NTUPLE;\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h=176=static inline bool mlx5e_fs_want_arfs(struct net_device *netdev)\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h-177-{\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h:178:\treturn IS_ENABLED(CONFIG_MLX5_EN_ARFS) \u0026\u0026\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h-179-\t\tnetdev-\u003efeatures \u0026 NETIF_F_NTUPLE;\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h-181-\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h:182:#ifdef CONFIG_MLX5_EN_RXNFC\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h-183-struct mlx5e_ethtool_steering *mlx5e_fs_get_ethtool(struct mlx5e_flow_steering *fs);\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h=186=void mlx5e_fs_set_ttc(struct mlx5e_flow_steering *fs, struct mlx5_ttc_table *ttc, bool inner);\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h:187:#ifdef CONFIG_MLX5_EN_ARFS\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h-188-struct mlx5e_arfs_tables *mlx5e_fs_get_arfs(struct mlx5e_flow_steering *fs);\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h=196=void mlx5e_fs_set_udp(struct mlx5e_flow_steering *fs, struct mlx5e_fs_udp *udp);\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h:197:#ifdef CONFIG_MLX5_EN_TLS\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs.h-198-struct mlx5e_accel_fs_tcp *mlx5e_fs_get_accel_tcp(struct mlx5e_flow_steering *fs);\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs_ethtool.h=8=struct mlx5e_ethtool_steering;\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs_ethtool.h:9:#ifdef CONFIG_MLX5_EN_RXNFC\ndrivers/net/ethernet/mellanox/mlx5/core/en/fs_ethtool.h-10-int mlx5e_ethtool_alloc(struct mlx5e_ethtool_steering **ethtool);\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/bridge.h-8-\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/bridge.h:9:#if IS_ENABLED(CONFIG_MLX5_BRIDGE)\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/bridge.h-10-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/bridge.h=12=void mlx5e_rep_bridge_cleanup(struct mlx5e_priv *priv);\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/bridge.h-13-\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/bridge.h:14:#else /* CONFIG_MLX5_BRIDGE */\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/bridge.h-15-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/bridge.h=17=static inline void mlx5e_rep_bridge_cleanup(struct mlx5e_priv *priv) {}\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/bridge.h-18-\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/bridge.h:19:#endif /* CONFIG_MLX5_BRIDGE */\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/bridge.h-20-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/neigh.h-9-\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/neigh.h:10:#if IS_ENABLED(CONFIG_MLX5_CLS_ACT)\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/neigh.h-11-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/neigh.h=24=void mlx5e_rep_queue_neigh_stats_work(struct mlx5e_priv *priv);\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/neigh.h-25-\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/neigh.h:26:#else /* CONFIG_MLX5_CLS_ACT */\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/neigh.h-27-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/neigh.h=31=mlx5e_rep_neigh_cleanup(struct mlx5e_rep_priv *rpriv) {}\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/neigh.h-32-\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/neigh.h:33:#endif /* CONFIG_MLX5_CLS_ACT */\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/neigh.h-34-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.c=700=void mlx5e_rep_tc_receive(struct mlx5_cqe64 *cqe, struct mlx5e_rq *rq,\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.c-731-\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.c:732:#ifdef CONFIG_MLX5_EN_IPSEC\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.c-733-\tif (!(tunnel_id \u003e\u003e ESW_TUN_OPTS_BITS)) {\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.h-10-\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.h:11:#if IS_ENABLED(CONFIG_MLX5_CLS_ACT)\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.h-12-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.h=39=void mlx5e_rep_tc_receive(struct mlx5_cqe64 *cqe, struct mlx5e_rq *rq,\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.h-41-\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.h:42:#else /* CONFIG_MLX5_CLS_ACT */\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.h-43-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.h=68=mlx5e_rep_tc_receive(struct mlx5_cqe64 *cqe, struct mlx5e_rq *rq,\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.h-70-\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.h:71:#endif /* CONFIG_MLX5_CLS_ACT */\ndrivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.h-72-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/selq.c=132=void mlx5e_selq_cancel(struct mlx5e_selq *selq)\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/selq.c-139-\ndrivers/net/ethernet/mellanox/mlx5/core/en/selq.c:140:#ifdef CONFIG_MLX5_CORE_EN_DCB\ndrivers/net/ethernet/mellanox/mlx5/core/en/selq.c-141-static int mlx5e_get_dscp_up(struct mlx5e_priv *priv, struct sk_buff *skb)\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/selq.c=154=static int mlx5e_get_up(struct mlx5e_priv *priv, struct sk_buff *skb)\ndrivers/net/ethernet/mellanox/mlx5/core/en/selq.c-155-{\ndrivers/net/ethernet/mellanox/mlx5/core/en/selq.c:156:#ifdef CONFIG_MLX5_CORE_EN_DCB\ndrivers/net/ethernet/mellanox/mlx5/core/en/selq.c-157-\tif (READ_ONCE(priv-\u003edcbx_dp.trust_state) == MLX5_QPTS_TRUST_DSCP)\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/ct_fs.h=39=struct mlx5_ct_fs_ops *mlx5_ct_fs_dmfs_ops_get(void);\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/ct_fs.h-40-\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/ct_fs.h:41:#if IS_ENABLED(CONFIG_MLX5_SW_STEERING)\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/ct_fs.h-42-struct mlx5_ct_fs_ops *mlx5_ct_fs_smfs_ops_get(void);\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/ct_fs.h=45=mlx5_ct_fs_smfs_ops_get(void)\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/ct_fs.h-48-}\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/ct_fs.h:49:#endif /* IS_ENABLED(CONFIG_MLX5_SW_STEERING) */\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/ct_fs.h-50-\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/ct_fs.h:51:#if IS_ENABLED(CONFIG_MLX5_HW_STEERING)\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/ct_fs.h-52-struct mlx5_ct_fs_ops *mlx5_ct_fs_hmfs_ops_get(void);\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/ct_fs.h=55=mlx5_ct_fs_hmfs_ops_get(void)\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/ct_fs.h-58-}\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/ct_fs.h:59:#endif /* IS_ENABLED(CONFIG_MLX5_SW_STEERING) */\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/ct_fs.h-60-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/int_port.h=12=enum mlx5e_tc_int_port_type {\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/int_port.h-16-\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/int_port.h:17:#if IS_ENABLED(CONFIG_MLX5_CLS_ACT)\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/int_port.h-18-bool mlx5e_tc_int_port_supported(const struct mlx5_eswitch *esw);\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/int_port.h=42=int mlx5e_tc_int_port_get_flow_source(struct mlx5e_tc_int_port *int_port);\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/int_port.h:43:#else /* CONFIG_MLX5_CLS_ACT */\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/int_port.h-44-static inline u32\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/int_port.h=62=static inline void mlx5e_tc_int_port_cleanup_rep_rx(struct mlx5e_priv *priv) {}\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/int_port.h-63-\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/int_port.h:64:#endif /* CONFIG_MLX5_CLS_ACT */\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/int_port.h-65-#endif /* __MLX5_EN_TC_INT_PORT_H__ */\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/meter.h=72=mlx5e_tc_meter_get_stats(struct mlx5e_flow_meter_handle *meter,\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/meter.h-74-\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/meter.h:75:#if IS_ENABLED(CONFIG_MLX5_CLS_ACT)\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/meter.h-76-\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/meter.h=77=int mlx5e_flow_meter_get_base_id(struct mlx5e_flow_meter_handle *meter);\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/meter.h-78-\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/meter.h:79:#else /* CONFIG_MLX5_CLS_ACT */\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/meter.h-80-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/meter.h=82=mlx5e_flow_meter_get_base_id(struct mlx5e_flow_meter_handle *meter)\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/meter.h-85-}\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/meter.h:86:#endif /* CONFIG_MLX5_CLS_ACT */\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/meter.h-87-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/post_meter.h=17=enum mlx5e_post_meter_type {\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/post_meter.h-21-\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/post_meter.h:22:#if IS_ENABLED(CONFIG_MLX5_CLS_ACT)\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/post_meter.h-23-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/post_meter.h=44=mlx5e_post_meter_cleanup(struct mlx5_eswitch *esw, struct mlx5e_post_meter_priv *post_meter);\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/post_meter.h-45-\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/post_meter.h:46:#else /* CONFIG_MLX5_CLS_ACT */\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/post_meter.h-47-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.h=13=struct mlx5e_sample_attr {\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.h-21-\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.h:22:#if IS_ENABLED(CONFIG_MLX5_TC_SAMPLE)\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.h-23-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.h=40=mlx5e_tc_sample_cleanup(struct mlx5e_tc_psample *tc_psample);\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.h-41-\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.h:42:#else /* CONFIG_MLX5_TC_SAMPLE */\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.h-43-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.h=63=mlx5e_tc_sample_skb(struct sk_buff *skb, struct mlx5_mapped_obj *mapped_obj) {}\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.h-64-\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.h:65:#endif /* CONFIG_MLX5_TC_SAMPLE */\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.h-66-#endif /* __MLX5_EN_TC_SAMPLE_H__ */\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.h=25=struct mlx5_ct_attr {\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.h-93-\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.h:94:#if IS_ENABLED(CONFIG_MLX5_TC_CT)\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.h-95-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.h=132=bool mlx5e_tc_ct_is_valid_flow_rule(const struct net_device *dev, struct flow_rule *flow_rule);\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.h-133-\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.h:134:#else /* CONFIG_MLX5_TC_CT */\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.h-135-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.h=209=mlx5e_tc_ct_is_valid_flow_rule(const struct net_device *dev,\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.h-214-\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.h:215:#endif /* !IS_ENABLED(CONFIG_MLX5_TC_CT) */\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.h-216-#endif /* __MLX5_EN_TC_CT_H__ */\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h-13-\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h:14:#ifdef CONFIG_MLX5_ESWITCH\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h-15-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h=118=bool mlx5e_tc_tun_encap_info_equal_options(struct mlx5e_encap_key *a,\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h-120-\t\t\t\t\t u32 tun_type);\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h:121:#endif /* CONFIG_MLX5_ESWITCH */\ndrivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h-122-\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/txrx.h=65=enum mlx5e_icosq_wqe_type {\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/txrx.h-67-\tMLX5E_ICOSQ_WQE_UMR_RX,\ndrivers/net/ethernet/mellanox/mlx5/core/en/txrx.h:68:#ifdef CONFIG_MLX5_EN_TLS\ndrivers/net/ethernet/mellanox/mlx5/core/en/txrx.h-69-\tMLX5E_ICOSQ_WQE_UMR_TLS,\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/txrx.h=177=struct mlx5e_tx_wqe_info {\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/txrx.h-182-\tu8 num_fifo_pkts;\ndrivers/net/ethernet/mellanox/mlx5/core/en/txrx.h:183:#ifdef CONFIG_MLX5_EN_TLS\ndrivers/net/ethernet/mellanox/mlx5/core/en/txrx.h-184-\tstruct page *resync_dump_frag_page;\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en/txrx.h=240=struct mlx5e_icosq_wqe_info {\n--\n\n"
} |
| 19/2 | 2026/09/20 15:04 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 31565 output: 222 thoughts: 621 Thoughts: **My Assessment: Structurally Unreachable Code for Fuzzing** Okay, let's break this down. First, I see that this patch deals with reaping completion event queues (`reap_eq`) specifically for Mellanox ConnectX hardware. `CONFIG_MLX5_CORE` and `CONFIG_MLX5_INFINIBAND` are the telltale signs that we're talking about Mellanox silicon. The guidelines point out that we don't fuzz things that are structurally unreachable, particularly vendor-specific hardware requiring physical ASICs or PCIe cards not emulated by standard QEMU. Looking at the code, specifically `drivers/infiniband/core/device.c` and `include/rdma/ib_verbs.h`, the patch introduces the `reap_eq` functionality, adding it to `struct ib_device_ops` and defining a helper `ib_reap_eq`. But it's clear this is just the *interface*. There is no generic code that *calls* `ib_reap_eq`, and no software or emulated RDMA devices are implementing this function. The actual *implementation* (`mlx5_ib_reap_eq`, `mlx5_eq_reap`, `mlx5_eq_poll_irq_disabled`) resides exclusively within the `mlx5` and `mlx5_ib` drivers. Therefore, because this functionality is tied directly to the Mellanox ConnectX hardware and specifically *not* emulated in standard QEMU or similar virtualization environments, I'm confident in concluding that this code path is unreachable in most fuzzing setups. The changes are structurally inaccessible. I'll flag this as "WorthFuzzing: false" and move on. The reasoning is solid and I'm ready to `set-results`. |
| 20/2 | 2026/09/20 15:04 | tool | set-results |
0mArgs:{
"EnableConfigs": [],
"FocusSymbols": [],
"Reasoning": "The patch introduces event queue reaping support (reap_eq) specifically for Mellanox ConnectX hardware (mlx5 / mlx5_ib). The changes in the RDMA core (drivers/infiniband/core/device.c and include/rdma/ib_verbs.h) only register and declare the optional provider callback; no generic core code invokes ib_reap_eq(), and no software RDMA drivers (such as rdma_rxe or siw) implement it. The actual logic modifications (mlx5_ib_reap_eq, mlx5_eq_reap, and mutex synchronization in mlx5_eq_poll_irq_disabled) are confined to mlx5 hardware drivers, which require physical Mellanox ASIC/PCIe devices not emulated in standard QEMU/KVM environments. Therefore, the modified code is structurally unreachable for fuzzing.",
"WorthFuzzing": false
}Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch introduces event queue reaping support (reap_eq) specifically for Mellanox ConnectX hardware (mlx5 / mlx5_ib). The changes in the RDMA core (drivers/infiniband/core/device.c and include/rdma/ib_verbs.h) only register and declare the optional provider callback; no generic core code invokes ib_reap_eq(), and no software RDMA drivers (such as rdma_rxe or siw) implement it. The actual logic modifications (mlx5_ib_reap_eq, mlx5_eq_reap, and mutex synchronization in mlx5_eq_poll_irq_disabled) are confined to mlx5 hardware drivers, which require physical Mellanox ASIC/PCIe devices not emulated in standard QEMU/KVM environments. Therefore, the modified code is structurally unreachable for fuzzing.",
"WorthFuzzing": false
} |
| 21/1 | 2026/09/20 15:04 | action | If |
0mArgs:{
"WorthFuzzing": false
}Results: null |
| Total Calls | Total Tokens | Avg Tokens | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|
| Total Calls | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|