| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/09/03 18:47 | flow | patch-triage |
0mArgs:null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"KMSANReasoning": "",
"NeedsKMSAN": false,
"Reasoning": "The patch modifies code in drivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.c, which is part of the Mellanox mlx5 network driver. This driver requires physical Mellanox ConnectX PCIe hardware not emulated in standard virtualized fuzzing environments (e.g. QEMU), making it structurally unreachable.",
"WorthFuzzing": false
} |
| 1/1 | 2026/09/03 18:47 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit f2eef3687e41e023226e387b4dc56743b206cbe5\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Thu Sep 3 18:47:43 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.c b/drivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.c\nindex 89490f687a9c6..93c62d3f3e5bd 100644\n--- a/drivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.c\n+++ b/drivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.c\n@@ -311,12 +311,15 @@ sample_restore_get(struct mlx5e_tc_psample *tc_psample, u32 obj_id,\n static void\n sample_restore_put(struct mlx5e_tc_psample *tc_psample, struct mlx5e_sample_restore *restore)\n {\n+\tbool last;\n+\n \tmutex_lock(\u0026tc_psample-\u003erestore_lock);\n-\tif (--restore-\u003ecount == 0)\n+\tlast = --restore-\u003ecount == 0;\n+\tif (last)\n \t\thash_del(\u0026restore-\u003ehlist);\n \tmutex_unlock(\u0026tc_psample-\u003erestore_lock);\n \n-\tif (!restore-\u003ecount) {\n+\tif (last) {\n \t\tmlx5_del_flow_rules(restore-\u003erule);\n \t\tmlx5_modify_header_dealloc(tc_psample-\u003eesw-\u003edev, restore-\u003emodify_hdr);\n \t\tkfree(restore);\n"
} |
| 2/1 | 2026/09/03 18:47 | agent | patch-evaluator |
0mModel:core Args: null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch modifies code in drivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.c, which is part of the Mellanox mlx5 network driver. This driver requires physical Mellanox ConnectX PCIe hardware not emulated in standard virtualized fuzzing environments (e.g. QEMU), making it structurally unreachable.",
"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 f2eef3687e41e023226e387b4dc56743b206cbe5
Author: syz-cluster <triage@syzkaller.com>
Date: Thu Sep 3 18:47:43 2026 +0000
syz-cluster: applied patch under review
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.c b/drivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.c
index 89490f687a9c6..93c62d3f3e5bd 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.c
@@ -311,12 +311,15 @@ sample_restore_get(struct mlx5e_tc_psample *tc_psample, u32 obj_id,
static void
sample_restore_put(struct mlx5e_tc_psample *tc_psample, struct mlx5e_sample_restore *restore)
{
+ bool last;
+
mutex_lock(&tc_psample->restore_lock);
- if (--restore->count == 0)
+ last = --restore->count == 0;
+ if (last)
hash_del(&restore->hlist);
mutex_unlock(&tc_psample->restore_lock);
- if (!restore->count) {
+ if (last) {
mlx5_del_flow_rules(restore->rule);
mlx5_modify_header_dealloc(tc_psample->esw->dev, restore->modify_hdr);
kfree(restore);
|
| 3/2 | 2026/09/03 18:47 | llm | patch-evaluator |
0mModel:gemini-3.7-flash Args: null Results: null Tokens: input: 3048 output: 38 thoughts: 686 Thoughts: **Analyzing the Mellanox mlx5 Driver Patch for Fuzzing Suitability** Okay, let's break this down. The patch looks straightforward enough – it's a small change in the Mellanox mlx5 driver, specifically within the traffic control (tc) sampling section (`drivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.c`). I'm looking at the `sample_restore_put` function, and it seems like they've just refined the logic around releasing resources associated with a `restore` structure, specifically when the `restore->count` hits zero. They've added a `last` variable for clarity and merged the conditional logic a bit, which is good. My immediate concern, though, is whether this driver is even *fuzzable* in our current setup. We're running through the checklist. First, the location confirms it's the Mellanox mlx5 driver, and that triggers a red flag. We know from the rules that drivers for hardware that isn't emulated in standard QEMU or syzkaller environments are a problem. This is a Mellanox NIC driver (ConnectX-4, ConnectX-5, ConnectX-6, etc.), and those require physical hardware (ASIC/PCIe card). The rules explicitly list Mellanox among the "Structurally unreachable hardware" – so, *likely* a no-go. However, I'm not going to jump to conclusions *just* yet. It's crucial to be thorough. I need to quickly verify: does the mlx5 driver have any sort of mock or virtual netdev support? We've seen some NIC drivers provide that – a way to test without the actual hardware present. I need to use grepper or read-file to check to see if there's any evidence of such a thing. If it's *strictly* physical hardware, then the WorthFuzzing flag is set to false, and we can move on. But, if there is a virtual interface, that changes the calculation. |
| 4/2 | 2026/09/03 18:47 | tool | grepper |
0mArgs:{
"Expression": "CONFIG_MLX5",
"PathPrefix": "drivers/net/ethernet/mellanox/mlx5"
}Results: {
"Output": "\nFull output is too long, showing 500 out of 1293 lines.\nUse more precise expression if possible.\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--\ndrivers/net/ethernet/mellanox/mlx5/core/en/txrx.h-249-\t\tstruct mlx5e_shampo_umr shampo;\ndrivers/net/ethernet/mellanox/mlx5/core/en/txrx.h:250:#ifdef CONFIG_MLX5_EN_TLS\ndrivers/net/ethernet/mellanox/mlx5/core/en/txrx.h-251-\t\tstruct {\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h=103=struct mlx5e_accel_tx_state {\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h:104:#ifdef CONFIG_MLX5_EN_TLS\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h-105-\tstruct mlx5e_accel_tx_tls_state tls;\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h-106-#endif\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h:107:#ifdef CONFIG_MLX5_EN_IPSEC\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h-108-\tstruct mlx5e_accel_tx_ipsec_state ipsec;\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h-109-#endif\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h:110:#ifdef CONFIG_MLX5_EN_PSP\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h-111-\tstruct mlx5e_accel_tx_psp_state psp_st;\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h=115=static inline bool mlx5e_accel_tx_begin(struct net_device *dev,\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h-119-{\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h:120:#ifdef CONFIG_MLX5_EN_TLS\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h-121-\t/* May send WQEs. */\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h-127-\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h:128:#ifdef CONFIG_MLX5_EN_PSP\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h-129-\tif (mlx5e_psp_is_offload(skb, dev)) {\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h-134-\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h:135:#ifdef CONFIG_MLX5_EN_IPSEC\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h-136-\tif (test_bit(MLX5E_SQ_STATE_IPSEC, \u0026sq-\u003estate) \u0026\u0026 xfrm_offload(skb)) {\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h-141-\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h:142:#ifdef CONFIG_MLX5_MACSEC\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h-143-\tif (unlikely(mlx5e_macsec_skb_is_offload(skb))) {\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h=154=static inline unsigned int mlx5e_accel_tx_ids_len(struct mlx5e_txqsq *sq,\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h-157-{\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h:158:#ifdef CONFIG_MLX5_EN_PSP\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h-159-\tif (mlx5e_psp_is_offload_state(\u0026state-\u003epsp_st))\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h-162-\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h:163:#ifdef CONFIG_MLX5_EN_IPSEC\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h-164-\tif (test_bit(MLX5E_SQ_STATE_IPSEC, \u0026sq-\u003estate))\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h=174=static inline void mlx5e_accel_tx_eseg(struct mlx5e_priv *priv,\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h-178-{\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h:179:#ifdef CONFIG_MLX5_EN_PSP\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h-180-\tif (mlx5e_psp_is_offload_state(\u0026accel-\u003epsp_st))\n--\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h-183-\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h:184:#ifdef CONFIG_MLX5_EN_IPSEC\ndrivers/net/ethernet/mellanox/mlx5/core/en_accel/en_accel.h-185-\tif (xfrm_offload(skb))\n\n"
} |
| 5/2 | 2026/09/03 18:47 | llm | patch-evaluator |
0mModel:gemini-3.7-flash Args: null Results: null Tokens: input: 19661 output: 51 thoughts: 50 Thoughts: Here's my summary, as if I were thinking these things: **Analyzing Mellanox mlx5 Sampling Implementation** Okay, time to dig into this `sample.c` file and understand how it's being leveraged in the `mlx5` context. Specifically, I'm thinking about how the sampling is working for the mlx5 hardware. I need to figure out exactly how it's being used. Let's start by looking at its use within the kernel. I'll need to go to `drivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.c` and dive deep. I need to understand what functions are being called, what data structures are in play, and how this sampling functionality integrates with the broader traffic control framework. This should be interesting – let's see what we can find. |
| 6/2 | 2026/09/03 18:48 | tool | read-file |
0mArgs:{
"File": "drivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.c",
"FirstLine": 300,
"LineCount": 40
}Results: {
"Contents": " 300:\t\treturn restore;\n 301:\t\n 302:\terr_restore:\n 303:\t\tmlx5_modify_header_dealloc(mdev, restore-\u003emodify_hdr);\n 304:\terr_modify_hdr:\n 305:\t\tkfree(restore);\n 306:\terr_alloc:\n 307:\t\tmutex_unlock(\u0026tc_psample-\u003erestore_lock);\n 308:\t\treturn ERR_PTR(err);\n 309:\t}\n 310:\t\n 311:\tstatic void\n 312:\tsample_restore_put(struct mlx5e_tc_psample *tc_psample, struct mlx5e_sample_restore *restore)\n 313:\t{\n 314:\t\tbool last;\n 315:\t\n 316:\t\tmutex_lock(\u0026tc_psample-\u003erestore_lock);\n 317:\t\tlast = --restore-\u003ecount == 0;\n 318:\t\tif (last)\n 319:\t\t\thash_del(\u0026restore-\u003ehlist);\n 320:\t\tmutex_unlock(\u0026tc_psample-\u003erestore_lock);\n 321:\t\n 322:\t\tif (last) {\n 323:\t\t\tmlx5_del_flow_rules(restore-\u003erule);\n 324:\t\t\tmlx5_modify_header_dealloc(tc_psample-\u003eesw-\u003edev, restore-\u003emodify_hdr);\n 325:\t\t\tkfree(restore);\n 326:\t\t}\n 327:\t}\n 328:\t\n 329:\tvoid mlx5e_tc_sample_skb(struct sk_buff *skb, struct mlx5_mapped_obj *mapped_obj)\n 330:\t{\n 331:\t\tu32 trunc_size = mapped_obj-\u003esample.trunc_size;\n 332:\t\tstruct psample_group psample_group = {};\n 333:\t\tstruct psample_metadata md = {};\n 334:\t\n 335:\t\tmd.trunc_size = trunc_size ? min(trunc_size, skb-\u003elen) : skb-\u003elen;\n 336:\t\tmd.in_ifindex = skb-\u003edev-\u003eifindex;\n 337:\t\tpsample_group.group_num = mapped_obj-\u003esample.group_id;\n 338:\t\tpsample_group.net = \u0026init_net;\n 339:\t\tskb_push(skb, skb-\u003emac_len);\n"
} |
| 7/2 | 2026/09/03 18:48 | llm | patch-evaluator |
0mModel:gemini-3.7-flash Args: null Results: null Tokens: input: 20598 output: 46 thoughts: 58 Thoughts: Here's my take on the thought process, as if it were my own: **Diving into the mlx5 Ethernet Driver** Okay, so I've been looking at `drivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.c`, and while I've got a grasp of the sample code's role in TC (traffic control) within this Mellanox driver, I need to zoom out. I really need to understand the larger context of how these mlx5 devices are actually brought to life and probed within the system. My first thought is to broaden my view and examine the relevant parts of that specific file. Then, I need to see where these devices come into play and the PCI driver, and how it is registered and managed. It's time to dig into the bigger picture and piece together how the device lifecycle unfolds, from PCI detection through to driver initialization within the mlx5 framework. Gotta find that PCI driver registration point to build a proper mental model. |
| 8/2 | 2026/09/03 18:48 | tool | grepper |
0mArgs:{
"Expression": "module_pci_driver|pci_register_driver",
"PathPrefix": "drivers/net/ethernet/mellanox/mlx5"
}Results: {
"Output": "drivers/net/ethernet/mellanox/mlx5/core/main.c=2346=static int __init mlx5_init(void)\n--\ndrivers/net/ethernet/mellanox/mlx5/core/main.c-2365-\ndrivers/net/ethernet/mellanox/mlx5/core/main.c:2366:\terr = pci_register_driver(\u0026mlx5_core_driver);\ndrivers/net/ethernet/mellanox/mlx5/core/main.c-2367-\tif (err)\n"
} |
| 9/2 | 2026/09/03 18:48 | llm | patch-evaluator |
0mModel:gemini-3.7-flash Args: null Results: null Tokens: input: 21069 output: 109 thoughts: 393 Thoughts: **My Assessment of the mlx5 Driver for Fuzzing** Okay, let's go through this carefully. I'm focusing on the negative criteria, specifically section 2. We're looking for code related to hardware that isn't emulated in standard QEMU. Aha, here it is: `mlx5`. That's the Mellanox ConnectX driver – the `mlx5_core` driver, which handles the ConnectX-4, -5, and -6 series NICs. It's a classic vendor-specific SmartNIC driver, requiring the actual Mellanox hardware. I know this from experience, of course. The concern is, as I suspected, the need for physical ASIC/PCIe cards. Standard QEMU, the typical environment for fuzzing with something like syzkaller, doesn't emulate these NICs. Now, let's double-check my assumption. Digging into the kernel code, `mlx5` hooks into the PCI subsystem using `pci_register_driver`... exactly. No virtual or emulated devices are present in QEMU's standard setup. This confirms it. Therefore, the modified code in `drivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.c` absolutely belongs to this vendor-specific driver. And that's a key point: it *needs* real Mellanox hardware to function. It's not a candidate for effective fuzzing in these standard virtualized environments. Now, let's format the `set-results` output correctly. * `WorthFuzzing`: False. * `Reasoning`: We need to concisely articulate why it's not worth the effort. It's the vendor-specific nature of the Mellanox `mlx5` driver, requiring physical PCIe NIC hardware not emulated in standard QEMU/virtualized environments. That's a clear explanation. * `EnableConfigs`: Empty list, or null. * `FocusSymbols`: Empty list, or null. Okay, that's clear. Now to call `set-results`. |
| 10/2 | 2026/09/03 18:48 | tool | set-results |
0mArgs:{
"EnableConfigs": [],
"FocusSymbols": [],
"Reasoning": "The patch modifies code in drivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.c, which is part of the Mellanox mlx5 network driver. This driver requires physical Mellanox ConnectX PCIe hardware not emulated in standard virtualized fuzzing environments (e.g. QEMU), making it structurally unreachable.",
"WorthFuzzing": false
}Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch modifies code in drivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.c, which is part of the Mellanox mlx5 network driver. This driver requires physical Mellanox ConnectX PCIe hardware not emulated in standard virtualized fuzzing environments (e.g. QEMU), making it structurally unreachable.",
"WorthFuzzing": false
} |
| 11/1 | 2026/09/03 18:48 | 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) |
|---|