| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/08/24 16:09 | flow | patch-triage |
48mArgs:null Results: {
"EnableConfigs": [
"NET_DSA",
"NET_DSA_MXL862"
],
"FocusSymbols": [
"mxl862xx_probe",
"mxl862xx_port_fdb_add",
"mxl862xx_port_fdb_del"
],
"KMSANReasoning": "The patch simply sets a boolean configuration flag (`assisted_learning_on_cpu_port = true`) in the `dsa_switch` structure during the device probe. This change does not introduce any new allocations, modify data copied to user space, or alter control flow in a way that could expose uninitialized memory. There is no risk of uninitialized memory reads or info-leaks, so a dedicated KMSAN fuzzing session is not necessary.",
"NeedsKMSAN": false,
"Reasoning": "The patch enables `assisted_learning_on_cpu_port` for the MaxLinear MxL862xx DSA switch driver. This flag changes the behavior of the DSA core (`dsa_user_fdb_event`), allowing FDB (Forwarding Database) events to be processed for the CPU port, which in turn triggers the driver's `port_fdb_add` and `port_fdb_del` callbacks. This is a functional change in reachable driver code (which can be probed via Device Tree overlay injection), making it worth fuzzing.",
"WorthFuzzing": true
} |
| 1/1 | 2026/08/24 16:09 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit 47174b202e8a5d3d3d315c12a35b24b18d176850\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Mon Aug 24 16:09:15 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/drivers/net/dsa/mxl862xx/mxl862xx.c b/drivers/net/dsa/mxl862xx/mxl862xx.c\nindex 45d237b3a40f1..cfa7e3e269a28 100644\n--- a/drivers/net/dsa/mxl862xx/mxl862xx.c\n+++ b/drivers/net/dsa/mxl862xx/mxl862xx.c\n@@ -2111,6 +2111,7 @@ static int mxl862xx_probe(struct mdio_device *mdiodev)\n \tds-\u003eops = \u0026mxl862xx_switch_ops;\n \tds-\u003ephylink_mac_ops = \u0026mxl862xx_phylink_mac_ops;\n \tds-\u003enum_ports = MXL862XX_MAX_PORTS;\n+\tds-\u003eassisted_learning_on_cpu_port = true;\n \tds-\u003efdb_isolation = true;\n \tds-\u003emax_num_bridges = MXL862XX_MAX_BRIDGES;\n \n"
} |
| 2/1 | 2026/08/24 16:09 | agent | patch-evaluator |
48mModel:best-expensive Args: null Results: {
"EnableConfigs": [
"NET_DSA",
"NET_DSA_MXL862"
],
"FocusSymbols": [
"mxl862xx_probe",
"mxl862xx_port_fdb_add",
"mxl862xx_port_fdb_del"
],
"Reasoning": "The patch enables `assisted_learning_on_cpu_port` for the MaxLinear MxL862xx DSA switch driver. This flag changes the behavior of the DSA core (`dsa_user_fdb_event`), allowing FDB (Forwarding Database) events to be processed for the CPU port, which in turn triggers the driver's `port_fdb_add` and `port_fdb_del` callbacks. This is a functional change in reachable driver code (which can be probed via Device Tree overlay injection), making it worth fuzzing.",
"WorthFuzzing": true
}Instruction: You are an expert Linux kernel maintainer. Your job is to review a provided patch series and determine if it makes functional changes to the kernel that should be fuzzed. IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in your workspace. Do NOT rely on your internal knowledge of the kernel. You must actively use your code access tools to examine the actual source code and confirm any assumptions. Return WorthFuzzing=false if the patch only contains: - Modifications to Documentation/, Kconfig files, or code comments. - Purely decorative changes, such as logging (e.g., pr_err, printk) or tracepoints. - Changes to numeric constants or macros that do not functionally alter execution flow. - Code paths that are impossible to reach in virtualized environments like GCE or QEMU, even when utilizing software-emulated hardware (e.g., usb gadget, mac80211_hwsim). - Code in vendor-specific PCIe switch, SmartNIC, or GPU drivers (e.g., mlxsw, pds_core, qed, ionic, amdgpu) that require physical PCIe hardware cards not emulated in standard QEMU. - Driver .remove, .shutdown, or pci_unregister_driver teardown callbacks (e.g., igb_remove) that are executed only during PCI hot-unplug or sysfs driver unbind operations. If it modifies reachable core kernel logic, drivers, or architectures, use your code search tools to verify the code can be executed, then return WorthFuzzing=true. When returning WorthFuzzing=true, you MUST ALSO: 1. Extract any specific kernel functions that should be heavily fuzzed into FocusSymbols. Avoid listing generic hot-path functions to prevent skewed test distributions. Prefer non-static, non-inlined API entrypoint functions over internal static helper functions (which are inlined by the compiler and do not have distinct symbol addresses). 2. Identify any specific CONFIG_ options required to properly test this new/modified feature. Go and look into the Kconfig files and check for ifdefs around the code, do not make assumptions. Also check "depends on" lines in Kconfig to include any non-standard parent subsystem configs needed for Kbuild to compile the code statically into vmlinux. List them in the EnableConfigs output array, and DO NOT add a '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: For your convenience, here is the diff of the changes:
commit 47174b202e8a5d3d3d315c12a35b24b18d176850
Author: syz-cluster <triage@syzkaller.com>
Date: Mon Aug 24 16:09:15 2026 +0000
syz-cluster: applied patch under review
diff --git a/drivers/net/dsa/mxl862xx/mxl862xx.c b/drivers/net/dsa/mxl862xx/mxl862xx.c
index 45d237b3a40f1..cfa7e3e269a28 100644
--- a/drivers/net/dsa/mxl862xx/mxl862xx.c
+++ b/drivers/net/dsa/mxl862xx/mxl862xx.c
@@ -2111,6 +2111,7 @@ static int mxl862xx_probe(struct mdio_device *mdiodev)
ds->ops = &mxl862xx_switch_ops;
ds->phylink_mac_ops = &mxl862xx_phylink_mac_ops;
ds->num_ports = MXL862XX_MAX_PORTS;
+ ds->assisted_learning_on_cpu_port = true;
ds->fdb_isolation = true;
ds->max_num_bridges = MXL862XX_MAX_BRIDGES;
|
| 3/2 | 2026/08/24 16:09 | llm | patch-evaluator |
4mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 2082 output: 50 thoughts: 141 Thoughts: **Analyzing a DSA Driver Patch** Okay, so I've got this patch that seems to be tweaking the `mxl862xx.c` driver, specifically within the `drivers/net/dsa` directory. It's adding `ds->assisted_learning_on_cpu_port = true;` inside the `mxl862xx_probe` function. Right, so this is for the MaxLinear MXL862XX, a DSA driver. My immediate thought is, "Can I even trigger this in QEMU?". DSA drivers are *typically* tied to specific hardware switch setups, so emulating this functionality perfectly in a standard QEMU environment is often a challenge. Let me just quickly verify the driver's Kconfig file and the `mxl862xx.c` file itself to confirm its configuration options. I need to understand if this is something that's even likely to be included in a standard build or if it's dependent on a specific board or configuration. I'll need to figure out what scenarios could enable the driver. My next step will be to search the codebase to see where else `assisted_learning_on_cpu_port` is used. |
| 4/2 | 2026/08/24 16:13 | tool | grepper |
0mArgs:{
"Expression": "mxl862xx_probe",
"PathPrefix": "drivers/net/dsa/mxl862xx/mxl862xx.c"
}Results: {
"Output": "drivers/net/dsa/mxl862xx/mxl862xx.c=2057=static const struct dsa_switch_ops mxl862xx_switch_ops = {\n--\ndrivers/net/dsa/mxl862xx/mxl862xx.c-2090-\ndrivers/net/dsa/mxl862xx/mxl862xx.c:2091:static int mxl862xx_probe(struct mdio_device *mdiodev)\ndrivers/net/dsa/mxl862xx/mxl862xx.c-2092-{\n--\ndrivers/net/dsa/mxl862xx/mxl862xx.c=2201=static struct mdio_driver mxl862xx_driver = {\ndrivers/net/dsa/mxl862xx/mxl862xx.c:2202:\t.probe = mxl862xx_probe,\ndrivers/net/dsa/mxl862xx/mxl862xx.c-2203-\t.remove = mxl862xx_remove,\n"
} |
| 5/2 | 2026/08/24 16:13 | llm | patch-evaluator |
3mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 2834 output: 47 thoughts: 56 Thoughts: Okay, here's my take on those thoughts, tailored for an expert audience, presented in the first person: **MDIO Driver Investigation** Alright, so I'm looking at an MDIO driver. My initial instinct is that this is likely a hardware-specific piece of code. MDIO devices, from my experience, aren't usually emulated wholesale within standard QEMU setups, unless we're talking about a generic PHY abstraction, or there's a custom emulator in place. I mean, we're not running a full bit-accurate simulation here, so it's most likely targeted at some specific silicon. Given that, the first thing I'm going to do is dive into the Kconfig files. The mention of MXL862XX specifically points us to looking at the config options for that particular part number. That's where the real breadcrumbs will be. I need to figure out what build settings are needed to enable this driver and what dependencies it may have. |
| 6/2 | 2026/08/24 16:17 | tool | grepper |
0mError:no matches Args: {
"Expression": "config NET_DSA_MXL862XX",
"PathPrefix": "drivers/net/dsa/mxl862xx/Kconfig"
}Results: {
"error": "no matches"
} |
| 7/2 | 2026/08/24 16:17 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 3159 output: 40 thoughts: 17 Thoughts: Here's my thought process, as an expert in my field: **Diving into the DSA Kconfig** Alright, time to get to the heart of this. My focus is on the `drivers/net/dsa/` directory. That means I need to start by looking at the Kconfig file within that directory. I'm going to quickly parse it; the Kconfig will provide the fundamental configuration options for the DSA (Distributed Switch Architecture) driver infrastructure. I'll be looking for key aspects: dependencies on other features, available driver options, and any associated features. This should give me the ground truth of what's possible, what's enabled by default, and how the various components are linked together. This Kconfig will set the stage for understanding the broader DSA landscape. Time to get my eyes on it! |
| 8/2 | 2026/08/24 16:17 | tool | grepper |
0mError:no matches Args: {
"Expression": "config NET_DSA_MXL862XX",
"PathPrefix": "drivers/net/dsa/Kconfig"
}Results: {
"error": "no matches"
} |
| 9/2 | 2026/08/24 16:17 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 3403 output: 34 thoughts: 17 Thoughts: Here's a summary of my thought process, as if I were considering those thoughts myself: **Investigating the Configuration for mxl862xx.c** Okay, so I need to figure out what configurations are responsible for enabling the `mxl862xx.c` driver. I know this driver is important, and I need to understand its dependencies. I'm going to start by diving into the configuration files to see what flags or settings control its inclusion. My goal is to pinpoint the exact config options, and then I can deduce the overall implications of that configuration. This is standard procedure, but I have to make sure to do it correctly and methodically. |
| 10/2 | 2026/08/24 16:17 | tool | grepper |
0mArgs:{
"Expression": "mxl862xx",
"PathPrefix": "drivers/net/dsa/Makefile"
}Results: {
"Output": "drivers/net/dsa/Makefile=23=obj-y\t\t\t\t+= mv88e6xxx/\ndrivers/net/dsa/Makefile:24:obj-y\t\t\t\t+= mxl862xx/\ndrivers/net/dsa/Makefile-25-obj-y\t\t\t\t+= netc/\n"
} |
| 11/2 | 2026/08/24 16:17 | llm | patch-evaluator |
7mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 3679 output: 31 thoughts: 34 Thoughts: Okay, here's my interpretation of those thoughts, tailored for an expert audience, presented in the first person: **Navigating the mxl862xx Driver Subdirectory** Right, so this is clearly a subdirectory, likely containing the driver code for the mxl862xx family of devices. My initial instinct is to dig into the standard places. The `Makefile` is where I'll find build rules, dependencies, and hopefully hints about how this driver integrates into the broader kernel build system. Specifically, `drivers/net/dsa/mxl862xx/Makefile` should tell me how this particular mxl862xx driver module is compiled, linked, and possibly installed. Are there any specific compilation flags, are there any unique modules created, dependencies on other subdirectories? Then, the `Kconfig` file, located likely in the same location, holds the configuration options. I expect to find the relevant Kconfig fragment (`CONFIG_MXL862XX` perhaps?) which defines the symbol and associated dependencies. This is where I'll get an understanding of the driver's build-time configuration, feature toggles, and any dependencies on other kernel subsystems or features. I'm going to look for any tristate options. That will give me the best idea of how to enable or disable the specific features on the system. It should point me to other related Kconfig entries. I'll likely need to check the dependencies and constraints of the various configuration options to see if there are any gotchas. This will inform my approach to this driver, both in terms of understanding its functionality and how to best integrate it with my project. |
| 12/2 | 2026/08/24 16:25 | tool | codesearch-dir-index |
0mArgs:{
"Dir": "drivers/net/dsa/mxl862xx"
}Results: {
"Files": [
"mxl862xx-api.h",
"mxl862xx-cmd.h",
"mxl862xx-host.c",
"mxl862xx-host.h",
"mxl862xx-phylink.c",
"mxl862xx-phylink.h",
"mxl862xx.c",
"mxl862xx.h"
],
"Subdirs": null
} |
| 13/2 | 2026/08/24 16:25 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 4206 output: 33 thoughts: 41 Thoughts: Okay, here's my interpretation of those thoughts, framed as my own: **Missing Build Configuration!** Hold on a second... no Makefile *or* Kconfig file within `drivers/net/dsa/mxl862xx`? That's unusual. It seems like it would require them to properly build, so I need to make sure I'm not missing something obvious. I'll double-check the top-level `drivers/net/dsa/Makefile` again, just to be absolutely certain I haven't overlooked where the build configuration for this driver *should* reside. Perhaps it's handled differently, or included elsewhere. Let's see... I'm missing something, I can tell. |
| 14/2 | 2026/08/24 16:25 | tool | grepper |
0mArgs:{
"Expression": "mxl862xx",
"PathPrefix": "drivers/net/dsa/"
}Results: {
"Output": "\nFull output is too long, showing 500 out of 2112 lines.\nUse more precise expression if possible.\n\ndrivers/net/dsa/Kconfig=85=source \"drivers/net/dsa/mv88e6xxx/Kconfig\"\ndrivers/net/dsa/Kconfig-86-\ndrivers/net/dsa/Kconfig:87:source \"drivers/net/dsa/mxl862xx/Kconfig\"\ndrivers/net/dsa/Kconfig-88-\n--\ndrivers/net/dsa/Makefile=23=obj-y\t\t\t\t+= mv88e6xxx/\ndrivers/net/dsa/Makefile:24:obj-y\t\t\t\t+= mxl862xx/\ndrivers/net/dsa/Makefile-25-obj-y\t\t\t\t+= netc/\n--\ndrivers/net/dsa/mxl862xx/Makefile-1-# SPDX-License-Identifier: GPL-2.0\ndrivers/net/dsa/mxl862xx/Makefile:2:obj-$(CONFIG_NET_DSA_MXL862) += mxl862xx_dsa.o\ndrivers/net/dsa/mxl862xx/Makefile:3:mxl862xx_dsa-y := mxl862xx.o mxl862xx-host.o mxl862xx-phylink.o\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h=16=struct mdio_relay_data {\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-23-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:24: * struct mxl862xx_register_mod - Register access parameter to directly\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-25- * modify internal registers\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-31- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:32:struct mxl862xx_register_mod {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-33-\t__le16 addr;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-38-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:39: * enum mxl862xx_mac_table_filter - Source/Destination MAC address filtering\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-40- *\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-45- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:46:enum mxl862xx_mac_table_filter {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-47-\tMXL862XX_MAC_FILTER_NONE = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-64-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:65: * struct mxl862xx_mac_table_add - MAC Table Entry to be added\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-66- * @fid: Filtering Identifier (FID) (not supported by all switches)\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-74- * @mac: MAC Address to add to the table\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:75: * @filter_flag: See \u0026enum mxl862xx_mac_table_filter\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-76- * @igmp_controlled: Packet is marked as IGMP controlled if destination MAC\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-83- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:84:struct mxl862xx_mac_table_add {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-85-\t__le16 fid;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-100-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:101: * struct mxl862xx_mac_table_remove - MAC Table Entry to be removed\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-102- * @fid: Filtering Identifier (FID)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-103- * @mac: MAC Address to be removed from the table.\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:104: * @filter_flag: See \u0026enum mxl862xx_mac_table_filter\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-105- * @tci: TCI for B-Step\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-109- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:110:struct mxl862xx_mac_table_remove {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-111-\t__le16 fid;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-117-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:118: * struct mxl862xx_mac_table_read - MAC Table Entry to be read\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-119- * @initial: Restart the get operation from the beginning of the table\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-128- * @mac: MAC Address. Filled out by the switch API implementation.\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:129: * @filter_flag: See \u0026enum mxl862xx_mac_table_filter\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-130- * @igmp_controlled: Packet is marked as IGMP controlled if destination MAC\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-141- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:142:struct mxl862xx_mac_table_read {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-143-\tu8 initial;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-162-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:163: * struct mxl862xx_mac_table_query - MAC Table Entry key-based lookup\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-164- * @mac: MAC Address to search for (input)\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-172- * @static_entry: Indicates if this is a Static Entry\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:173: * @filter_flag: See \u0026enum mxl862xx_mac_table_filter (input+output)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-174- * @igmp_controlled: IGMP controlled flag\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-180- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:181:struct mxl862xx_mac_table_query {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-182-\tu8 mac[ETH_ALEN];\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-200-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:201: * enum mxl862xx_mac_clear_type - MAC table clear type\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-202- * @MXL862XX_MAC_CLEAR_PHY_PORT: clear dynamic entries based on port_id\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-204- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:205:enum mxl862xx_mac_clear_type {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-206-\tMXL862XX_MAC_CLEAR_PHY_PORT = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-210-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:211: * struct mxl862xx_mac_table_clear - MAC table clear\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:212: * @type: see \u0026enum mxl862xx_mac_clear_type\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-213- * @port_id: physical port id\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-214- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:215:struct mxl862xx_mac_table_clear {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-216-\tu8 type;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-220-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:221: * enum mxl862xx_age_timer - Aging Timer Value.\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-222- * @MXL862XX_AGETIMER_1_SEC: 1 second aging time\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-228- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:229:enum mxl862xx_age_timer {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-230-\tMXL862XX_AGETIMER_1_SEC = 1,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-238-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:239: * struct mxl862xx_bridge_alloc - Bridge Allocation\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-240- * @bridge_id: If the bridge allocation is successful, a valid ID will be\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-247- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:248:struct mxl862xx_bridge_alloc {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-249-\t__le16 bridge_id;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-252-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:253: * enum mxl862xx_bridge_config_mask - Bridge configuration mask\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-254- * @MXL862XX_BRIDGE_CONFIG_MASK_MAC_LEARNING_LIMIT:\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-267- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:268:enum mxl862xx_bridge_config_mask {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-269-\tMXL862XX_BRIDGE_CONFIG_MASK_MAC_LEARNING_LIMIT = BIT(0),\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-278-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:279: * enum mxl862xx_bridge_port_egress_meter - Meters for egress traffic type\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-280- * @MXL862XX_BRIDGE_PORT_EGRESS_METER_BROADCAST:\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-293- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:294:enum mxl862xx_bridge_port_egress_meter {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-295-\tMXL862XX_BRIDGE_PORT_EGRESS_METER_BROADCAST = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-304-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:305: * struct mxl862xx_qos_meter_cfg - Rate meter configuration\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-306- * @enable: Enable/disable meter\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-320- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:321:struct mxl862xx_qos_meter_cfg {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-322-\tu8 enable;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-338-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:339: * enum mxl862xx_bridge_forward_mode - Bridge forwarding type of packet\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-340- * @MXL862XX_BRIDGE_FORWARD_FLOOD: Packet is flooded to port members of\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-343- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:344:enum mxl862xx_bridge_forward_mode {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-345-\tMXL862XX_BRIDGE_FORWARD_FLOOD = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-349-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:350: * struct mxl862xx_bridge_config - Bridge Configuration\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-351- * @bridge_id: Bridge ID (FID)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:352: * @mask: See \u0026enum mxl862xx_bridge_config_mask\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-353- * @mac_learning_limit_enable: Enable MAC learning limitation\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-363- * @forward_broadcast: Forwarding mode of broadcast traffic. See\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:364: * \u0026enum mxl862xx_bridge_forward_mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-365- * @forward_unknown_multicast_ip: Forwarding mode of unknown multicast IP\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-366- * traffic.\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:367: * See \u0026enum mxl862xx_bridge_forward_mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-368- * @forward_unknown_multicast_non_ip: Forwarding mode of unknown multicast\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-369- * non-IP traffic.\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:370: * See \u0026enum mxl862xx_bridge_forward_mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-371- * @forward_unknown_unicast: Forwarding mode of unknown unicast traffic. See\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:372: * \u0026enum mxl862xx_bridge_forward_mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-373- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:374:struct mxl862xx_bridge_config {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-375-\t__le16 bridge_id;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:376:\t__le32 mask; /* enum mxl862xx_bridge_config_mask */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-377-\tu8 mac_learning_limit_enable;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-382-\t__le16 traffic_sub_meter_id[MXL862XX_BRIDGE_PORT_EGRESS_METER_MAX];\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:383:\t__le32 forward_broadcast; /* enum mxl862xx_bridge_forward_mode */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:384:\t__le32 forward_unknown_multicast_ip; /* enum mxl862xx_bridge_forward_mode */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:385:\t__le32 forward_unknown_multicast_non_ip; /* enum mxl862xx_bridge_forward_mode */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:386:\t__le32 forward_unknown_unicast; /* enum mxl862xx_bridge_forward_mode */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-387-} __packed;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-389-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:390: * struct mxl862xx_bridge_port_alloc - Bridge Port Allocation\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-391- * @bridge_port_id: If the bridge port allocation is successful, a valid ID\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-397- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:398:struct mxl862xx_bridge_port_alloc {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-399-\t__le16 bridge_port_id;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-402-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:403: * enum mxl862xx_bridge_port_config_mask - Bridge Port configuration mask\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-404- * @MXL862XX_BRIDGE_PORT_CONFIG_MASK_BRIDGE_ID:\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-462- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:463:enum mxl862xx_bridge_port_config_mask {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-464-\tMXL862XX_BRIDGE_PORT_CONFIG_MASK_BRIDGE_ID = BIT(0),\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-491-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:492: * enum mxl862xx_color_marking_mode - Color Marking Mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-493- * @MXL862XX_MARKING_ALL_GREEN: mark packets (except critical) to green\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-501- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:502:enum mxl862xx_color_marking_mode {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-503-\tMXL862XX_MARKING_ALL_GREEN = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-513-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:514: * enum mxl862xx_color_remarking_mode - Color Remarking Mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-515- * @MXL862XX_REMARKING_NONE: values from last process stage\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-522- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:523:enum mxl862xx_color_remarking_mode {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-524-\tMXL862XX_REMARKING_NONE = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-533-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:534: * enum mxl862xx_pmapper_mapping_mode - P-mapper Mapping Mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-535- * @MXL862XX_PMAPPER_MAPPING_PCP: Use PCP for VLAN tagged packets to derive\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-541- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:542:enum mxl862xx_pmapper_mapping_mode {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-543-\tMXL862XX_PMAPPER_MAPPING_PCP = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-548-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:549: * struct mxl862xx_pmapper - P-mapper Configuration\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-550- * @pmapper_id: Index of P-mapper (0-31)\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-560- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:561:struct mxl862xx_pmapper {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-562-\t__le16 pmapper_id;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-566-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:567: * struct mxl862xx_bridge_port_config - Bridge Port Configuration\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-568- * @bridge_port_id: Bridge Port ID allocated by bridge port allocation\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:569: * @mask: See \u0026enum mxl862xx_bridge_port_config_mask\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-570- * @bridge_id: Bridge ID (FID) to which this bridge port is associated\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-583- * @ingress_marking_mode: Ingress color marking mode. See\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:584: * \u0026enum mxl862xx_color_marking_mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-585- * @egress_remarking_mode: Color remarking for egress traffic. See\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:586: * \u0026enum mxl862xx_color_remarking_mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-587- * @ingress_metering_enable: Traffic metering on ingress traffic applies\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-597- * @pmapper_mapping_mode: P-mapper mapping mode. See\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:598: * \u0026enum mxl862xx_pmapper_mapping_mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-599- * @pmapper_id_valid: When true, P-mapper is re-used; when false,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-653- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:654:struct mxl862xx_bridge_port_config {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-655-\t__le16 bridge_port_id;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:656:\t__le32 mask; /* enum mxl862xx_bridge_port_config_mask */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-657-\t__le16 bridge_id;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-663-\t__le16 egress_extended_vlan_block_size;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:664:\t__le32 ingress_marking_mode; /* enum mxl862xx_color_marking_mode */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:665:\t__le32 egress_remarking_mode; /* enum mxl862xx_color_remarking_mode */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-666-\tu8 ingress_metering_enable;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-672-\t__le16 dest_sub_if_id_group;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:673:\t__le32 pmapper_mapping_mode; /* enum mxl862xx_pmapper_mapping_mode */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-674-\tu8 pmapper_id_valid;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:675:\tstruct mxl862xx_pmapper pmapper;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-676-\t__le16 bridge_port_map[8];\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-709-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:710: * struct mxl862xx_cfg - Global Switch configuration Attributes\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:711: * @mac_table_age_timer: See \u0026enum mxl862xx_age_timer\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-712- * @age_timer: Custom MAC table aging timer in seconds\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-722- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:723:struct mxl862xx_cfg {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:724:\t__le32 mac_table_age_timer; /* enum mxl862xx_age_timer */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-725-\t__le32 age_timer;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-734-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:735: * enum mxl862xx_extended_vlan_filter_type - Extended VLAN filter tag type\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-736- * @MXL862XX_EXTENDEDVLAN_FILTER_TYPE_NORMAL: Normal tagged\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-740- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:741:enum mxl862xx_extended_vlan_filter_type {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-742-\tMXL862XX_EXTENDEDVLAN_FILTER_TYPE_NORMAL = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-748-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:749: * enum mxl862xx_extended_vlan_filter_tpid - Extended VLAN filter TPID\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-750- * @MXL862XX_EXTENDEDVLAN_FILTER_TPID_NO_FILTER: No TPID filter\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-753- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:754:enum mxl862xx_extended_vlan_filter_tpid {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-755-\tMXL862XX_EXTENDEDVLAN_FILTER_TPID_NO_FILTER = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-760-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:761: * enum mxl862xx_extended_vlan_filter_dei - Extended VLAN filter DEI\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-762- * @MXL862XX_EXTENDEDVLAN_FILTER_DEI_NO_FILTER: No DEI filter\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-765- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:766:enum mxl862xx_extended_vlan_filter_dei {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-767-\tMXL862XX_EXTENDEDVLAN_FILTER_DEI_NO_FILTER = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-772-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:773: * enum mxl862xx_extended_vlan_treatment_remove_tag - Tag removal action\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-774- * @MXL862XX_EXTENDEDVLAN_TREATMENT_NOT_REMOVE_TAG: Do not remove tag\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-778- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:779:enum mxl862xx_extended_vlan_treatment_remove_tag {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-780-\tMXL862XX_EXTENDEDVLAN_TREATMENT_NOT_REMOVE_TAG = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-786-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:787: * enum mxl862xx_extended_vlan_treatment_priority - Treatment priority mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-788- * @MXL862XX_EXTENDEDVLAN_TREATMENT_PRIORITY_VAL: Use explicit value\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-792- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:793:enum mxl862xx_extended_vlan_treatment_priority {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-794-\tMXL862XX_EXTENDEDVLAN_TREATMENT_PRIORITY_VAL = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-800-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:801: * enum mxl862xx_extended_vlan_treatment_vid - Treatment VID mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-802- * @MXL862XX_EXTENDEDVLAN_TREATMENT_VID_VAL: Use explicit VID value\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-805- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:806:enum mxl862xx_extended_vlan_treatment_vid {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-807-\tMXL862XX_EXTENDEDVLAN_TREATMENT_VID_VAL = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-812-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:813: * enum mxl862xx_extended_vlan_treatment_tpid - Treatment TPID mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-814- * @MXL862XX_EXTENDEDVLAN_TREATMENT_INNER_TPID: Copy from inner tag\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-818- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:819:enum mxl862xx_extended_vlan_treatment_tpid {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-820-\tMXL862XX_EXTENDEDVLAN_TREATMENT_INNER_TPID = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-826-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:827: * enum mxl862xx_extended_vlan_treatment_dei - Treatment DEI mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-828- * @MXL862XX_EXTENDEDVLAN_TREATMENT_INNER_DEI: Copy from inner tag\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-832- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:833:enum mxl862xx_extended_vlan_treatment_dei {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-834-\tMXL862XX_EXTENDEDVLAN_TREATMENT_INNER_DEI = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-840-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:841: * enum mxl862xx_extended_vlan_4_tpid_mode - 4-TPID mode selector\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-842- * @MXL862XX_EXTENDEDVLAN_TPID_VTETYPE_1: VLAN TPID type 1\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-846- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:847:enum mxl862xx_extended_vlan_4_tpid_mode {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-848-\tMXL862XX_EXTENDEDVLAN_TPID_VTETYPE_1 = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-854-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:855: * enum mxl862xx_extended_vlan_filter_ethertype - Filter EtherType match\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-856- * @MXL862XX_EXTENDEDVLAN_FILTER_ETHERTYPE_NO_FILTER: No filter\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-864- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:865:enum mxl862xx_extended_vlan_filter_ethertype {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-866-\tMXL862XX_EXTENDEDVLAN_FILTER_ETHERTYPE_NO_FILTER = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-876-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:877: * struct mxl862xx_extendedvlan_filter_vlan - Per-tag filter in Extended VLAN\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:878: * @type: Tag presence/type match (see \u0026enum mxl862xx_extended_vlan_filter_type)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-879- * @priority_enable: Enable PCP value matching\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-882- * @vid_val: VID value to match\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:883: * @tpid: TPID match mode (see \u0026enum mxl862xx_extended_vlan_filter_tpid)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:884: * @dei: DEI match mode (see \u0026enum mxl862xx_extended_vlan_filter_dei)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-885- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:886:struct mxl862xx_extendedvlan_filter_vlan {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-887-\t__le32 type;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-896-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:897: * struct mxl862xx_extendedvlan_filter - Extended VLAN filter configuration\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-898- * @original_packet_filter_mode: If true, filter on original (pre-treatment)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-899- * packet\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:900: * @filter_4_tpid_mode: 4-TPID mode (see \u0026enum mxl862xx_extended_vlan_4_tpid_mode)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-901- * @outer_vlan: Outer VLAN tag filter\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-903- * @ether_type: EtherType filter (see\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:904: * \u0026enum mxl862xx_extended_vlan_filter_ethertype)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-905- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:906:struct mxl862xx_extendedvlan_filter {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-907-\tu8 original_packet_filter_mode;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-908-\t__le32 filter_4_tpid_mode;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:909:\tstruct mxl862xx_extendedvlan_filter_vlan outer_vlan;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:910:\tstruct mxl862xx_extendedvlan_filter_vlan inner_vlan;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-911-\t__le32 ether_type;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-914-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:915: * struct mxl862xx_extendedvlan_treatment_vlan - Per-tag treatment in\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-916- * Extended VLAN\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-917- * @priority_mode: Priority assignment mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:918: * (see \u0026enum mxl862xx_extended_vlan_treatment_priority)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-919- * @priority_val: Priority value (when mode is VAL)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-920- * @vid_mode: VID assignment mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:921: * (see \u0026enum mxl862xx_extended_vlan_treatment_vid)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-922- * @vid_val: VID value (when mode is VAL)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-923- * @tpid: TPID assignment mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:924: * (see \u0026enum mxl862xx_extended_vlan_treatment_tpid)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-925- * @dei: DEI assignment mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:926: * (see \u0026enum mxl862xx_extended_vlan_treatment_dei)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-927- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:928:struct mxl862xx_extendedvlan_treatment_vlan {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-929-\t__le32 priority_mode;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-937-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:938: * struct mxl862xx_extendedvlan_treatment - Extended VLAN treatment\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-939- * @remove_tag: Tag removal action\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:940: * (see \u0026enum mxl862xx_extended_vlan_treatment_remove_tag)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-941- * @treatment_4_tpid_mode: 4-TPID treatment mode\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-958- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:959:struct mxl862xx_extendedvlan_treatment {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-960-\t__le32 remove_tag;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-962-\tu8 add_outer_vlan;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:963:\tstruct mxl862xx_extendedvlan_treatment_vlan outer_vlan;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-964-\tu8 add_inner_vlan;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:965:\tstruct mxl862xx_extendedvlan_treatment_vlan inner_vlan;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-966-\tu8 reassign_bridge_port;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-980-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:981: * struct mxl862xx_extendedvlan_alloc - Extended VLAN block allocation\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-982- * @number_of_entries: Number of entries to allocate (input) / allocated\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-988- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:989:struct mxl862xx_extendedvlan_alloc {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-990-\t__le16 number_of_entries;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-994-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:995: * struct mxl862xx_extendedvlan_config - Extended VLAN entry configuration\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-996- * @extended_vlan_block_id: Block ID from allocation\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1002- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1003:struct mxl862xx_extendedvlan_config {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1004-\t__le16 extended_vlan_block_id;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1005-\t__le16 entry_index;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1006:\tstruct mxl862xx_extendedvlan_filter filter;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1007:\tstruct mxl862xx_extendedvlan_treatment treatment;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1008-} __packed;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1010-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1011: * enum mxl862xx_vlan_filter_tci_mask - VLAN Filter TCI mask\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1012- * @MXL862XX_VLAN_FILTER_TCI_MASK_VID: TCI mask for VLAN ID\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1015- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1016:enum mxl862xx_vlan_filter_tci_mask {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1017-\tMXL862XX_VLAN_FILTER_TCI_MASK_VID = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1022-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1023: * struct mxl862xx_vlanfilter_alloc - VLAN Filter block allocation\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1024- * @number_of_entries: Number of entries to allocate (input) / allocated\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1034- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1035:struct mxl862xx_vlanfilter_alloc {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1036-\t__le16 number_of_entries;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1043-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1044: * struct mxl862xx_vlanfilter_config - VLAN Filter entry configuration\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1045- * @vlan_filter_block_id: Block ID from allocation\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1047- * @vlan_filter_mask: TCI field(s) to match (see\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1048: * \u0026enum mxl862xx_vlan_filter_tci_mask)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1049- * @val: TCI value(s) to match (VID, PCP, or full TCI depending on mask)\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1054- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1055:struct mxl862xx_vlanfilter_config {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1056-\t__le16 vlan_filter_block_id;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1057-\t__le16 entry_index;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1058:\t__le32 vlan_filter_mask; /* enum mxl862xx_vlan_filter_tci_mask */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1059-\t__le32 val;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1063-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1064: * enum mxl862xx_ss_sp_tag_mask - Special tag valid field indicator bits\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1065- * @MXL862XX_SS_SP_TAG_MASK_RX: valid RX special tag mode\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1069- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1070:enum mxl862xx_ss_sp_tag_mask {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1071-\tMXL862XX_SS_SP_TAG_MASK_RX = BIT(0),\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1077-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1078: * enum mxl862xx_ss_sp_tag_rx - RX special tag mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1079- * @MXL862XX_SS_SP_TAG_RX_NO_TAG_NO_INSERT: packet does NOT have special\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1085- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1086:enum mxl862xx_ss_sp_tag_rx {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1087-\tMXL862XX_SS_SP_TAG_RX_NO_TAG_NO_INSERT = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1092-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1093: * enum mxl862xx_ss_sp_tag_tx - TX special tag mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1094- * @MXL862XX_SS_SP_TAG_TX_NO_TAG_NO_REMOVE: packet does NOT have special\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1102- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1103:enum mxl862xx_ss_sp_tag_tx {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1104-\tMXL862XX_SS_SP_TAG_TX_NO_TAG_NO_REMOVE = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1110-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1111: * enum mxl862xx_ss_sp_tag_rx_pen - RX special tag info over preamble\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1112- * @MXL862XX_SS_SP_TAG_RX_PEN_ALL_0: special tag info inserted from byte 2\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1122- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1123:enum mxl862xx_ss_sp_tag_rx_pen {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1124-\tMXL862XX_SS_SP_TAG_RX_PEN_ALL_0 = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1130-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1131: * struct mxl862xx_ss_sp_tag - Special tag port settings\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1132- * @pid: port ID (1~16)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1133: * @mask: See \u0026enum mxl862xx_ss_sp_tag_mask\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1134: * @rx: See \u0026enum mxl862xx_ss_sp_tag_rx\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1135: * @tx: See \u0026enum mxl862xx_ss_sp_tag_tx\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1136: * @rx_pen: See \u0026enum mxl862xx_ss_sp_tag_rx_pen\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1137- * @tx_pen: TX special tag info over preamble\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1140- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1141:struct mxl862xx_ss_sp_tag {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1142-\tu8 pid;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1143:\tu8 mask; /* enum mxl862xx_ss_sp_tag_mask */\n\n"
} |
| 15/2 | 2026/08/24 16:25 | llm | patch-evaluator |
10mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 21824 output: 46 thoughts: 68 Thoughts: Okay, here's my take on those thoughts, tailored for an expert audience: **Examining the MXL862 Driver Configuration** Right, so I'm revisiting this `CONFIG_NET_DSA_MXL862` configuration option. Always good to double-check these things, especially after a recent code review or a refactor. My initial thought is to make sure I haven't mixed up the naming conventions. It's a common oversight, and sometimes the Kconfig files use slightly different identifiers than what's initially suggested. I need to be absolutely certain I'm using the correct symbol. The likely candidates are `NET_DSA_MXL862XX` or perhaps just `NET_DSA_MXL862` - it's back to the `drivers/net/dsa/mxl862xx/Kconfig` file I go. A quick search within should confirm exactly what the kernel expects and save me from a potential headache down the line. It's all about precision, right? Gotta get that config right before I waste time debugging. |
| 16/2 | 2026/08/24 16:35 | tool | grepper |
0mArgs:{
"Expression": "config NET_DSA_MXL862",
"PathPrefix": "drivers/net/dsa/mxl862xx/Kconfig"
}Results: {
"Output": "drivers/net/dsa/mxl862xx/Kconfig-1-# SPDX-License-Identifier: GPL-2.0-only\ndrivers/net/dsa/mxl862xx/Kconfig:2:config NET_DSA_MXL862\ndrivers/net/dsa/mxl862xx/Kconfig-3-\ttristate \"MaxLinear MxL862xx\"\n"
} |
| 17/2 | 2026/08/24 16:35 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 22279 output: 26 thoughts: 369 Thoughts: **My Approach to Testing the MxL862xx Driver in QEMU with Syzkaller**
Alright, the target is `CONFIG_NET_DSA_MXL862`. Now, the challenge: can I get this driver to be recognized in QEMU? I know it's an MDIO device driver, based on `static struct mdio_driver mxl862xx_driver = { ... }`. So, MDIO devices usually surface either during MDIO bus scans or via explicit declarations in the device tree.
The immediate hurdle is QEMU; it doesn't have a specific emulator for these MaxLinear switches. Okay, so how can I simulate the environment? Maybe create a dummy MDIO device using a software MDIO bus - like `mdio-mockup`, or possibly something based on `macb`... but wait, `mdio-mockup` sounds better for this, or maybe `mdio-gpio`?
Hang on... Syzkaller. It can inject devices via device tree overlays or Netlink, right? But MDIO, it's pretty standard that these are usually probed via device tree. Actually, does Syzkaller even have a built-in mechanism for testing MDIO drivers?
No, wait, it doesn't have a *generic* MDIO injection method. Unless it's using something like `vhci` which is USB related, or `mac80211_hwsim` for wifi, which are not relevant here. But wait! Didn't they recently add *something* for MDIO or I2C support?
No, hold on, it can use `syz_genetlink` or something similar, but that still won't help with how MDIO devices are *typically* probed, which is through the device tree.
Okay, here's a different approach. Is there *any* software MDIO bus that Syzkaller could use to actually trigger a probe of this device? It's looking like the answer will rely on being able to probe the driver via syzkaller, which depends on some means to instantiate an MDIO bus and register devices on it, via either device tree, or some special injection means. Let's see if there's any reference in syzkaller descriptions, looking for either `mdio` or specifically, `mxl862xx`.
|
| 18/2 | 2026/08/24 16:35 | tool | grepper |
0mArgs:{
"Expression": "mxl862xx",
"PathPrefix": ""
}Results: {
"Output": "\nFull output is too long, showing 500 out of 2130 lines.\nUse more precise expression if possible.\n\nDocumentation/devicetree/bindings/net/dsa/maxlinear,mxl862xx.yaml-3----\nDocumentation/devicetree/bindings/net/dsa/maxlinear,mxl862xx.yaml:4:$id: http://devicetree.org/schemas/net/dsa/maxlinear,mxl862xx.yaml#\nDocumentation/devicetree/bindings/net/dsa/maxlinear,mxl862xx.yaml-5-$schema: http://devicetree.org/meta-schemas/core.yaml#\n--\nMAINTAINERS=16121=S:\tMaintained\nMAINTAINERS:16122:F:\tDocumentation/devicetree/bindings/net/dsa/maxlinear,mxl862xx.yaml\nMAINTAINERS:16123:F:\tdrivers/net/dsa/mxl862xx/\nMAINTAINERS:16124:F:\tnet/dsa/tag_mxl862xx.c\nMAINTAINERS-16125-\n--\ndrivers/net/dsa/Kconfig=85=source \"drivers/net/dsa/mv88e6xxx/Kconfig\"\ndrivers/net/dsa/Kconfig-86-\ndrivers/net/dsa/Kconfig:87:source \"drivers/net/dsa/mxl862xx/Kconfig\"\ndrivers/net/dsa/Kconfig-88-\n--\ndrivers/net/dsa/Makefile=23=obj-y\t\t\t\t+= mv88e6xxx/\ndrivers/net/dsa/Makefile:24:obj-y\t\t\t\t+= mxl862xx/\ndrivers/net/dsa/Makefile-25-obj-y\t\t\t\t+= netc/\n--\ndrivers/net/dsa/mxl862xx/Makefile-1-# SPDX-License-Identifier: GPL-2.0\ndrivers/net/dsa/mxl862xx/Makefile:2:obj-$(CONFIG_NET_DSA_MXL862) += mxl862xx_dsa.o\ndrivers/net/dsa/mxl862xx/Makefile:3:mxl862xx_dsa-y := mxl862xx.o mxl862xx-host.o mxl862xx-phylink.o\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h=16=struct mdio_relay_data {\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-23-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:24: * struct mxl862xx_register_mod - Register access parameter to directly\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-25- * modify internal registers\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-31- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:32:struct mxl862xx_register_mod {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-33-\t__le16 addr;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-38-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:39: * enum mxl862xx_mac_table_filter - Source/Destination MAC address filtering\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-40- *\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-45- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:46:enum mxl862xx_mac_table_filter {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-47-\tMXL862XX_MAC_FILTER_NONE = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-64-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:65: * struct mxl862xx_mac_table_add - MAC Table Entry to be added\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-66- * @fid: Filtering Identifier (FID) (not supported by all switches)\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-74- * @mac: MAC Address to add to the table\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:75: * @filter_flag: See \u0026enum mxl862xx_mac_table_filter\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-76- * @igmp_controlled: Packet is marked as IGMP controlled if destination MAC\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-83- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:84:struct mxl862xx_mac_table_add {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-85-\t__le16 fid;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-100-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:101: * struct mxl862xx_mac_table_remove - MAC Table Entry to be removed\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-102- * @fid: Filtering Identifier (FID)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-103- * @mac: MAC Address to be removed from the table.\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:104: * @filter_flag: See \u0026enum mxl862xx_mac_table_filter\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-105- * @tci: TCI for B-Step\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-109- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:110:struct mxl862xx_mac_table_remove {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-111-\t__le16 fid;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-117-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:118: * struct mxl862xx_mac_table_read - MAC Table Entry to be read\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-119- * @initial: Restart the get operation from the beginning of the table\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-128- * @mac: MAC Address. Filled out by the switch API implementation.\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:129: * @filter_flag: See \u0026enum mxl862xx_mac_table_filter\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-130- * @igmp_controlled: Packet is marked as IGMP controlled if destination MAC\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-141- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:142:struct mxl862xx_mac_table_read {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-143-\tu8 initial;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-162-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:163: * struct mxl862xx_mac_table_query - MAC Table Entry key-based lookup\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-164- * @mac: MAC Address to search for (input)\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-172- * @static_entry: Indicates if this is a Static Entry\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:173: * @filter_flag: See \u0026enum mxl862xx_mac_table_filter (input+output)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-174- * @igmp_controlled: IGMP controlled flag\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-180- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:181:struct mxl862xx_mac_table_query {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-182-\tu8 mac[ETH_ALEN];\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-200-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:201: * enum mxl862xx_mac_clear_type - MAC table clear type\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-202- * @MXL862XX_MAC_CLEAR_PHY_PORT: clear dynamic entries based on port_id\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-204- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:205:enum mxl862xx_mac_clear_type {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-206-\tMXL862XX_MAC_CLEAR_PHY_PORT = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-210-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:211: * struct mxl862xx_mac_table_clear - MAC table clear\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:212: * @type: see \u0026enum mxl862xx_mac_clear_type\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-213- * @port_id: physical port id\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-214- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:215:struct mxl862xx_mac_table_clear {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-216-\tu8 type;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-220-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:221: * enum mxl862xx_age_timer - Aging Timer Value.\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-222- * @MXL862XX_AGETIMER_1_SEC: 1 second aging time\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-228- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:229:enum mxl862xx_age_timer {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-230-\tMXL862XX_AGETIMER_1_SEC = 1,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-238-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:239: * struct mxl862xx_bridge_alloc - Bridge Allocation\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-240- * @bridge_id: If the bridge allocation is successful, a valid ID will be\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-247- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:248:struct mxl862xx_bridge_alloc {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-249-\t__le16 bridge_id;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-252-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:253: * enum mxl862xx_bridge_config_mask - Bridge configuration mask\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-254- * @MXL862XX_BRIDGE_CONFIG_MASK_MAC_LEARNING_LIMIT:\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-267- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:268:enum mxl862xx_bridge_config_mask {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-269-\tMXL862XX_BRIDGE_CONFIG_MASK_MAC_LEARNING_LIMIT = BIT(0),\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-278-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:279: * enum mxl862xx_bridge_port_egress_meter - Meters for egress traffic type\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-280- * @MXL862XX_BRIDGE_PORT_EGRESS_METER_BROADCAST:\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-293- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:294:enum mxl862xx_bridge_port_egress_meter {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-295-\tMXL862XX_BRIDGE_PORT_EGRESS_METER_BROADCAST = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-304-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:305: * struct mxl862xx_qos_meter_cfg - Rate meter configuration\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-306- * @enable: Enable/disable meter\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-320- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:321:struct mxl862xx_qos_meter_cfg {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-322-\tu8 enable;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-338-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:339: * enum mxl862xx_bridge_forward_mode - Bridge forwarding type of packet\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-340- * @MXL862XX_BRIDGE_FORWARD_FLOOD: Packet is flooded to port members of\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-343- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:344:enum mxl862xx_bridge_forward_mode {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-345-\tMXL862XX_BRIDGE_FORWARD_FLOOD = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-349-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:350: * struct mxl862xx_bridge_config - Bridge Configuration\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-351- * @bridge_id: Bridge ID (FID)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:352: * @mask: See \u0026enum mxl862xx_bridge_config_mask\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-353- * @mac_learning_limit_enable: Enable MAC learning limitation\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-363- * @forward_broadcast: Forwarding mode of broadcast traffic. See\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:364: * \u0026enum mxl862xx_bridge_forward_mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-365- * @forward_unknown_multicast_ip: Forwarding mode of unknown multicast IP\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-366- * traffic.\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:367: * See \u0026enum mxl862xx_bridge_forward_mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-368- * @forward_unknown_multicast_non_ip: Forwarding mode of unknown multicast\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-369- * non-IP traffic.\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:370: * See \u0026enum mxl862xx_bridge_forward_mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-371- * @forward_unknown_unicast: Forwarding mode of unknown unicast traffic. See\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:372: * \u0026enum mxl862xx_bridge_forward_mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-373- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:374:struct mxl862xx_bridge_config {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-375-\t__le16 bridge_id;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:376:\t__le32 mask; /* enum mxl862xx_bridge_config_mask */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-377-\tu8 mac_learning_limit_enable;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-382-\t__le16 traffic_sub_meter_id[MXL862XX_BRIDGE_PORT_EGRESS_METER_MAX];\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:383:\t__le32 forward_broadcast; /* enum mxl862xx_bridge_forward_mode */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:384:\t__le32 forward_unknown_multicast_ip; /* enum mxl862xx_bridge_forward_mode */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:385:\t__le32 forward_unknown_multicast_non_ip; /* enum mxl862xx_bridge_forward_mode */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:386:\t__le32 forward_unknown_unicast; /* enum mxl862xx_bridge_forward_mode */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-387-} __packed;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-389-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:390: * struct mxl862xx_bridge_port_alloc - Bridge Port Allocation\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-391- * @bridge_port_id: If the bridge port allocation is successful, a valid ID\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-397- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:398:struct mxl862xx_bridge_port_alloc {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-399-\t__le16 bridge_port_id;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-402-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:403: * enum mxl862xx_bridge_port_config_mask - Bridge Port configuration mask\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-404- * @MXL862XX_BRIDGE_PORT_CONFIG_MASK_BRIDGE_ID:\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-462- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:463:enum mxl862xx_bridge_port_config_mask {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-464-\tMXL862XX_BRIDGE_PORT_CONFIG_MASK_BRIDGE_ID = BIT(0),\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-491-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:492: * enum mxl862xx_color_marking_mode - Color Marking Mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-493- * @MXL862XX_MARKING_ALL_GREEN: mark packets (except critical) to green\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-501- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:502:enum mxl862xx_color_marking_mode {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-503-\tMXL862XX_MARKING_ALL_GREEN = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-513-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:514: * enum mxl862xx_color_remarking_mode - Color Remarking Mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-515- * @MXL862XX_REMARKING_NONE: values from last process stage\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-522- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:523:enum mxl862xx_color_remarking_mode {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-524-\tMXL862XX_REMARKING_NONE = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-533-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:534: * enum mxl862xx_pmapper_mapping_mode - P-mapper Mapping Mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-535- * @MXL862XX_PMAPPER_MAPPING_PCP: Use PCP for VLAN tagged packets to derive\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-541- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:542:enum mxl862xx_pmapper_mapping_mode {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-543-\tMXL862XX_PMAPPER_MAPPING_PCP = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-548-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:549: * struct mxl862xx_pmapper - P-mapper Configuration\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-550- * @pmapper_id: Index of P-mapper (0-31)\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-560- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:561:struct mxl862xx_pmapper {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-562-\t__le16 pmapper_id;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-566-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:567: * struct mxl862xx_bridge_port_config - Bridge Port Configuration\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-568- * @bridge_port_id: Bridge Port ID allocated by bridge port allocation\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:569: * @mask: See \u0026enum mxl862xx_bridge_port_config_mask\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-570- * @bridge_id: Bridge ID (FID) to which this bridge port is associated\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-583- * @ingress_marking_mode: Ingress color marking mode. See\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:584: * \u0026enum mxl862xx_color_marking_mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-585- * @egress_remarking_mode: Color remarking for egress traffic. See\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:586: * \u0026enum mxl862xx_color_remarking_mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-587- * @ingress_metering_enable: Traffic metering on ingress traffic applies\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-597- * @pmapper_mapping_mode: P-mapper mapping mode. See\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:598: * \u0026enum mxl862xx_pmapper_mapping_mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-599- * @pmapper_id_valid: When true, P-mapper is re-used; when false,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-653- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:654:struct mxl862xx_bridge_port_config {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-655-\t__le16 bridge_port_id;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:656:\t__le32 mask; /* enum mxl862xx_bridge_port_config_mask */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-657-\t__le16 bridge_id;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-663-\t__le16 egress_extended_vlan_block_size;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:664:\t__le32 ingress_marking_mode; /* enum mxl862xx_color_marking_mode */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:665:\t__le32 egress_remarking_mode; /* enum mxl862xx_color_remarking_mode */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-666-\tu8 ingress_metering_enable;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-672-\t__le16 dest_sub_if_id_group;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:673:\t__le32 pmapper_mapping_mode; /* enum mxl862xx_pmapper_mapping_mode */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-674-\tu8 pmapper_id_valid;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:675:\tstruct mxl862xx_pmapper pmapper;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-676-\t__le16 bridge_port_map[8];\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-709-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:710: * struct mxl862xx_cfg - Global Switch configuration Attributes\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:711: * @mac_table_age_timer: See \u0026enum mxl862xx_age_timer\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-712- * @age_timer: Custom MAC table aging timer in seconds\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-722- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:723:struct mxl862xx_cfg {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:724:\t__le32 mac_table_age_timer; /* enum mxl862xx_age_timer */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-725-\t__le32 age_timer;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-734-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:735: * enum mxl862xx_extended_vlan_filter_type - Extended VLAN filter tag type\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-736- * @MXL862XX_EXTENDEDVLAN_FILTER_TYPE_NORMAL: Normal tagged\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-740- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:741:enum mxl862xx_extended_vlan_filter_type {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-742-\tMXL862XX_EXTENDEDVLAN_FILTER_TYPE_NORMAL = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-748-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:749: * enum mxl862xx_extended_vlan_filter_tpid - Extended VLAN filter TPID\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-750- * @MXL862XX_EXTENDEDVLAN_FILTER_TPID_NO_FILTER: No TPID filter\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-753- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:754:enum mxl862xx_extended_vlan_filter_tpid {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-755-\tMXL862XX_EXTENDEDVLAN_FILTER_TPID_NO_FILTER = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-760-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:761: * enum mxl862xx_extended_vlan_filter_dei - Extended VLAN filter DEI\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-762- * @MXL862XX_EXTENDEDVLAN_FILTER_DEI_NO_FILTER: No DEI filter\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-765- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:766:enum mxl862xx_extended_vlan_filter_dei {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-767-\tMXL862XX_EXTENDEDVLAN_FILTER_DEI_NO_FILTER = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-772-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:773: * enum mxl862xx_extended_vlan_treatment_remove_tag - Tag removal action\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-774- * @MXL862XX_EXTENDEDVLAN_TREATMENT_NOT_REMOVE_TAG: Do not remove tag\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-778- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:779:enum mxl862xx_extended_vlan_treatment_remove_tag {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-780-\tMXL862XX_EXTENDEDVLAN_TREATMENT_NOT_REMOVE_TAG = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-786-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:787: * enum mxl862xx_extended_vlan_treatment_priority - Treatment priority mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-788- * @MXL862XX_EXTENDEDVLAN_TREATMENT_PRIORITY_VAL: Use explicit value\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-792- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:793:enum mxl862xx_extended_vlan_treatment_priority {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-794-\tMXL862XX_EXTENDEDVLAN_TREATMENT_PRIORITY_VAL = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-800-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:801: * enum mxl862xx_extended_vlan_treatment_vid - Treatment VID mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-802- * @MXL862XX_EXTENDEDVLAN_TREATMENT_VID_VAL: Use explicit VID value\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-805- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:806:enum mxl862xx_extended_vlan_treatment_vid {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-807-\tMXL862XX_EXTENDEDVLAN_TREATMENT_VID_VAL = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-812-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:813: * enum mxl862xx_extended_vlan_treatment_tpid - Treatment TPID mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-814- * @MXL862XX_EXTENDEDVLAN_TREATMENT_INNER_TPID: Copy from inner tag\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-818- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:819:enum mxl862xx_extended_vlan_treatment_tpid {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-820-\tMXL862XX_EXTENDEDVLAN_TREATMENT_INNER_TPID = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-826-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:827: * enum mxl862xx_extended_vlan_treatment_dei - Treatment DEI mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-828- * @MXL862XX_EXTENDEDVLAN_TREATMENT_INNER_DEI: Copy from inner tag\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-832- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:833:enum mxl862xx_extended_vlan_treatment_dei {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-834-\tMXL862XX_EXTENDEDVLAN_TREATMENT_INNER_DEI = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-840-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:841: * enum mxl862xx_extended_vlan_4_tpid_mode - 4-TPID mode selector\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-842- * @MXL862XX_EXTENDEDVLAN_TPID_VTETYPE_1: VLAN TPID type 1\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-846- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:847:enum mxl862xx_extended_vlan_4_tpid_mode {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-848-\tMXL862XX_EXTENDEDVLAN_TPID_VTETYPE_1 = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-854-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:855: * enum mxl862xx_extended_vlan_filter_ethertype - Filter EtherType match\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-856- * @MXL862XX_EXTENDEDVLAN_FILTER_ETHERTYPE_NO_FILTER: No filter\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-864- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:865:enum mxl862xx_extended_vlan_filter_ethertype {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-866-\tMXL862XX_EXTENDEDVLAN_FILTER_ETHERTYPE_NO_FILTER = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-876-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:877: * struct mxl862xx_extendedvlan_filter_vlan - Per-tag filter in Extended VLAN\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:878: * @type: Tag presence/type match (see \u0026enum mxl862xx_extended_vlan_filter_type)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-879- * @priority_enable: Enable PCP value matching\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-882- * @vid_val: VID value to match\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:883: * @tpid: TPID match mode (see \u0026enum mxl862xx_extended_vlan_filter_tpid)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:884: * @dei: DEI match mode (see \u0026enum mxl862xx_extended_vlan_filter_dei)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-885- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:886:struct mxl862xx_extendedvlan_filter_vlan {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-887-\t__le32 type;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-896-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:897: * struct mxl862xx_extendedvlan_filter - Extended VLAN filter configuration\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-898- * @original_packet_filter_mode: If true, filter on original (pre-treatment)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-899- * packet\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:900: * @filter_4_tpid_mode: 4-TPID mode (see \u0026enum mxl862xx_extended_vlan_4_tpid_mode)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-901- * @outer_vlan: Outer VLAN tag filter\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-903- * @ether_type: EtherType filter (see\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:904: * \u0026enum mxl862xx_extended_vlan_filter_ethertype)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-905- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:906:struct mxl862xx_extendedvlan_filter {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-907-\tu8 original_packet_filter_mode;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-908-\t__le32 filter_4_tpid_mode;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:909:\tstruct mxl862xx_extendedvlan_filter_vlan outer_vlan;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:910:\tstruct mxl862xx_extendedvlan_filter_vlan inner_vlan;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-911-\t__le32 ether_type;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-914-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:915: * struct mxl862xx_extendedvlan_treatment_vlan - Per-tag treatment in\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-916- * Extended VLAN\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-917- * @priority_mode: Priority assignment mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:918: * (see \u0026enum mxl862xx_extended_vlan_treatment_priority)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-919- * @priority_val: Priority value (when mode is VAL)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-920- * @vid_mode: VID assignment mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:921: * (see \u0026enum mxl862xx_extended_vlan_treatment_vid)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-922- * @vid_val: VID value (when mode is VAL)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-923- * @tpid: TPID assignment mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:924: * (see \u0026enum mxl862xx_extended_vlan_treatment_tpid)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-925- * @dei: DEI assignment mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:926: * (see \u0026enum mxl862xx_extended_vlan_treatment_dei)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-927- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:928:struct mxl862xx_extendedvlan_treatment_vlan {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-929-\t__le32 priority_mode;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-937-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:938: * struct mxl862xx_extendedvlan_treatment - Extended VLAN treatment\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-939- * @remove_tag: Tag removal action\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:940: * (see \u0026enum mxl862xx_extended_vlan_treatment_remove_tag)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-941- * @treatment_4_tpid_mode: 4-TPID treatment mode\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-958- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:959:struct mxl862xx_extendedvlan_treatment {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-960-\t__le32 remove_tag;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-962-\tu8 add_outer_vlan;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:963:\tstruct mxl862xx_extendedvlan_treatment_vlan outer_vlan;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-964-\tu8 add_inner_vlan;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:965:\tstruct mxl862xx_extendedvlan_treatment_vlan inner_vlan;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-966-\tu8 reassign_bridge_port;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-980-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:981: * struct mxl862xx_extendedvlan_alloc - Extended VLAN block allocation\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-982- * @number_of_entries: Number of entries to allocate (input) / allocated\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-988- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:989:struct mxl862xx_extendedvlan_alloc {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-990-\t__le16 number_of_entries;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-994-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:995: * struct mxl862xx_extendedvlan_config - Extended VLAN entry configuration\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-996- * @extended_vlan_block_id: Block ID from allocation\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1002- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1003:struct mxl862xx_extendedvlan_config {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1004-\t__le16 extended_vlan_block_id;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1005-\t__le16 entry_index;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1006:\tstruct mxl862xx_extendedvlan_filter filter;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1007:\tstruct mxl862xx_extendedvlan_treatment treatment;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1008-} __packed;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1010-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1011: * enum mxl862xx_vlan_filter_tci_mask - VLAN Filter TCI mask\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1012- * @MXL862XX_VLAN_FILTER_TCI_MASK_VID: TCI mask for VLAN ID\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1015- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1016:enum mxl862xx_vlan_filter_tci_mask {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1017-\tMXL862XX_VLAN_FILTER_TCI_MASK_VID = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1022-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1023: * struct mxl862xx_vlanfilter_alloc - VLAN Filter block allocation\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1024- * @number_of_entries: Number of entries to allocate (input) / allocated\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1034- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1035:struct mxl862xx_vlanfilter_alloc {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1036-\t__le16 number_of_entries;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1043-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1044: * struct mxl862xx_vlanfilter_config - VLAN Filter entry configuration\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1045- * @vlan_filter_block_id: Block ID from allocation\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1047- * @vlan_filter_mask: TCI field(s) to match (see\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1048: * \u0026enum mxl862xx_vlan_filter_tci_mask)\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1049- * @val: TCI value(s) to match (VID, PCP, or full TCI depending on mask)\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1054- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1055:struct mxl862xx_vlanfilter_config {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1056-\t__le16 vlan_filter_block_id;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1057-\t__le16 entry_index;\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1058:\t__le32 vlan_filter_mask; /* enum mxl862xx_vlan_filter_tci_mask */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1059-\t__le32 val;\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1063-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1064: * enum mxl862xx_ss_sp_tag_mask - Special tag valid field indicator bits\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1065- * @MXL862XX_SS_SP_TAG_MASK_RX: valid RX special tag mode\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1069- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1070:enum mxl862xx_ss_sp_tag_mask {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1071-\tMXL862XX_SS_SP_TAG_MASK_RX = BIT(0),\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1077-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1078: * enum mxl862xx_ss_sp_tag_rx - RX special tag mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1079- * @MXL862XX_SS_SP_TAG_RX_NO_TAG_NO_INSERT: packet does NOT have special\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1085- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1086:enum mxl862xx_ss_sp_tag_rx {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1087-\tMXL862XX_SS_SP_TAG_RX_NO_TAG_NO_INSERT = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1092-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1093: * enum mxl862xx_ss_sp_tag_tx - TX special tag mode\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1094- * @MXL862XX_SS_SP_TAG_TX_NO_TAG_NO_REMOVE: packet does NOT have special\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1102- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1103:enum mxl862xx_ss_sp_tag_tx {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1104-\tMXL862XX_SS_SP_TAG_TX_NO_TAG_NO_REMOVE = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1110-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1111: * enum mxl862xx_ss_sp_tag_rx_pen - RX special tag info over preamble\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1112- * @MXL862XX_SS_SP_TAG_RX_PEN_ALL_0: special tag info inserted from byte 2\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1122- */\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1123:enum mxl862xx_ss_sp_tag_rx_pen {\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1124-\tMXL862XX_SS_SP_TAG_RX_PEN_ALL_0 = 0,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1130-/**\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h:1131: * struct mxl862xx_ss_sp_tag - Special tag port settings\ndrivers/net/dsa/mxl862xx/mxl862xx-api.h-1132- * @pid: port ID (1~16)\n\n"
} |
| 19/2 | 2026/08/24 16:35 | llm | patch-evaluator |
10mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 40411 output: 31 thoughts: 264 Thoughts: **My Current Line of Reasoning** Okay, so I'm thinking about how to test an MDIO device, specifically the `mxl862xx`, using syzkaller. The initial roadblock is that syzkaller doesn't seem to have a *direct*, built-in method for probing or interacting with MDIO devices unless a specific syzlang description exists for it, or it's a platform device that can be injected. The natural tendency would be to look for injection methods; could it be done via netlink? No, that's not how MDIO usually works; it's typically tied to a specific MDIO bus. So, the next question is, can I trick syzkaller into seeing an MDIO device? I'm familiar with syzkaller's capabilities - it has `syz_genetlink` for generic netlink, but that's not what I need here. I know it can inject some devices through `syz_usb_connect` for USB, `syz_80211_inject_frame` for mac80211, and while I thought it had something for PCI, it doesn't quite have a "connect" primitive like that. It has some kind of vhci thing, but that's not what I need. QEMU PCI devices are also fixed, not easily injected. Realistically, syzkaller *can* test drivers if they're exposed as platform devices, maybe instantiated via a pseudo-device mechanism, or if they're just present in the QEMU machine, but that doesn't apply to this `mxl862xx`. It's definitely an MDIO device. My next step is to see if there's any existing syzlang description out there for MDIO or DSA. If there is, that's the obvious path to explore. |
| 20/2 | 2026/08/24 16:46 | tool | grepper |
0mArgs:{
"Expression": "mxl862xx",
"PathPrefix": "net/dsa/"
}Results: {
"Output": "net/dsa/Makefile=31=obj-$(CONFIG_NET_DSA_TAG_MTK) += tag_mtk.o\nnet/dsa/Makefile:32:obj-$(CONFIG_NET_DSA_TAG_MXL_862XX) += tag_mxl862xx.o\nnet/dsa/Makefile-33-obj-$(CONFIG_NET_DSA_TAG_MXL_GSW1XX) += tag_mxl-gsw1xx.o\n--\nnet/dsa/tag_mxl862xx.c-14-\nnet/dsa/tag_mxl862xx.c:15:#define MXL862_NAME\t\"mxl862xx\"\nnet/dsa/tag_mxl862xx.c-16-\n"
} |
| 21/2 | 2026/08/24 16:46 | llm | patch-evaluator |
9mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 41309 output: 25 thoughts: 102 Thoughts: **MDIO Device Driver in a Virtualized World** Okay, so I'm looking at this driver, and it's an MDIO device driver. My immediate thought is, "Can I even get to this thing in a virtualized environment?" Usually, these hardware-specific MDIO drivers, like for PHYs or DSA switches, they're a pain to probe in QEMU unless QEMU's got a model of the specific hardware or there's some kind of software MDIO bus abstraction that lets you spin up arbitrary MDIO devices. Now, I'm pretty sure I've seen something like `mdio-mockup` in Linux before, or something similar to that. I just need to check if that `mdio-mockup` driver is actually available and if it's going to work for me. That's the key to making this testing manageable. Let's see if it's there. |
| 22/2 | 2026/08/24 16:55 | tool | grepper |
0mError:no matches Args: {
"Expression": "mdio.*mockup",
"PathPrefix": ""
}Results: {
"error": "no matches"
} |
| 23/2 | 2026/08/24 16:56 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 41647 output: 28 thoughts: 16 Thoughts: Okay, here's my interpretation of that thought process, assuming I'm the expert: **Investigating Network PHY Driver Possibilities** Hmm, I'm thinking about network PHY drivers. Specifically, I'm trying to figure out where a specific MDIO-related driver might live within the kernel's network subsystem. I immediately go to the `drivers/net/phy/` directory. That's the logical place to look for anything related to PHY (Physical Layer) management in networking, and MDIO (Management Data Input/Output) is the standard interface for configuring and controlling these chips. So, the question becomes: is there a specific MDIO driver I'm looking for in that spot? That's what I'm focused on investigating. I'll need to explore that folder now. |
| 24/2 | 2026/08/24 16:56 | tool | grepper |
0mArgs:{
"Expression": "mdio",
"PathPrefix": "drivers/net/phy/"
}Results: {
"Output": "\nFull output is too long, showing 500 out of 4779 lines.\nUse more precise expression if possible.\n\ndrivers/net/phy/Makefile=4=libphy-y\t\t\t:= phy.o phy-c45.o phy-core.o phy_device.o \\\ndrivers/net/phy/Makefile-5-\t\t\t\t linkmode.o phy_link_topology.o \\\ndrivers/net/phy/Makefile:6:\t\t\t\t phy_caps.o mdio_bus_provider.o phy_port.o \\\ndrivers/net/phy/Makefile:7:\t\t\t\t mdio_device.o\ndrivers/net/phy/Makefile-8-\n--\ndrivers/net/phy/Makefile=16=libphy-$(CONFIG_OPEN_ALLIANCE_HELPERS) += open_alliance_helpers.o\ndrivers/net/phy/Makefile-17-\ndrivers/net/phy/Makefile:18:obj-$(CONFIG_PHYLIB)\t\t+= mdio_bus.o\ndrivers/net/phy/Makefile-19-obj-$(CONFIG_PHYLINK)\t\t+= phylink.o\ndrivers/net/phy/Makefile=20=obj-$(CONFIG_PHYLIB)\t\t+= libphy.o\ndrivers/net/phy/Makefile:21:obj-$(CONFIG_PHYLIB)\t\t+= mdio_devres.o\ndrivers/net/phy/Makefile-22-obj-$(CONFIG_PHY_PACKAGE)\t+= phy_package.o\n--\ndrivers/net/phy/adin.c=252=static u32 adin_get_reg_value(struct phy_device *phydev,\n--\ndrivers/net/phy/adin.c-256-{\ndrivers/net/phy/adin.c:257:\tstruct device *dev = \u0026phydev-\u003emdio.dev;\ndrivers/net/phy/adin.c-258-\tu32 val;\n--\ndrivers/net/phy/adin.c=501=static int adin_config_clk_out(struct phy_device *phydev)\ndrivers/net/phy/adin.c-502-{\ndrivers/net/phy/adin.c:503:\tstruct device *dev = \u0026phydev-\u003emdio.dev;\ndrivers/net/phy/adin.c-504-\tconst char *val = NULL;\n--\ndrivers/net/phy/adin.c=528=static int adin_config_zptm100(struct phy_device *phydev)\ndrivers/net/phy/adin.c-529-{\ndrivers/net/phy/adin.c:530:\tstruct device *dev = \u0026phydev-\u003emdio.dev;\ndrivers/net/phy/adin.c-531-\n--\ndrivers/net/phy/adin.c=648=static int adin_read_mmd(struct phy_device *phydev, int devad, u16 regnum)\ndrivers/net/phy/adin.c-649-{\ndrivers/net/phy/adin.c:650:\tstruct mii_bus *bus = phydev-\u003emdio.bus;\ndrivers/net/phy/adin.c:651:\tint phy_addr = phydev-\u003emdio.addr;\ndrivers/net/phy/adin.c-652-\tint adin_regnum;\n--\ndrivers/net/phy/adin.c-658-\ndrivers/net/phy/adin.c:659:\terr = __mdiobus_write(bus, phy_addr, ADIN1300_MII_EXT_REG_PTR,\ndrivers/net/phy/adin.c-660-\t\t\t adin_regnum);\n--\ndrivers/net/phy/adin.c-663-\ndrivers/net/phy/adin.c:664:\treturn __mdiobus_read(bus, phy_addr, ADIN1300_MII_EXT_REG_DATA);\ndrivers/net/phy/adin.c-665-}\n--\ndrivers/net/phy/adin.c=667=static int adin_write_mmd(struct phy_device *phydev, int devad, u16 regnum,\n--\ndrivers/net/phy/adin.c-669-{\ndrivers/net/phy/adin.c:670:\tstruct mii_bus *bus = phydev-\u003emdio.bus;\ndrivers/net/phy/adin.c:671:\tint phy_addr = phydev-\u003emdio.addr;\ndrivers/net/phy/adin.c-672-\tint adin_regnum;\n--\ndrivers/net/phy/adin.c-678-\ndrivers/net/phy/adin.c:679:\terr = __mdiobus_write(bus, phy_addr, ADIN1300_MII_EXT_REG_PTR,\ndrivers/net/phy/adin.c-680-\t\t\t adin_regnum);\n--\ndrivers/net/phy/adin.c-683-\ndrivers/net/phy/adin.c:684:\treturn __mdiobus_write(bus, phy_addr, ADIN1300_MII_EXT_REG_DATA, val);\ndrivers/net/phy/adin.c-685-}\n--\ndrivers/net/phy/adin.c=890=static int adin_probe(struct phy_device *phydev)\ndrivers/net/phy/adin.c-891-{\ndrivers/net/phy/adin.c:892:\tstruct device *dev = \u0026phydev-\u003emdio.dev;\ndrivers/net/phy/adin.c-893-\tstruct adin_priv *priv;\n--\ndrivers/net/phy/adin.c=1059=module_phy_driver(adin_driver);\ndrivers/net/phy/adin.c-1060-\ndrivers/net/phy/adin.c:1061:static const struct mdio_device_id __maybe_unused adin_tbl[] = {\ndrivers/net/phy/adin.c-1062-\t{ PHY_ID_MATCH_MODEL(PHY_ID_ADIN1200) },\n--\ndrivers/net/phy/adin.c-1066-\ndrivers/net/phy/adin.c:1067:MODULE_DEVICE_TABLE(mdio, adin_tbl);\ndrivers/net/phy/adin.c-1068-MODULE_DESCRIPTION(\"Analog Devices Industrial Ethernet PHY driver\");\n--\ndrivers/net/phy/adin1100.c=244=static int adin_get_features(struct phy_device *phydev)\n--\ndrivers/net/phy/adin1100.c-246-\tstruct adin_priv *priv = phydev-\u003epriv;\ndrivers/net/phy/adin1100.c:247:\tstruct device *dev = \u0026phydev-\u003emdio.dev;\ndrivers/net/phy/adin1100.c-248-\tint ret;\n--\ndrivers/net/phy/adin1100.c=309=static int adin_probe(struct phy_device *phydev)\ndrivers/net/phy/adin1100.c-310-{\ndrivers/net/phy/adin1100.c:311:\tstruct device *dev = \u0026phydev-\u003emdio.dev;\ndrivers/net/phy/adin1100.c-312-\tstruct adin_priv *priv;\n--\ndrivers/net/phy/adin1100.c=343=module_phy_driver(adin_driver);\ndrivers/net/phy/adin1100.c-344-\ndrivers/net/phy/adin1100.c:345:static const struct mdio_device_id __maybe_unused adin_tbl[] = {\ndrivers/net/phy/adin1100.c-346-\t{ PHY_ID_MATCH_MODEL(PHY_ID_ADIN1100) },\n--\ndrivers/net/phy/adin1100.c-351-\ndrivers/net/phy/adin1100.c:352:MODULE_DEVICE_TABLE(mdio, adin_tbl);\ndrivers/net/phy/adin1100.c-353-MODULE_DESCRIPTION(\"Analog Devices Industrial Ethernet T1L PHY driver\");\n--\ndrivers/net/phy/adin1140-phy.c=61=module_phy_driver(adin1140_driver);\ndrivers/net/phy/adin1140-phy.c-62-\ndrivers/net/phy/adin1140-phy.c:63:static const struct mdio_device_id __maybe_unused adin1140_tbl[] = {\ndrivers/net/phy/adin1140-phy.c-64-\t{ PHY_ID_MATCH_EXACT(ADIN1140_PHY_ID) },\n--\ndrivers/net/phy/adin1140-phy.c-67-\ndrivers/net/phy/adin1140-phy.c:68:MODULE_DEVICE_TABLE(mdio, adin1140_tbl);\ndrivers/net/phy/adin1140-phy.c-69-\n--\ndrivers/net/phy/air_an8801.c=652=static irqreturn_t an8801r_handle_interrupt(struct phy_device *phydev)\n--\ndrivers/net/phy/air_an8801.c-667-\tif (irq_status \u0026 AN8801_IRQ_WAKE_MAGICPKT) {\ndrivers/net/phy/air_an8801.c:668:\t\tpm_wakeup_event(\u0026phydev-\u003emdio.dev, 0);\ndrivers/net/phy/air_an8801.c-669-\t\tirq_handled = true;\n--\ndrivers/net/phy/air_an8801.c=680=static void an8801r_get_wol(struct phy_device *phydev,\n--\ndrivers/net/phy/air_an8801.c-688-\t */\ndrivers/net/phy/air_an8801.c:689:\tif (!device_can_wakeup(\u0026phydev-\u003emdio.dev)) {\ndrivers/net/phy/air_an8801.c-690-\t\twol-\u003esupported = 0;\n--\ndrivers/net/phy/air_an8801.c=708=static int an8801r_set_wol(struct phy_device *phydev,\n--\ndrivers/net/phy/air_an8801.c-716-\ndrivers/net/phy/air_an8801.c:717:\tif (!device_can_wakeup(\u0026phydev-\u003emdio.dev))\ndrivers/net/phy/air_an8801.c-718-\t\treturn -EOPNOTSUPP;\n--\ndrivers/net/phy/air_an8801.c-778-\ndrivers/net/phy/air_an8801.c:779:\treturn device_set_wakeup_enable(\u0026phydev-\u003emdio.dev,\ndrivers/net/phy/air_an8801.c-780-\t\t\t\t\tpriv-\u003ewake_magic_enabled);\n--\ndrivers/net/phy/air_an8801.c=783=static int an8801r_of_init_leds(struct phy_device *phydev, u8 *led_cfg)\ndrivers/net/phy/air_an8801.c-784-{\ndrivers/net/phy/air_an8801.c:785:\tstruct device *dev = \u0026phydev-\u003emdio.dev;\ndrivers/net/phy/air_an8801.c-786-\tstruct device_node *np = dev-\u003eof_node;\n--\ndrivers/net/phy/air_an8801.c=1034=static int an8801r_probe(struct phy_device *phydev)\ndrivers/net/phy/air_an8801.c-1035-{\ndrivers/net/phy/air_an8801.c:1036:\tstruct device *dev = \u0026phydev-\u003emdio.dev;\ndrivers/net/phy/air_an8801.c-1037-\tstruct an8801r_priv *priv;\n--\ndrivers/net/phy/air_an8801.c=1060=static int an8801r_suspend(struct phy_device *phydev)\n--\ndrivers/net/phy/air_an8801.c-1067-\t */\ndrivers/net/phy/air_an8801.c:1068:\tif (device_may_wakeup(\u0026phydev-\u003emdio.dev)) {\ndrivers/net/phy/air_an8801.c-1069-\t\tpriv-\u003ewake_lnkchg_enabled = false;\n--\ndrivers/net/phy/air_an8801.c=1091=static int an8801r_resume(struct phy_device *phydev)\n--\ndrivers/net/phy/air_an8801.c-1102-\t */\ndrivers/net/phy/air_an8801.c:1103:\tif (device_may_wakeup(\u0026phydev-\u003emdio.dev)) {\ndrivers/net/phy/air_an8801.c-1104-\t\tpriv-\u003ewake_lnkchg_enabled = true;\n--\ndrivers/net/phy/air_an8801.c=1146=module_phy_driver(airoha_driver);\ndrivers/net/phy/air_an8801.c-1147-\ndrivers/net/phy/air_an8801.c:1148:static struct mdio_device_id __maybe_unused an8801_tbl[] = {\ndrivers/net/phy/air_an8801.c-1149-\t{ PHY_ID_MATCH_MODEL(AN8801R_PHY_ID) },\n--\ndrivers/net/phy/air_an8801.c-1151-};\ndrivers/net/phy/air_an8801.c:1152:MODULE_DEVICE_TABLE(mdio, an8801_tbl);\ndrivers/net/phy/air_an8801.c-1153-\n--\ndrivers/net/phy/air_en8811h.c=197=struct en8811h_priv {\n--\ndrivers/net/phy/air_en8811h.c-203-\tunsigned int\t\tcko_is_enabled;\ndrivers/net/phy/air_en8811h.c:204:\tstruct mdio_device\t*pbusdev;\ndrivers/net/phy/air_en8811h.c-205-};\n--\ndrivers/net/phy/air_en8811h.c=239=static const unsigned long en8811h_led_trig = BIT(TRIGGER_NETDEV_FULL_DUPLEX) |\n--\ndrivers/net/phy/air_en8811h.c-247-\ndrivers/net/phy/air_en8811h.c:248:static int __air_pbus_reg_write(struct mdio_device *mdiodev,\ndrivers/net/phy/air_en8811h.c-249-\t\t\t\tu32 pbus_reg, u32 pbus_data)\n--\ndrivers/net/phy/air_en8811h.c-252-\ndrivers/net/phy/air_en8811h.c:253:\tret = __mdiobus_write(mdiodev-\u003ebus, mdiodev-\u003eaddr, AIR_EXT_PAGE_ACCESS,\ndrivers/net/phy/air_en8811h.c-254-\t\t\t upper_16_bits(pbus_reg));\n--\ndrivers/net/phy/air_en8811h.c-257-\ndrivers/net/phy/air_en8811h.c:258:\tret = __mdiobus_write(mdiodev-\u003ebus, mdiodev-\u003eaddr, AIR_PBUS_ADDR_HIGH,\ndrivers/net/phy/air_en8811h.c-259-\t\t\t FIELD_GET(AIR_PBUS_REG_ADDR_HIGH_MASK, pbus_reg));\n--\ndrivers/net/phy/air_en8811h.c-262-\ndrivers/net/phy/air_en8811h.c:263:\tret = __mdiobus_write(mdiodev-\u003ebus, mdiodev-\u003eaddr,\ndrivers/net/phy/air_en8811h.c-264-\t\t\t FIELD_GET(AIR_PBUS_REG_ADDR_LOW_MASK, pbus_reg),\n--\ndrivers/net/phy/air_en8811h.c-268-\ndrivers/net/phy/air_en8811h.c:269:\treturn __mdiobus_write(mdiodev-\u003ebus, mdiodev-\u003eaddr, AIR_PBUS_DATA_HIGH,\ndrivers/net/phy/air_en8811h.c-270-\t\t\t upper_16_bits(pbus_data));\n--\ndrivers/net/phy/air_en8811h.c=327=static int en8811h_wait_mcu_ready(struct phy_device *phydev)\n--\ndrivers/net/phy/air_en8811h.c-335-\ndrivers/net/phy/air_en8811h.c:336:\t/* Because of mdio-lock, may have to wait for multiple loads */\ndrivers/net/phy/air_en8811h.c-337-\tret = phy_read_mmd_poll_timeout(phydev, MDIO_MMD_VEND1,\n--\ndrivers/net/phy/air_en8811h.c=397=static int an8811hb_load_file(struct phy_device *phydev, const char *name,\n--\ndrivers/net/phy/air_en8811h.c-399-{\ndrivers/net/phy/air_en8811h.c:400:\tstruct device *dev = \u0026phydev-\u003emdio.dev;\ndrivers/net/phy/air_en8811h.c-401-\tconst struct firmware *fw;\n--\ndrivers/net/phy/air_en8811h.c=413=static int an8811hb_mcu_assert(struct phy_device *phydev)\n--\ndrivers/net/phy/air_en8811h.c-417-\ndrivers/net/phy/air_en8811h.c:418:\tphy_lock_mdio_bus(phydev);\ndrivers/net/phy/air_en8811h.c-419-\n--\ndrivers/net/phy/air_en8811h.c-432-unlock:\ndrivers/net/phy/air_en8811h.c:433:\tphy_unlock_mdio_bus(phydev);\ndrivers/net/phy/air_en8811h.c-434-\treturn ret;\n--\ndrivers/net/phy/air_en8811h.c=437=static int an8811hb_mcu_deassert(struct phy_device *phydev)\n--\ndrivers/net/phy/air_en8811h.c-441-\ndrivers/net/phy/air_en8811h.c:442:\tphy_lock_mdio_bus(phydev);\ndrivers/net/phy/air_en8811h.c-443-\n--\ndrivers/net/phy/air_en8811h.c-457-unlock:\ndrivers/net/phy/air_en8811h.c:458:\tphy_unlock_mdio_bus(phydev);\ndrivers/net/phy/air_en8811h.c-459-\treturn ret;\n--\ndrivers/net/phy/air_en8811h.c=502=static int en8811h_load_firmware(struct phy_device *phydev)\ndrivers/net/phy/air_en8811h.c-503-{\ndrivers/net/phy/air_en8811h.c:504:\tstruct device *dev = \u0026phydev-\u003emdio.dev;\ndrivers/net/phy/air_en8811h.c-505-\tconst struct firmware *fw1, *fw2;\n--\ndrivers/net/phy/air_en8811h.c=1074=static int an8811hb_probe(struct phy_device *phydev)\ndrivers/net/phy/air_en8811h.c-1075-{\ndrivers/net/phy/air_en8811h.c:1076:\tstruct mdio_device *mdiodev;\ndrivers/net/phy/air_en8811h.c-1077-\tstruct en8811h_priv *priv;\n--\ndrivers/net/phy/air_en8811h.c-1079-\ndrivers/net/phy/air_en8811h.c:1080:\tpriv = devm_kzalloc(\u0026phydev-\u003emdio.dev, sizeof(struct en8811h_priv),\ndrivers/net/phy/air_en8811h.c-1081-\t\t\t GFP_KERNEL);\n--\ndrivers/net/phy/air_en8811h.c-1092-\t */\ndrivers/net/phy/air_en8811h.c:1093:\tmdiodev = mdio_device_create(phydev-\u003emdio.bus,\ndrivers/net/phy/air_en8811h.c:1094:\t\t\t\t phydev-\u003emdio.addr + EN8811H_PBUS_ADDR_OFFS);\ndrivers/net/phy/air_en8811h.c:1095:\tif (IS_ERR(mdiodev))\ndrivers/net/phy/air_en8811h.c:1096:\t\treturn PTR_ERR(mdiodev);\ndrivers/net/phy/air_en8811h.c-1097-\ndrivers/net/phy/air_en8811h.c:1098:\tret = mdio_device_register(mdiodev);\ndrivers/net/phy/air_en8811h.c-1099-\tif (ret)\n--\ndrivers/net/phy/air_en8811h.c-1101-\ndrivers/net/phy/air_en8811h.c:1102:\tpriv-\u003epbusdev = mdiodev;\ndrivers/net/phy/air_en8811h.c-1103-\n--\ndrivers/net/phy/air_en8811h.c-1123-\t/* Co-Clock Output */\ndrivers/net/phy/air_en8811h.c:1124:\tret = an8811hb_clk_provider_setup(\u0026phydev-\u003emdio.dev, \u0026priv-\u003ehw);\ndrivers/net/phy/air_en8811h.c-1125-\tif (ret)\n--\ndrivers/net/phy/air_en8811h.c-1137-err_dev_create:\ndrivers/net/phy/air_en8811h.c:1138:\tmdio_device_remove(mdiodev);\ndrivers/net/phy/air_en8811h.c-1139-\ndrivers/net/phy/air_en8811h.c-1140-err_dev_free:\ndrivers/net/phy/air_en8811h.c:1141:\tmdio_device_free(mdiodev);\ndrivers/net/phy/air_en8811h.c-1142-\treturn ret;\n--\ndrivers/net/phy/air_en8811h.c=1145=static int en8811h_probe(struct phy_device *phydev)\n--\ndrivers/net/phy/air_en8811h.c-1149-\ndrivers/net/phy/air_en8811h.c:1150:\tpriv = devm_kzalloc(\u0026phydev-\u003emdio.dev, sizeof(struct en8811h_priv),\ndrivers/net/phy/air_en8811h.c-1151-\t\t\t GFP_KERNEL);\n--\ndrivers/net/phy/air_en8811h.c-1171-\t/* Co-Clock Output */\ndrivers/net/phy/air_en8811h.c:1172:\tret = en8811h_clk_provider_setup(\u0026phydev-\u003emdio.dev, \u0026priv-\u003ehw);\ndrivers/net/phy/air_en8811h.c-1173-\tif (ret)\n--\ndrivers/net/phy/air_en8811h.c=1186=static int an8811hb_config_serdes_polarity(struct phy_device *phydev)\ndrivers/net/phy/air_en8811h.c-1187-{\ndrivers/net/phy/air_en8811h.c:1188:\tstruct device *dev = \u0026phydev-\u003emdio.dev;\ndrivers/net/phy/air_en8811h.c-1189-\tu32 pbus_value = 0;\n--\ndrivers/net/phy/air_en8811h.c=1217=static int en8811h_config_serdes_polarity(struct phy_device *phydev)\ndrivers/net/phy/air_en8811h.c-1218-{\ndrivers/net/phy/air_en8811h.c:1219:\tstruct device *dev = \u0026phydev-\u003emdio.dev;\ndrivers/net/phy/air_en8811h.c-1220-\tunsigned int pol, default_pol;\n--\ndrivers/net/phy/air_en8811h.c=1498=static void an8811hb_remove(struct phy_device *phydev)\n--\ndrivers/net/phy/air_en8811h.c-1502-\tif (priv-\u003epbusdev) {\ndrivers/net/phy/air_en8811h.c:1503:\t\tmdio_device_remove(priv-\u003epbusdev);\ndrivers/net/phy/air_en8811h.c:1504:\t\tmdio_device_free(priv-\u003epbusdev);\ndrivers/net/phy/air_en8811h.c-1505-\t}\n--\ndrivers/net/phy/air_en8811h.c=1553=module_phy_driver(en8811h_driver);\ndrivers/net/phy/air_en8811h.c-1554-\ndrivers/net/phy/air_en8811h.c:1555:static const struct mdio_device_id __maybe_unused en8811h_tbl[] = {\ndrivers/net/phy/air_en8811h.c-1556-\t{ PHY_ID_MATCH_MODEL(EN8811H_PHY_ID) },\n--\ndrivers/net/phy/air_en8811h.c-1560-\ndrivers/net/phy/air_en8811h.c:1561:MODULE_DEVICE_TABLE(mdio, en8811h_tbl);\ndrivers/net/phy/air_en8811h.c-1562-MODULE_FIRMWARE(EN8811H_MD32_DM);\n--\ndrivers/net/phy/amd.c=112=module_phy_driver(am79c_drivers);\ndrivers/net/phy/amd.c-113-\ndrivers/net/phy/amd.c:114:static const struct mdio_device_id __maybe_unused amd_tbl[] = {\ndrivers/net/phy/amd.c-115-\t{ PHY_ID_AC101L, 0xfffffff0 },\n--\ndrivers/net/phy/amd.c-119-\ndrivers/net/phy/amd.c:120:MODULE_DEVICE_TABLE(mdio, amd_tbl);\n--\ndrivers/net/phy/aquantia/aquantia_firmware.c=296=static int aqr_firmware_load_nvmem(struct phy_device *phydev)\n--\ndrivers/net/phy/aquantia/aquantia_firmware.c-302-\ndrivers/net/phy/aquantia/aquantia_firmware.c:303:\tcell = nvmem_cell_get(\u0026phydev-\u003emdio.dev, \"firmware\");\ndrivers/net/phy/aquantia/aquantia_firmware.c-304-\tif (IS_ERR(cell))\n--\ndrivers/net/phy/aquantia/aquantia_firmware.c=324=static int aqr_firmware_load_fs(struct phy_device *phydev)\ndrivers/net/phy/aquantia/aquantia_firmware.c-325-{\ndrivers/net/phy/aquantia/aquantia_firmware.c:326:\tstruct device *dev = \u0026phydev-\u003emdio.dev;\ndrivers/net/phy/aquantia/aquantia_firmware.c-327-\tconst struct firmware *fw;\n--\ndrivers/net/phy/aquantia/aquantia_hwmon.c=190=int aqr_hwmon_probe(struct phy_device *phydev)\ndrivers/net/phy/aquantia/aquantia_hwmon.c-191-{\ndrivers/net/phy/aquantia/aquantia_hwmon.c:192:\tstruct device *dev = \u0026phydev-\u003emdio.dev;\ndrivers/net/phy/aquantia/aquantia_hwmon.c-193-\tstruct device *hwmon_dev;\n--\ndrivers/net/phy/aquantia/aquantia_main.c=750=static int aqr107_config_mdi(struct phy_device *phydev)\ndrivers/net/phy/aquantia/aquantia_main.c-751-{\ndrivers/net/phy/aquantia/aquantia_main.c:752:\tstruct device_node *np = phydev-\u003emdio.dev.of_node;\ndrivers/net/phy/aquantia/aquantia_main.c-753-\tu32 mdi_conf;\n--\ndrivers/net/phy/aquantia/aquantia_main.c=1164=static int aqr107_probe(struct phy_device *phydev)\n--\ndrivers/net/phy/aquantia/aquantia_main.c-1167-\ndrivers/net/phy/aquantia/aquantia_main.c:1168:\tphydev-\u003epriv = devm_kzalloc(\u0026phydev-\u003emdio.dev,\ndrivers/net/phy/aquantia/aquantia_main.c-1169-\t\t\t\t sizeof(struct aqr107_priv), GFP_KERNEL);\n--\ndrivers/net/phy/aquantia/aquantia_main.c=1565=module_phy_driver(aqr_driver);\ndrivers/net/phy/aquantia/aquantia_main.c-1566-\ndrivers/net/phy/aquantia/aquantia_main.c:1567:static const struct mdio_device_id __maybe_unused aqr_tbl[] = {\ndrivers/net/phy/aquantia/aquantia_main.c-1568-\t{ PHY_ID_MATCH_MODEL(PHY_ID_AQ1202) },\n--\ndrivers/net/phy/aquantia/aquantia_main.c-1588-\ndrivers/net/phy/aquantia/aquantia_main.c:1589:MODULE_DEVICE_TABLE(mdio, aqr_tbl);\ndrivers/net/phy/aquantia/aquantia_main.c-1590-\n--\ndrivers/net/phy/as21xxx.c=297=static int aeon_firmware_boot(struct phy_device *phydev, const u8 *data,\n--\ndrivers/net/phy/as21xxx.c-321-\tif (val \u003e 1) {\ndrivers/net/phy/as21xxx.c:322:\t\tphydev_err(phydev, \"wrong origin mdio_indirect_status: %x\\n\", val);\ndrivers/net/phy/as21xxx.c-323-\t\treturn -EINVAL;\n--\ndrivers/net/phy/as21xxx.c=352=static int aeon_firmware_load(struct phy_device *phydev)\ndrivers/net/phy/as21xxx.c-353-{\ndrivers/net/phy/as21xxx.c:354:\tstruct device *dev = \u0026phydev-\u003emdio.dev;\ndrivers/net/phy/as21xxx.c-355-\tconst struct firmware *fw;\n--\ndrivers/net/phy/as21xxx.c=603=static int as21xxx_probe(struct phy_device *phydev)\n--\ndrivers/net/phy/as21xxx.c-607-\ndrivers/net/phy/as21xxx.c:608:\tpriv = devm_kzalloc(\u0026phydev-\u003emdio.dev,\ndrivers/net/phy/as21xxx.c-609-\t\t\t sizeof(*priv), GFP_KERNEL);\n--\ndrivers/net/phy/as21xxx.c-613-\ndrivers/net/phy/as21xxx.c:614:\tret = devm_mutex_init(\u0026phydev-\u003emdio.dev,\ndrivers/net/phy/as21xxx.c-615-\t\t\t \u0026priv-\u003eipc_lock);\n--\ndrivers/net/phy/as21xxx.c=1078=module_phy_driver(as21xxx_drivers);\ndrivers/net/phy/as21xxx.c-1079-\ndrivers/net/phy/as21xxx.c:1080:static struct mdio_device_id __maybe_unused as21xxx_tbl[] = {\ndrivers/net/phy/as21xxx.c-1081-\t{ PHY_ID_MATCH_VENDOR(PHY_VENDOR_AEONSEMI) },\n--\ndrivers/net/phy/as21xxx.c-1083-};\ndrivers/net/phy/as21xxx.c:1084:MODULE_DEVICE_TABLE(mdio, as21xxx_tbl);\ndrivers/net/phy/as21xxx.c-1085-\n--\ndrivers/net/phy/ax88796b.c=121=module_phy_driver(asix_driver);\ndrivers/net/phy/ax88796b.c-122-\ndrivers/net/phy/ax88796b.c:123:static const struct mdio_device_id __maybe_unused asix_tbl[] = {\ndrivers/net/phy/ax88796b.c-124-\t{ PHY_ID_MATCH_EXACT(PHY_ID_ASIX_AX88772A) },\n--\ndrivers/net/phy/ax88796b.c-129-\ndrivers/net/phy/ax88796b.c:130:MODULE_DEVICE_TABLE(mdio, asix_tbl);\n--\ndrivers/net/phy/bcm-cygnus.c=233=static int bcm_omega_probe(struct phy_device *phydev)\n--\ndrivers/net/phy/bcm-cygnus.c-236-\ndrivers/net/phy/bcm-cygnus.c:237:\tpriv = devm_kzalloc(\u0026phydev-\u003emdio.dev, sizeof(*priv), GFP_KERNEL);\ndrivers/net/phy/bcm-cygnus.c-238-\tif (!priv)\n--\ndrivers/net/phy/bcm-cygnus.c-242-\ndrivers/net/phy/bcm-cygnus.c:243:\tpriv-\u003estats = devm_kcalloc(\u0026phydev-\u003emdio.dev,\ndrivers/net/phy/bcm-cygnus.c-244-\t\t\t\t bcm_phy_get_sset_count(phydev), sizeof(u64),\n--\ndrivers/net/phy/bcm-cygnus.c=252=static struct phy_driver bcm_cygnus_phy_driver[] = {\n--\ndrivers/net/phy/bcm-cygnus.c-280-\ndrivers/net/phy/bcm-cygnus.c:281:static const struct mdio_device_id __maybe_unused bcm_cygnus_phy_tbl[] = {\ndrivers/net/phy/bcm-cygnus.c-282-\t{ PHY_ID_BCM_CYGNUS, 0xfffffff0, },\n--\ndrivers/net/phy/bcm-cygnus.c-285-};\ndrivers/net/phy/bcm-cygnus.c:286:MODULE_DEVICE_TABLE(mdio, bcm_cygnus_phy_tbl);\ndrivers/net/phy/bcm-cygnus.c-287-\n--\ndrivers/net/phy/bcm-phy-lib.c-10-#include \u003clinux/export.h\u003e\ndrivers/net/phy/bcm-phy-lib.c:11:#include \u003clinux/mdio.h\u003e\ndrivers/net/phy/bcm-phy-lib.c-12-#include \u003clinux/module.h\u003e\n--\ndrivers/net/phy/bcm-phy-lib.c=33=int bcm_phy_write_exp(struct phy_device *phydev, u16 reg, u16 val)\n--\ndrivers/net/phy/bcm-phy-lib.c-36-\ndrivers/net/phy/bcm-phy-lib.c:37:\tphy_lock_mdio_bus(phydev);\ndrivers/net/phy/bcm-phy-lib.c-38-\trc = __bcm_phy_write_exp(phydev, reg, val);\ndrivers/net/phy/bcm-phy-lib.c:39:\tphy_unlock_mdio_bus(phydev);\ndrivers/net/phy/bcm-phy-lib.c-40-\n--\ndrivers/net/phy/bcm-phy-lib.c=62=int bcm_phy_read_exp(struct phy_device *phydev, u16 reg)\n--\ndrivers/net/phy/bcm-phy-lib.c-65-\ndrivers/net/phy/bcm-phy-lib.c:66:\tphy_lock_mdio_bus(phydev);\ndrivers/net/phy/bcm-phy-lib.c-67-\trc = __bcm_phy_read_exp(phydev, reg);\ndrivers/net/phy/bcm-phy-lib.c:68:\tphy_unlock_mdio_bus(phydev);\ndrivers/net/phy/bcm-phy-lib.c-69-\n--\ndrivers/net/phy/bcm-phy-lib.c=94=int bcm_phy_modify_exp(struct phy_device *phydev, u16 reg, u16 mask, u16 set)\n--\ndrivers/net/phy/bcm-phy-lib.c-97-\ndrivers/net/phy/bcm-phy-lib.c:98:\tphy_lock_mdio_bus(phydev);\ndrivers/net/phy/bcm-phy-lib.c-99-\tret = __bcm_phy_modify_exp(phydev, reg, mask, set);\ndrivers/net/phy/bcm-phy-lib.c:100:\tphy_unlock_mdio_bus(phydev);\ndrivers/net/phy/bcm-phy-lib.c-101-\n--\ndrivers/net/phy/bcm-phy-lib.c=271=int bcm_phy_read_rdb(struct phy_device *phydev, u16 rdb)\n--\ndrivers/net/phy/bcm-phy-lib.c-274-\ndrivers/net/phy/bcm-phy-lib.c:275:\tphy_lock_mdio_bus(phydev);\ndrivers/net/phy/bcm-phy-lib.c-276-\tret = __bcm_phy_read_rdb(phydev, rdb);\ndrivers/net/phy/bcm-phy-lib.c:277:\tphy_unlock_mdio_bus(phydev);\ndrivers/net/phy/bcm-phy-lib.c-278-\n--\ndrivers/net/phy/bcm-phy-lib.c=295=int bcm_phy_write_rdb(struct phy_device *phydev, u16 rdb, u16 val)\n--\ndrivers/net/phy/bcm-phy-lib.c-298-\ndrivers/net/phy/bcm-phy-lib.c:299:\tphy_lock_mdio_bus(phydev);\ndrivers/net/phy/bcm-phy-lib.c-300-\tret = __bcm_phy_write_rdb(phydev, rdb, val);\ndrivers/net/phy/bcm-phy-lib.c:301:\tphy_unlock_mdio_bus(phydev);\ndrivers/net/phy/bcm-phy-lib.c-302-\n--\ndrivers/net/phy/bcm-phy-lib.c=327=int bcm_phy_modify_rdb(struct phy_device *phydev, u16 rdb, u16 mask, u16 set)\n--\ndrivers/net/phy/bcm-phy-lib.c-330-\ndrivers/net/phy/bcm-phy-lib.c:331:\tphy_lock_mdio_bus(phydev);\ndrivers/net/phy/bcm-phy-lib.c-332-\tret = __bcm_phy_modify_rdb(phydev, rdb, mask, set);\ndrivers/net/phy/bcm-phy-lib.c:333:\tphy_unlock_mdio_bus(phydev);\ndrivers/net/phy/bcm-phy-lib.c-334-\n--\ndrivers/net/phy/bcm-phy-lib.c=660=static int _bcm_phy_cable_test_start(struct phy_device *phydev, bool is_rdb)\n--\ndrivers/net/phy/bcm-phy-lib.c-671-\ndrivers/net/phy/bcm-phy-lib.c:672:\tphy_lock_mdio_bus(phydev);\ndrivers/net/phy/bcm-phy-lib.c-673-\tif (is_rdb) {\n--\ndrivers/net/phy/bcm-phy-lib.c-690-\ndrivers/net/phy/bcm-phy-lib.c:691:\tphy_unlock_mdio_bus(phydev);\ndrivers/net/phy/bcm-phy-lib.c-692-\n--\ndrivers/net/phy/bcm-phy-lib.c=742=static int _bcm_phy_cable_test_get_status(struct phy_device *phydev,\n--\ndrivers/net/phy/bcm-phy-lib.c-748-\ndrivers/net/phy/bcm-phy-lib.c:749:\tphy_lock_mdio_bus(phydev);\ndrivers/net/phy/bcm-phy-lib.c-750-\n--\ndrivers/net/phy/bcm-phy-lib.c-799-\ndrivers/net/phy/bcm-phy-lib.c:800:\tphy_unlock_mdio_bus(phydev);\ndrivers/net/phy/bcm-phy-lib.c-801-\n--\ndrivers/net/phy/bcm-phy-ptp.c=920=struct bcm_ptp_private *bcm_ptp_probe(struct phy_device *phydev)\n--\ndrivers/net/phy/bcm-phy-ptp.c-931-\ndrivers/net/phy/bcm-phy-ptp.c:932:\tpriv = devm_kzalloc(\u0026phydev-\u003emdio.dev, sizeof(*priv), GFP_KERNEL);\ndrivers/net/phy/bcm-phy-ptp.c-933-\tif (!priv)\n--\ndrivers/net/phy/bcm-phy-ptp.c-940-\ndrivers/net/phy/bcm-phy-ptp.c:941:\tclock = ptp_clock_register(\u0026priv-\u003eptp_info, \u0026phydev-\u003emdio.dev);\ndrivers/net/phy/bcm-phy-ptp.c-942-\tif (IS_ERR(clock))\n--\ndrivers/net/phy/bcm54140.c=414=static int bcm54140_probe_once(struct phy_device *phydev)\n--\ndrivers/net/phy/bcm54140.c-423-\ndrivers/net/phy/bcm54140.c:424:\thwmon = devm_hwmon_device_register_with_info(\u0026phydev-\u003emdio.dev,\ndrivers/net/phy/bcm54140.c-425-\t\t\t\t\t\t \"BCM54140\", phydev,\n--\ndrivers/net/phy/bcm54140.c=432=static int bcm54140_base_read_rdb(struct phy_device *phydev, u16 rdb)\n--\ndrivers/net/phy/bcm54140.c-435-\ndrivers/net/phy/bcm54140.c:436:\tphy_lock_mdio_bus(phydev);\ndrivers/net/phy/bcm54140.c-437-\tret = __phy_package_write(phydev, BCM54140_BASE_ADDR,\n--\ndrivers/net/phy/bcm54140.c-445-out:\ndrivers/net/phy/bcm54140.c:446:\tphy_unlock_mdio_bus(phydev);\ndrivers/net/phy/bcm54140.c-447-\treturn ret;\n--\ndrivers/net/phy/bcm54140.c=450=static int bcm54140_base_write_rdb(struct phy_device *phydev,\n--\ndrivers/net/phy/bcm54140.c-454-\ndrivers/net/phy/bcm54140.c:455:\tphy_lock_mdio_bus(phydev);\ndrivers/net/phy/bcm54140.c-456-\tret = __phy_package_write(phydev, BCM54140_BASE_ADDR,\n--\ndrivers/net/phy/bcm54140.c-464-out:\ndrivers/net/phy/bcm54140.c:465:\tphy_unlock_mdio_bus(phydev);\ndrivers/net/phy/bcm54140.c-466-\treturn ret;\n--\ndrivers/net/phy/bcm54140.c=505=static int bcm54140_get_base_addr_and_port(struct phy_device *phydev)\n\n"
} |
| 25/2 | 2026/08/24 16:56 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 53997 output: 26 thoughts: 292 Thoughts: **My Line of Reasoning** Okay, so I'm looking at `mxl862xx`, and the first thing that jumps out is that it's a DSA driver. Not a PHY driver like I initially thought. It's sitting in `drivers/net/dsa/mxl862xx/mxl862xx.c`, which makes things much clearer. DSA drivers are typically probed when a DSA switch is brought up. The real question is, can Syzkaller *create* or instantiate a DSA switch? I need to figure out if it has that capability. Hmm, I know Syzkaller has a bunch of networking syscalls like `syz_genetlink`, `syz_usb_connect`, `syz_80211_inject_frame`, and `syz_mac802154_inject_frame`. Maybe one of those can do the trick? Wait, though, aren't DSA switches *usually* instantiated through device tree? That feels like the more standard approach. Right, so can Syzkaller inject device tree overlays? That's the real key to whether I can effectively test this driver with Syzkaller. Let's see...I remember Syzkaller has `syz_init_net_socket` and a bunch of other pseudo-syscalls like that, along with `syz_mount_image`, which I know can mount filesystems. I need to quickly eliminate other possibilities. Does Syzkaller have any `syz_devlink_...` syscalls? No, it doesn't appear to. I should check again...But wait, I should remember that Syzkaller *does* have a good way to test drivers if they're compiled in and there's a way to trigger the probe. So, maybe it can work if I get this driver compiled into the kernel properly. Hang on... I need to correct myself again. `mxl862xx_probe`... that's an MDIO driver probe, not a DSA driver probe! So, the question changes. Okay, is there any syzlang description for MDIO devices? I need to check something like `sys/linux/dev_mdio.txt` or something similar to see what's available. I need to figure out how to work with this device, and whether the fuzzer supports it at all. |
| 26/2 | 2026/08/24 16:56 | tool | grepper |
0mError:no matches Args: {
"Expression": "mdio",
"PathPrefix": "sys/linux/"
}Results: {
"error": "no matches"
} |
| 27/2 | 2026/08/24 16:56 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 54839 output: 24 thoughts: 294 Thoughts: **My Reasoning Process** Okay, hold on. I can't just jump into a `default_api:grepper` search for something under `sys/linux/`. The system prompt specifically warns me against searching syzkaller descriptions, especially anything related to "syz_". That's a no-go. I initially thought I could use `read-syz-spec` or `syz-grepper`, but I quickly realized they're not even in my available tool list! The instructions *mention* those tools, but they're not actually *accessible*. Alright, so the fact that the prompt references unavailable tools means I should disregard the whole syzlang aspect entirely. My real task isn't about finding something in syzlang. It seems to be more about determining if a particular bit of code is *reachable* within a QEMU environment. If this MDIO driver is specifically for a MaxLinear MxL862xx hardware switch, and QEMU *doesn't* emulate that hardware, then it's *probably* not reachable in QEMU. That's a strong indicator. Now, the real critical factor is whether there is a software MDIO device injector in the kernel. *That* could change everything. Even if the hardware is not present, could QEMU, via a software device, trigger the driver? Therefore, I need to check for a "software MDIO device injector". I need to search the kernel source for something like `mdio-mockup`, or similar code, in the `drivers/net/phy/` or `drivers/net/mdio/` directories. That should give me the answer. |
| 28/2 | 2026/08/24 16:56 | tool | codesearch-dir-index |
0mArgs:{
"Dir": "drivers/net/mdio"
}Results: {
"Files": [
"acpi_mdio.c",
"fwnode_mdio.c",
"mdio-airoha.c",
"mdio-aspeed.c",
"mdio-bcm-iproc.c",
"mdio-bcm-unimac.c",
"mdio-bitbang.c",
"mdio-cavium.c",
"mdio-cavium.h",
"mdio-gpio.c",
"mdio-hisi-femac.c",
"mdio-i2c.c",
"mdio-ipq4019.c",
"mdio-ipq8064.c",
"mdio-moxart.c",
"mdio-mscc-miim.c",
"mdio-mux-bcm-iproc.c",
"mdio-mux-bcm6368.c",
"mdio-mux-gpio.c",
"mdio-mux-meson-g12a.c",
"mdio-mux-meson-gxl.c",
"mdio-mux-mmioreg.c",
"mdio-mux-multiplexer.c",
"mdio-mux.c",
"mdio-mvusb.c",
"mdio-octeon.c",
"mdio-pic64hpsc.c",
"mdio-realtek-rtl9300.c",
"mdio-regmap.c",
"mdio-sun4i.c",
"mdio-thunder.c",
"mdio-xgene.c",
"of_mdio.c"
],
"Subdirs": null
} |
| 29/2 | 2026/08/24 16:56 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 55912 output: 25 thoughts: 106 Thoughts: **MDIO Driver Investigation** Okay, so I'm looking at these MDIO driver implementations in the kernel: `mdio-gpio.c`, `mdio-bitbang.c`, `mdio-mux-gpio.c`, `mdio-mvusb.c`, and `mdio-i2c.c`. Hmm, none of these immediately jump out as being a generic, software-based MDIO device injector, you know, something analogous to how `mac80211_hwsim` or `netdevsim` work for simulating hardware. It would be incredibly useful to have a similar framework for MDIO testing and development. I need something that can inject an MDIO device. Wait a second...I'm getting a hunch. I seem to recall that I've seen MDIO mentioned in relation to `netdevsim`. Let me quickly drill down into the `drivers/net/netdevsim/` directory. Maybe, *just maybe*, I'll find something there that will work as a base for what I need. It would be a significant time saver to find something, if it exists. |
| 30/2 | 2026/08/24 16:56 | tool | codesearch-dir-index |
0mArgs:{
"Dir": "drivers/net/netdevsim"
}Results: {
"Files": [
"bpf.c",
"bus.c",
"dev.c",
"ethtool.c",
"fib.c",
"health.c",
"hwstats.c",
"ipsec.c",
"macsec.c",
"netdev.c",
"netdevsim.h",
"psample.c",
"psp.c",
"tc.c",
"udp_tunnels.c"
],
"Subdirs": null
} |
| 31/2 | 2026/08/24 16:56 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 56398 output: 31 thoughts: 41 Thoughts: Okay, here's my interpretation of those thoughts, summarized from my perspective as a network expert: **Investigating Network Device Simulation Options** Alright, so I'm thinking about how to simulate a network device, specifically, the `netdevsim` framework. Wait a minute, no MDIO in `netdevsim`? That presents a limitation for certain testing scenarios. That's a bit of a roadblock. I need to explore alternatives. Let's see... what about `dsa_loop`? I vaguely recall there being something in the DSA (Distributed Switch Architecture) driver space that could be useful. Aha, yes, I'm thinking of `drivers/net/dsa/dsa_loop.c`. A loopback DSA switch... That *might* be what I'm looking for. This could be a viable workaround, or perhaps a more complete solution, depending on how it's implemented. Time to dig into that code and see if it fits the bill! |
| 32/2 | 2026/08/24 16:56 | tool | grepper |
0mArgs:{
"Expression": "dsa_loop",
"PathPrefix": "drivers/net/dsa/"
}Results: {
"Output": "drivers/net/dsa/Makefile=3=bcm-sf2-objs\t\t\t:= bcm_sf2.o bcm_sf2_cfp.o\ndrivers/net/dsa/Makefile:4:obj-$(CONFIG_NET_DSA_LOOP)\t+= dsa_loop.o\ndrivers/net/dsa/Makefile-5-obj-$(CONFIG_NET_DSA_KS8995) \t+= ks8995.o\n--\ndrivers/net/dsa/dsa_loop.c-24-\ndrivers/net/dsa/dsa_loop.c:25:struct dsa_loop_vlan {\ndrivers/net/dsa/dsa_loop.c-26-\tu16 members;\n--\ndrivers/net/dsa/dsa_loop.c-29-\ndrivers/net/dsa/dsa_loop.c:30:struct dsa_loop_mib_entry {\ndrivers/net/dsa/dsa_loop.c-31-\tchar name[ETH_GSTRING_LEN];\n--\ndrivers/net/dsa/dsa_loop.c-34-\ndrivers/net/dsa/dsa_loop.c:35:enum dsa_loop_mib_counters {\ndrivers/net/dsa/dsa_loop.c-36-\tDSA_LOOP_PHY_READ_OK,\n--\ndrivers/net/dsa/dsa_loop.c-42-\ndrivers/net/dsa/dsa_loop.c:43:struct dsa_loop_port {\ndrivers/net/dsa/dsa_loop.c:44:\tstruct dsa_loop_mib_entry mib[__DSA_LOOP_CNT_MAX];\ndrivers/net/dsa/dsa_loop.c-45-\tu16 pvid;\n--\ndrivers/net/dsa/dsa_loop.c-48-\ndrivers/net/dsa/dsa_loop.c:49:struct dsa_loop_priv {\ndrivers/net/dsa/dsa_loop.c-50-\tstruct mii_bus\t*bus;\ndrivers/net/dsa/dsa_loop.c-51-\tunsigned int\tport_base;\ndrivers/net/dsa/dsa_loop.c:52:\tstruct dsa_loop_vlan vlans[VLAN_N_VID];\ndrivers/net/dsa/dsa_loop.c-53-\tstruct net_device *netdev;\ndrivers/net/dsa/dsa_loop.c:54:\tstruct dsa_loop_port ports[DSA_MAX_PORTS];\ndrivers/net/dsa/dsa_loop.c-55-};\ndrivers/net/dsa/dsa_loop.c-56-\ndrivers/net/dsa/dsa_loop.c:57:struct dsa_loop_pdata {\ndrivers/net/dsa/dsa_loop.c-58-\t/* Must be first, such that dsa_register_switch() can access this\n--\ndrivers/net/dsa/dsa_loop.c-66-\ndrivers/net/dsa/dsa_loop.c:67:static struct dsa_loop_mib_entry dsa_loop_mibs[] = {\ndrivers/net/dsa/dsa_loop.c-68-\t[DSA_LOOP_PHY_READ_OK]\t= { \"phy_read_ok\", },\n--\ndrivers/net/dsa/dsa_loop.c=75=static struct mdio_device *switch_mdiodev;\ndrivers/net/dsa/dsa_loop.c-76-\ndrivers/net/dsa/dsa_loop.c:77:enum dsa_loop_devlink_resource_id {\ndrivers/net/dsa/dsa_loop.c-78-\tDSA_LOOP_DEVLINK_PARAM_ID_NONE, /* DEVLINK_RESOURCE_ID_PARENT_TOP */\n--\ndrivers/net/dsa/dsa_loop.c-81-\ndrivers/net/dsa/dsa_loop.c:82:static u64 dsa_loop_devlink_vtu_get(void *priv)\ndrivers/net/dsa/dsa_loop.c-83-{\ndrivers/net/dsa/dsa_loop.c:84:\tstruct dsa_loop_priv *ps = priv;\ndrivers/net/dsa/dsa_loop.c-85-\tunsigned int i, count = 0;\ndrivers/net/dsa/dsa_loop.c:86:\tstruct dsa_loop_vlan *vl;\ndrivers/net/dsa/dsa_loop.c-87-\n--\ndrivers/net/dsa/dsa_loop.c-96-\ndrivers/net/dsa/dsa_loop.c:97:static int dsa_loop_setup_devlink_resources(struct dsa_switch *ds)\ndrivers/net/dsa/dsa_loop.c-98-{\ndrivers/net/dsa/dsa_loop.c-99-\tstruct devlink_resource_size_params size_params;\ndrivers/net/dsa/dsa_loop.c:100:\tstruct dsa_loop_priv *ps = ds-\u003epriv;\ndrivers/net/dsa/dsa_loop.c-101-\tint err;\n--\ndrivers/net/dsa/dsa_loop.c-115-\t\t\t\t\t DSA_LOOP_DEVLINK_PARAM_ID_VTU,\ndrivers/net/dsa/dsa_loop.c:116:\t\t\t\t\t dsa_loop_devlink_vtu_get, ps);\ndrivers/net/dsa/dsa_loop.c-117-\n--\ndrivers/net/dsa/dsa_loop.c-124-\ndrivers/net/dsa/dsa_loop.c:125:static enum dsa_tag_protocol dsa_loop_get_protocol(struct dsa_switch *ds,\ndrivers/net/dsa/dsa_loop.c-126-\t\t\t\t\t\t int port,\n--\ndrivers/net/dsa/dsa_loop.c-133-\ndrivers/net/dsa/dsa_loop.c:134:static int dsa_loop_setup(struct dsa_switch *ds)\ndrivers/net/dsa/dsa_loop.c-135-{\ndrivers/net/dsa/dsa_loop.c:136:\tstruct dsa_loop_priv *ps = ds-\u003epriv;\ndrivers/net/dsa/dsa_loop.c-137-\tunsigned int i;\n--\ndrivers/net/dsa/dsa_loop.c-139-\tfor (i = 0; i \u003c ds-\u003enum_ports; i++)\ndrivers/net/dsa/dsa_loop.c:140:\t\tmemcpy(ps-\u003eports[i].mib, dsa_loop_mibs,\ndrivers/net/dsa/dsa_loop.c:141:\t\t sizeof(dsa_loop_mibs));\ndrivers/net/dsa/dsa_loop.c-142-\n--\ndrivers/net/dsa/dsa_loop.c-144-\ndrivers/net/dsa/dsa_loop.c:145:\treturn dsa_loop_setup_devlink_resources(ds);\ndrivers/net/dsa/dsa_loop.c-146-}\ndrivers/net/dsa/dsa_loop.c-147-\ndrivers/net/dsa/dsa_loop.c:148:static void dsa_loop_teardown(struct dsa_switch *ds)\ndrivers/net/dsa/dsa_loop.c-149-{\n--\ndrivers/net/dsa/dsa_loop.c-152-\ndrivers/net/dsa/dsa_loop.c:153:static int dsa_loop_get_sset_count(struct dsa_switch *ds, int port, int sset)\ndrivers/net/dsa/dsa_loop.c-154-{\n--\ndrivers/net/dsa/dsa_loop.c-160-\ndrivers/net/dsa/dsa_loop.c:161:static void dsa_loop_get_strings(struct dsa_switch *ds, int port,\ndrivers/net/dsa/dsa_loop.c-162-\t\t\t\t u32 stringset, uint8_t *data)\ndrivers/net/dsa/dsa_loop.c-163-{\ndrivers/net/dsa/dsa_loop.c:164:\tstruct dsa_loop_priv *ps = ds-\u003epriv;\ndrivers/net/dsa/dsa_loop.c-165-\tunsigned int i;\n--\ndrivers/net/dsa/dsa_loop.c-173-\ndrivers/net/dsa/dsa_loop.c:174:static void dsa_loop_get_ethtool_stats(struct dsa_switch *ds, int port,\ndrivers/net/dsa/dsa_loop.c-175-\t\t\t\t uint64_t *data)\ndrivers/net/dsa/dsa_loop.c-176-{\ndrivers/net/dsa/dsa_loop.c:177:\tstruct dsa_loop_priv *ps = ds-\u003epriv;\ndrivers/net/dsa/dsa_loop.c-178-\tunsigned int i;\n--\ndrivers/net/dsa/dsa_loop.c-183-\ndrivers/net/dsa/dsa_loop.c:184:static int dsa_loop_phy_read(struct dsa_switch *ds, int port, int regnum)\ndrivers/net/dsa/dsa_loop.c-185-{\ndrivers/net/dsa/dsa_loop.c:186:\tstruct dsa_loop_priv *ps = ds-\u003epriv;\ndrivers/net/dsa/dsa_loop.c-187-\tstruct mii_bus *bus = ps-\u003ebus;\n--\ndrivers/net/dsa/dsa_loop.c-198-\ndrivers/net/dsa/dsa_loop.c:199:static int dsa_loop_phy_write(struct dsa_switch *ds, int port,\ndrivers/net/dsa/dsa_loop.c-200-\t\t\t int regnum, u16 value)\ndrivers/net/dsa/dsa_loop.c-201-{\ndrivers/net/dsa/dsa_loop.c:202:\tstruct dsa_loop_priv *ps = ds-\u003epriv;\ndrivers/net/dsa/dsa_loop.c-203-\tstruct mii_bus *bus = ps-\u003ebus;\n--\ndrivers/net/dsa/dsa_loop.c-214-\ndrivers/net/dsa/dsa_loop.c:215:static int dsa_loop_port_bridge_join(struct dsa_switch *ds, int port,\ndrivers/net/dsa/dsa_loop.c-216-\t\t\t\t struct dsa_bridge bridge,\n--\ndrivers/net/dsa/dsa_loop.c-225-\ndrivers/net/dsa/dsa_loop.c:226:static void dsa_loop_port_bridge_leave(struct dsa_switch *ds, int port,\ndrivers/net/dsa/dsa_loop.c-227-\t\t\t\t struct dsa_bridge bridge)\n--\ndrivers/net/dsa/dsa_loop.c-232-\ndrivers/net/dsa/dsa_loop.c:233:static void dsa_loop_port_stp_state_set(struct dsa_switch *ds, int port,\ndrivers/net/dsa/dsa_loop.c-234-\t\t\t\t\tu8 state)\n--\ndrivers/net/dsa/dsa_loop.c-239-\ndrivers/net/dsa/dsa_loop.c:240:static int dsa_loop_port_vlan_filtering(struct dsa_switch *ds, int port,\ndrivers/net/dsa/dsa_loop.c-241-\t\t\t\t\tbool vlan_filtering,\n--\ndrivers/net/dsa/dsa_loop.c-249-\ndrivers/net/dsa/dsa_loop.c:250:static int dsa_loop_port_vlan_add(struct dsa_switch *ds, int port,\ndrivers/net/dsa/dsa_loop.c-251-\t\t\t\t const struct switchdev_obj_port_vlan *vlan,\n--\ndrivers/net/dsa/dsa_loop.c-255-\tbool pvid = vlan-\u003eflags \u0026 BRIDGE_VLAN_INFO_PVID;\ndrivers/net/dsa/dsa_loop.c:256:\tstruct dsa_loop_priv *ps = ds-\u003epriv;\ndrivers/net/dsa/dsa_loop.c-257-\tstruct mii_bus *bus = ps-\u003ebus;\ndrivers/net/dsa/dsa_loop.c:258:\tstruct dsa_loop_vlan *vl;\ndrivers/net/dsa/dsa_loop.c-259-\n--\ndrivers/net/dsa/dsa_loop.c-282-\ndrivers/net/dsa/dsa_loop.c:283:static int dsa_loop_port_vlan_del(struct dsa_switch *ds, int port,\ndrivers/net/dsa/dsa_loop.c-284-\t\t\t\t const struct switchdev_obj_port_vlan *vlan)\n--\ndrivers/net/dsa/dsa_loop.c-286-\tbool untagged = vlan-\u003eflags \u0026 BRIDGE_VLAN_INFO_UNTAGGED;\ndrivers/net/dsa/dsa_loop.c:287:\tstruct dsa_loop_priv *ps = ds-\u003epriv;\ndrivers/net/dsa/dsa_loop.c-288-\tu16 pvid = ps-\u003eports[port].pvid;\ndrivers/net/dsa/dsa_loop.c-289-\tstruct mii_bus *bus = ps-\u003ebus;\ndrivers/net/dsa/dsa_loop.c:290:\tstruct dsa_loop_vlan *vl;\ndrivers/net/dsa/dsa_loop.c-291-\n--\ndrivers/net/dsa/dsa_loop.c-310-\ndrivers/net/dsa/dsa_loop.c:311:static int dsa_loop_port_change_mtu(struct dsa_switch *ds, int port,\ndrivers/net/dsa/dsa_loop.c-312-\t\t\t\t int new_mtu)\ndrivers/net/dsa/dsa_loop.c-313-{\ndrivers/net/dsa/dsa_loop.c:314:\tstruct dsa_loop_priv *priv = ds-\u003epriv;\ndrivers/net/dsa/dsa_loop.c-315-\n--\ndrivers/net/dsa/dsa_loop.c-320-\ndrivers/net/dsa/dsa_loop.c:321:static int dsa_loop_port_max_mtu(struct dsa_switch *ds, int port)\ndrivers/net/dsa/dsa_loop.c-322-{\n--\ndrivers/net/dsa/dsa_loop.c-325-\ndrivers/net/dsa/dsa_loop.c:326:static void dsa_loop_phylink_get_caps(struct dsa_switch *dsa, int port,\ndrivers/net/dsa/dsa_loop.c-327-\t\t\t\t struct phylink_config *config)\n--\ndrivers/net/dsa/dsa_loop.c-333-\ndrivers/net/dsa/dsa_loop.c:334:static const struct dsa_switch_ops dsa_loop_driver = {\ndrivers/net/dsa/dsa_loop.c:335:\t.get_tag_protocol\t= dsa_loop_get_protocol,\ndrivers/net/dsa/dsa_loop.c:336:\t.setup\t\t\t= dsa_loop_setup,\ndrivers/net/dsa/dsa_loop.c:337:\t.teardown\t\t= dsa_loop_teardown,\ndrivers/net/dsa/dsa_loop.c:338:\t.get_strings\t\t= dsa_loop_get_strings,\ndrivers/net/dsa/dsa_loop.c:339:\t.get_ethtool_stats\t= dsa_loop_get_ethtool_stats,\ndrivers/net/dsa/dsa_loop.c:340:\t.get_sset_count\t\t= dsa_loop_get_sset_count,\ndrivers/net/dsa/dsa_loop.c:341:\t.get_ethtool_phy_stats\t= dsa_loop_get_ethtool_stats,\ndrivers/net/dsa/dsa_loop.c:342:\t.phy_read\t\t= dsa_loop_phy_read,\ndrivers/net/dsa/dsa_loop.c:343:\t.phy_write\t\t= dsa_loop_phy_write,\ndrivers/net/dsa/dsa_loop.c:344:\t.port_bridge_join\t= dsa_loop_port_bridge_join,\ndrivers/net/dsa/dsa_loop.c:345:\t.port_bridge_leave\t= dsa_loop_port_bridge_leave,\ndrivers/net/dsa/dsa_loop.c:346:\t.port_stp_state_set\t= dsa_loop_port_stp_state_set,\ndrivers/net/dsa/dsa_loop.c:347:\t.port_vlan_filtering\t= dsa_loop_port_vlan_filtering,\ndrivers/net/dsa/dsa_loop.c:348:\t.port_vlan_add\t\t= dsa_loop_port_vlan_add,\ndrivers/net/dsa/dsa_loop.c:349:\t.port_vlan_del\t\t= dsa_loop_port_vlan_del,\ndrivers/net/dsa/dsa_loop.c:350:\t.port_change_mtu\t= dsa_loop_port_change_mtu,\ndrivers/net/dsa/dsa_loop.c:351:\t.port_max_mtu\t\t= dsa_loop_port_max_mtu,\ndrivers/net/dsa/dsa_loop.c:352:\t.phylink_get_caps\t= dsa_loop_phylink_get_caps,\ndrivers/net/dsa/dsa_loop.c-353-};\ndrivers/net/dsa/dsa_loop.c-354-\ndrivers/net/dsa/dsa_loop.c:355:static int dsa_loop_drv_probe(struct mdio_device *mdiodev)\ndrivers/net/dsa/dsa_loop.c-356-{\ndrivers/net/dsa/dsa_loop.c:357:\tstruct dsa_loop_pdata *pdata = mdiodev-\u003edev.platform_data;\ndrivers/net/dsa/dsa_loop.c:358:\tstruct dsa_loop_priv *ps;\ndrivers/net/dsa/dsa_loop.c-359-\tstruct dsa_switch *ds;\n--\ndrivers/net/dsa/dsa_loop.c-382-\tds-\u003edev = \u0026mdiodev-\u003edev;\ndrivers/net/dsa/dsa_loop.c:383:\tds-\u003eops = \u0026dsa_loop_driver;\ndrivers/net/dsa/dsa_loop.c-384-\tds-\u003epriv = ps;\n--\ndrivers/net/dsa/dsa_loop.c-396-\ndrivers/net/dsa/dsa_loop.c:397:static void dsa_loop_drv_remove(struct mdio_device *mdiodev)\ndrivers/net/dsa/dsa_loop.c-398-{\ndrivers/net/dsa/dsa_loop.c-399-\tstruct dsa_switch *ds = dev_get_drvdata(\u0026mdiodev-\u003edev);\ndrivers/net/dsa/dsa_loop.c:400:\tstruct dsa_loop_priv *ps;\ndrivers/net/dsa/dsa_loop.c-401-\n--\ndrivers/net/dsa/dsa_loop.c-410-\ndrivers/net/dsa/dsa_loop.c:411:static void dsa_loop_drv_shutdown(struct mdio_device *mdiodev)\ndrivers/net/dsa/dsa_loop.c-412-{\n--\ndrivers/net/dsa/dsa_loop.c-422-\ndrivers/net/dsa/dsa_loop.c:423:static struct mdio_driver dsa_loop_drv = {\ndrivers/net/dsa/dsa_loop.c-424-\t.mdiodrv.driver\t= {\n--\ndrivers/net/dsa/dsa_loop.c-426-\t},\ndrivers/net/dsa/dsa_loop.c:427:\t.probe\t= dsa_loop_drv_probe,\ndrivers/net/dsa/dsa_loop.c:428:\t.remove\t= dsa_loop_drv_remove,\ndrivers/net/dsa/dsa_loop.c:429:\t.shutdown = dsa_loop_drv_shutdown,\ndrivers/net/dsa/dsa_loop.c-430-};\ndrivers/net/dsa/dsa_loop.c-431-\ndrivers/net/dsa/dsa_loop.c:432:static int dsa_loop_bus_match(struct device *dev,\ndrivers/net/dsa/dsa_loop.c-433-\t\t\t const struct device_driver *drv)\ndrivers/net/dsa/dsa_loop.c-434-{\ndrivers/net/dsa/dsa_loop.c:435:\treturn drv == \u0026dsa_loop_drv.mdiodrv.driver;\ndrivers/net/dsa/dsa_loop.c-436-}\ndrivers/net/dsa/dsa_loop.c-437-\ndrivers/net/dsa/dsa_loop.c:438:static void dsa_loop_phydevs_unregister(void)\ndrivers/net/dsa/dsa_loop.c-439-{\n--\ndrivers/net/dsa/dsa_loop.c-445-\ndrivers/net/dsa/dsa_loop.c:446:static int __init dsa_loop_create_switch_mdiodev(void)\ndrivers/net/dsa/dsa_loop.c-447-{\ndrivers/net/dsa/dsa_loop.c:448:\tstatic struct dsa_loop_pdata dsa_loop_pdata = {\ndrivers/net/dsa/dsa_loop.c-449-\t\t.cd = {\n--\ndrivers/net/dsa/dsa_loop.c-470-\ndrivers/net/dsa/dsa_loop.c:471:\tswitch_mdiodev-\u003ebus_match = dsa_loop_bus_match;\ndrivers/net/dsa/dsa_loop.c:472:\tswitch_mdiodev-\u003edev.platform_data = \u0026dsa_loop_pdata;\ndrivers/net/dsa/dsa_loop.c-473-\n--\ndrivers/net/dsa/dsa_loop.c-481-\ndrivers/net/dsa/dsa_loop.c:482:static int __init dsa_loop_init(void)\ndrivers/net/dsa/dsa_loop.c-483-{\n--\ndrivers/net/dsa/dsa_loop.c-486-\ndrivers/net/dsa/dsa_loop.c:487:\tret = dsa_loop_create_switch_mdiodev();\ndrivers/net/dsa/dsa_loop.c-488-\tif (ret)\n--\ndrivers/net/dsa/dsa_loop.c-493-\ndrivers/net/dsa/dsa_loop.c:494:\tret = mdio_driver_register(\u0026dsa_loop_drv);\ndrivers/net/dsa/dsa_loop.c-495-\tif (ret) {\ndrivers/net/dsa/dsa_loop.c:496:\t\tdsa_loop_phydevs_unregister();\ndrivers/net/dsa/dsa_loop.c-497-\t\tmdio_device_remove(switch_mdiodev);\n--\ndrivers/net/dsa/dsa_loop.c-502-}\ndrivers/net/dsa/dsa_loop.c:503:module_init(dsa_loop_init);\ndrivers/net/dsa/dsa_loop.c-504-\ndrivers/net/dsa/dsa_loop.c:505:static void __exit dsa_loop_exit(void)\ndrivers/net/dsa/dsa_loop.c-506-{\ndrivers/net/dsa/dsa_loop.c:507:\tmdio_driver_unregister(\u0026dsa_loop_drv);\ndrivers/net/dsa/dsa_loop.c:508:\tdsa_loop_phydevs_unregister();\ndrivers/net/dsa/dsa_loop.c-509-\tmdio_device_remove(switch_mdiodev);\n--\ndrivers/net/dsa/dsa_loop.c-511-}\ndrivers/net/dsa/dsa_loop.c:512:module_exit(dsa_loop_exit);\ndrivers/net/dsa/dsa_loop.c-513-\n"
} |
| 33/2 | 2026/08/24 16:56 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 63220 output: 50 thoughts: 116 Thoughts: **Analyzing the DSA and MDIO Device Interactions** Okay, so I'm looking at this `dsa_loop` setup, which is essentially a placeholder DSA switch. It creates a dummy `mdio_device` and then registers a driver for it. Now, the `mxl862xx` driver, which is a *real* driver, also registers an `mdio_driver`. This makes me wonder: can syzkaller, in its fuzzing process, somehow conjure up an `mdio_device` that will actually be a match for the `mxl862xx` driver? The key here is how the matching is done. The `mxl862xx_driver` uses `mdio_driver_register`, and that's the point where the device and driver are paired together. I need to dig into the details of that process to understand what conditions need to be met for a successful match to occur. Essentially, I need to figure out the criteria used by the system to determine if a created `mdio_device` would be considered valid by `mxl862xx_driver`. I need to figure out the requirements for a valid match, so I can ensure my tests are able to produce a match. |
| 34/2 | 2026/08/24 16:56 | tool | grepper |
0mArgs:{
"Expression": "mxl862xx_driver",
"PathPrefix": "drivers/net/dsa/mxl862xx/mxl862xx.c"
}Results: {
"Output": "drivers/net/dsa/mxl862xx/mxl862xx.c=2199=MODULE_DEVICE_TABLE(of, mxl862xx_of_match);\ndrivers/net/dsa/mxl862xx/mxl862xx.c-2200-\ndrivers/net/dsa/mxl862xx/mxl862xx.c:2201:static struct mdio_driver mxl862xx_driver = {\ndrivers/net/dsa/mxl862xx/mxl862xx.c-2202-\t.probe = mxl862xx_probe,\n--\ndrivers/net/dsa/mxl862xx/mxl862xx.c-2210-\ndrivers/net/dsa/mxl862xx/mxl862xx.c:2211:mdio_module_driver(mxl862xx_driver);\ndrivers/net/dsa/mxl862xx/mxl862xx.c-2212-\n"
} |
| 35/2 | 2026/08/24 16:56 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 63932 output: 52 thoughts: 671 Thoughts: **My Thought Process on Reaching mxl862xx_probe** Okay, so the `mxl862xx` driver seems to be matching via `of_match_table`, specifically `MODULE_DEVICE_TABLE(of, mxl862xx_of_match);`. The immediate question is, can syzkaller inject Device Tree (DT) nodes? My understanding is that, generally, syzkaller doesn't have a way to inject arbitrary DT nodes directly at runtime for standard Linux kernel fuzzing, unless it's DT overlays. But wait, does syzkaller have *any* support for DT overlays? No, not in its default configuration. Alright, what if the driver is triggered via a different mechanism? Is there a way to instantiate an MDIO device from userspace directly? That seems unlikely, as MDIO devices are typically instantiated by the MDIO bus driver, either through hardware probing or the DT. Hmm, I thought there was an `mdio-mockup` driver, but I just checked, and that doesn't exist. So, the core question: how can I reach `mxl862xx_probe`? Let's see if syzkaller has any reports of bugs for this probe function. Aha! The commit message for a syzkaller report says "Author: syz-cluster <triage@syzkaller.com>" and "syz-cluster: applied patch under review". This suggests that syzkaller *did* find a bug and someone is testing a patch, or has triggered something. That means `mxl862xx_probe` MUST be reachable. How could it be reached? Could another driver's `mdio_device_create` function trigger it? Or maybe syzkaller is using something like `syz_genetlink` to trigger something? Since it's an `mxl862xx` DSA switch, could it be instantiated via `dsa_loop`? No, that driver instantiates its own `dsa_loop_drv`. I'll look for any `mxl862xx` references within the `net/dsa/` or `drivers/net/dsa/` directories that might allow probing. Wasn't there a syzkaller pseudo-device for MDIO? I already checked `drivers/net/mdio/mdio-mockup.c` and `drivers/net/phy/mdio-mockup.c`, and neither exists. Could it be probed via I2C? No, it's an MDIO driver. Alright, so how can an MDIO driver be probed in QEMU? Perhaps QEMU emulates an MDIO bus? For instance, something like `macb` (Cadence GEM) has an MDIO bus, and if QEMU emulates `macb`, it might probe PHYs. But `mxl862xx` is a DSA switch, not a PHY. It needs a specific OF node match: `mxl862xx_of_match`. Right, let's go back and examine `mxl862xx_of_match` again. That seems to be the key. |
| 36/2 | 2026/08/24 16:56 | tool | grepper |
0mArgs:{
"Expression": "mxl862xx_of_match",
"PathPrefix": "drivers/net/dsa/mxl862xx/mxl862xx.c"
}Results: {
"Output": "drivers/net/dsa/mxl862xx/mxl862xx.c=2170=static void mxl862xx_shutdown(struct mdio_device *mdiodev)\n--\ndrivers/net/dsa/mxl862xx/mxl862xx.c-2193-\ndrivers/net/dsa/mxl862xx/mxl862xx.c:2194:static const struct of_device_id mxl862xx_of_match[] = {\ndrivers/net/dsa/mxl862xx/mxl862xx.c-2195-\t{ .compatible = \"maxlinear,mxl86282\" },\n--\ndrivers/net/dsa/mxl862xx/mxl862xx.c-2198-};\ndrivers/net/dsa/mxl862xx/mxl862xx.c:2199:MODULE_DEVICE_TABLE(of, mxl862xx_of_match);\ndrivers/net/dsa/mxl862xx/mxl862xx.c-2200-\ndrivers/net/dsa/mxl862xx/mxl862xx.c=2201=static struct mdio_driver mxl862xx_driver = {\n--\ndrivers/net/dsa/mxl862xx/mxl862xx.c-2206-\t\t.name = \"mxl862xx\",\ndrivers/net/dsa/mxl862xx/mxl862xx.c:2207:\t\t.of_match_table = mxl862xx_of_match,\ndrivers/net/dsa/mxl862xx/mxl862xx.c-2208-\t},\n"
} |
| 37/2 | 2026/08/24 16:56 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 65806 output: 34 thoughts: 213 Thoughts: **Reaching `mxl862xx_probe` with DT Overlays in Syzkaller** Okay, so I see this patch targets `maxlinear,mxl86282`. My first thought is, can we *reach* this driver using syzkaller's current capabilities? The key is that syzkaller *now* supports Device Tree overlays. That's huge! If we can inject a DT overlay, then any driver that relies on Device Tree matching, be it OF, MDIO, I2C, SPI, *anything* can potentially be probed. Bingo! This means `mxl862xx_probe` *should* be reachable in QEMU via DT overlay injection. I'll make that assumption for now. Let's look at the patch itself. It adds this line: `ds->assisted_learning_on_cpu_port = true;` within `mxl862xx_probe`. This is a functional change. It's setting a flag, `assisted_learning_on_cpu_port`, in a `dsa_switch` structure. This flag directly impacts how the DSA core handles MAC learning on the CPU port. Now, I need to dig into the DSA core code. Where is this flag actually used? I need to understand the downstream impact of this change to fully grasp its significance and potential consequences. Let's trace where `assisted_learning_on_cpu_port` is used within the DSA core logic. |
| 38/2 | 2026/08/24 16:56 | tool | grepper |
0mArgs:{
"Expression": "assisted_learning_on_cpu_port",
"PathPrefix": "net/dsa/"
}Results: {
"Output": "net/dsa/user.c=3708=static int dsa_user_fdb_event(struct net_device *dev,\n--\nnet/dsa/user.c-3731-\t\t */\nnet/dsa/user.c:3732:\t\tif (!ds-\u003eassisted_learning_on_cpu_port)\nnet/dsa/user.c-3733-\t\t\treturn 0;\n"
} |
| 39/2 | 2026/08/24 16:56 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 66483 output: 47 thoughts: 189 Thoughts: **Fuzzing Target Identification** Okay, so this change in the `net/dsa/user.c` driver, specifically within the `dsa_user_fdb_event` function, is where my attention needs to be. The conditional check involving `assisted_learning_on_cpu_port` is the key. When that's true, the function *won't* return early, which means it will actually execute the FDB event processing – adding or removing MAC addresses in the hardware FDB of the switch. That's a fundamental shift in the driver's behaviour; it enables assisted learning on the CPU port, which is huge! Definitely fuzzing-worthy. The patch itself mentions modifications to `mxl862xx_probe`, but I'm thinking the real vulnerability and fuzzing target will come down to the FDB operations that are now being triggered via `dsa_user_fdb_event`. Let me examine what the `mxl862xx` driver actually *does* in its FDB add/del implementations. That's where I need to focus my fuzzing efforts. I need to understand what's happening at the hardware level, so I can try to induce edge cases and identify potential vulnerabilities. |
| 40/2 | 2026/08/24 16:57 | tool | grepper |
0mArgs:{
"Expression": "port_fdb_",
"PathPrefix": "drivers/net/dsa/mxl862xx/mxl862xx.c"
}Results: {
"Output": "drivers/net/dsa/mxl862xx/mxl862xx.c=1426=static int mxl862xx_get_fid(struct dsa_switch *ds, struct dsa_db db)\n--\ndrivers/net/dsa/mxl862xx/mxl862xx.c-1443-\ndrivers/net/dsa/mxl862xx/mxl862xx.c:1444:static int mxl862xx_port_fdb_add(struct dsa_switch *ds, int port,\ndrivers/net/dsa/mxl862xx/mxl862xx.c-1445-\t\t\t\t const unsigned char *addr, u16 vid, struct dsa_db db)\n--\ndrivers/net/dsa/mxl862xx/mxl862xx.c-1466-\ndrivers/net/dsa/mxl862xx/mxl862xx.c:1467:static int mxl862xx_port_fdb_del(struct dsa_switch *ds, int port,\ndrivers/net/dsa/mxl862xx/mxl862xx.c-1468-\t\t\t\t const unsigned char *addr, u16 vid, const struct dsa_db db)\n--\ndrivers/net/dsa/mxl862xx/mxl862xx.c-1487-\ndrivers/net/dsa/mxl862xx/mxl862xx.c:1488:static int mxl862xx_port_fdb_dump(struct dsa_switch *ds, int port,\ndrivers/net/dsa/mxl862xx/mxl862xx.c-1489-\t\t\t\t dsa_fdb_dump_cb_t *cb, void *data)\n--\ndrivers/net/dsa/mxl862xx/mxl862xx.c=2057=static const struct dsa_switch_ops mxl862xx_switch_ops = {\n--\ndrivers/net/dsa/mxl862xx/mxl862xx.c-2072-\t.port_set_host_flood = mxl862xx_port_set_host_flood,\ndrivers/net/dsa/mxl862xx/mxl862xx.c:2073:\t.port_fdb_add = mxl862xx_port_fdb_add,\ndrivers/net/dsa/mxl862xx/mxl862xx.c:2074:\t.port_fdb_del = mxl862xx_port_fdb_del,\ndrivers/net/dsa/mxl862xx/mxl862xx.c:2075:\t.port_fdb_dump = mxl862xx_port_fdb_dump,\ndrivers/net/dsa/mxl862xx/mxl862xx.c-2076-\t.port_mdb_add = mxl862xx_port_mdb_add,\n"
} |
| 41/2 | 2026/08/24 16:57 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 67774 output: 43 thoughts: 166 Thoughts: **My Assessment of the MXL862XX Driver Modifications** Okay, so I see the `mxl862xx_port_fdb_add` and `mxl862xx_port_fdb_del` functions are the key ones that are now being used for the CPU port. I also noticed that `mxl862xx_probe` has been modified, which is important to keep in mind. Therefore, I need to make sure that these are all included in my `FocusSymbols` list – specifically, `mxl862xx_probe`, `mxl862xx_port_fdb_add`, and `mxl862xx_port_fdb_del`. Now, I need to check the relevant configuration options. I recall that `CONFIG_NET_DSA_MXL862` enables this specific driver. I'll need to double-check the dependencies by examining `drivers/net/dsa/mxl862xx/Kconfig` to ensure everything is set up correctly. |
| 42/2 | 2026/08/24 16:57 | tool | read-file |
0mArgs:{
"File": "drivers/net/dsa/mxl862xx/Kconfig",
"FirstLine": 1,
"LineCount": 100
}Results: {
"Contents": " 1:\t# SPDX-License-Identifier: GPL-2.0-only\n 2:\tconfig NET_DSA_MXL862\n 3:\t\ttristate \"MaxLinear MxL862xx\"\n 4:\t\tdepends on NET_DSA\n 5:\t\tselect CRC16\n 6:\t\tselect NET_DSA_TAG_MXL_862XX\n 7:\t\thelp\n 8:\t\t This enables support for the MaxLinear MxL862xx switch family.\n 9:\t\t These switches have two 10GE SerDes interfaces, one typically\n 10:\t\t used as CPU port.\n 11:\t\t - MxL86282 has eight 2.5 Gigabit PHYs\n 12:\t\t - MxL86252 has five 2.5 Gigabit PHYs\n"
} |
| 43/2 | 2026/08/24 16:57 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 68422 output: 208 thoughts: 874 Thoughts: **My Analysis of the MaxLinear MxL862xx DSA Driver Change** Okay, so I'm looking at this patch and how it affects fuzzing strategy. It hinges on the `NET_DSA` and `NET_DSA_MXL862` configs. I need to make sure those are properly set up for this fuzzing effort. Since `NET_DSA_MXL862` implies `NET_DSA`, I can just list both in the `EnableConfigs`. The other one, `NET_DSA_TAG_MXL_862XX`, is automatically selected via the `select` option in Kconfig so I don't really need to list it, although it's always good practice if it's a separate config. Now, let's make sure the key functions are reachable. With Device Tree overlay injection, the driver's `mxl862xx_probe` function should be accessible through MDIO devices. More importantly, this patch enables `assisted_learning_on_cpu_port`, which changes how the DSA core handles Forwarding Database (FDB) events within `dsa_user_fdb_event`. This change then calls `mxl862xx_port_fdb_add` and `mxl862xx_port_fdb_del` for the CPU port. Because it is a functional change, it's worth fuzzing the driver to make sure these new paths are working as expected. I need to nail down the `FocusSymbols`. The main ones are obviously `mxl862xx_probe`, `mxl862xx_port_fdb_add`, and `mxl862xx_port_fdb_del`. I initially considered `dsa_user_fdb_event`, because it's the core function that's being modified, however, I should focus on the driver functions. A quick check confirms `mxl862xx_port_fdb_add` is static. However, it's used as a driver API entrypoint within the `dsa_switch_ops` struct as a callback. Therefore, the function will not be inlined and it is appropriate to use it in our fuzzing strategy. The probe function is also static but is part of the API. So, in summary: This patch introduces a functional change to the MaxLinear MxL862xx DSA switch driver by enabling `assisted_learning_on_cpu_port`. This affects FDB event handling in `dsa_user_fdb_event` and triggers the driver's `port_fdb_add` and `port_fdb_del` callbacks for the CPU port. Since the code is reachable through DT overlay injection, it's a good target for fuzzing. My configs will be: * `NET_DSA_MXL862` * `NET_DSA` The important symbols to focus on are: * `mxl862xx_probe` * `mxl862xx_port_fdb_add` * `mxl862xx_port_fdb_del` Finally, I've verified `NET_DSA_MXL862` is indeed the correct config, and `dsa_user_fdb_event` is the right place to be looking. I'm confident now. Time to call `set-results`. |
| 44/2 | 2026/08/24 16:57 | tool | set-results |
0mArgs:{
"EnableConfigs": [
"NET_DSA",
"NET_DSA_MXL862"
],
"FocusSymbols": [
"mxl862xx_probe",
"mxl862xx_port_fdb_add",
"mxl862xx_port_fdb_del"
],
"Reasoning": "The patch enables `assisted_learning_on_cpu_port` for the MaxLinear MxL862xx DSA switch driver. This flag changes the behavior of the DSA core (`dsa_user_fdb_event`), allowing FDB (Forwarding Database) events to be processed for the CPU port, which in turn triggers the driver's `port_fdb_add` and `port_fdb_del` callbacks. This is a functional change in reachable driver code (which can be probed via Device Tree overlay injection), making it worth fuzzing.",
"WorthFuzzing": true
}Results: {
"EnableConfigs": [
"NET_DSA",
"NET_DSA_MXL862"
],
"FocusSymbols": [
"mxl862xx_probe",
"mxl862xx_port_fdb_add",
"mxl862xx_port_fdb_del"
],
"Reasoning": "The patch enables `assisted_learning_on_cpu_port` for the MaxLinear MxL862xx DSA switch driver. This flag changes the behavior of the DSA core (`dsa_user_fdb_event`), allowing FDB (Forwarding Database) events to be processed for the CPU port, which in turn triggers the driver's `port_fdb_add` and `port_fdb_del` callbacks. This is a functional change in reachable driver code (which can be probed via Device Tree overlay injection), making it worth fuzzing.",
"WorthFuzzing": true
} |
| 45/1 | 2026/08/24 16:57 | action | If |
0mArgs:{
"WorthFuzzing": true
}Results: null |
| 46/2 | 2026/08/24 16:57 | agent | kmsan-evaluator |
0mModel:best-expensive Args: null Results: {
"KMSANReasoning": "The patch simply sets a boolean configuration flag (`assisted_learning_on_cpu_port = true`) in the `dsa_switch` structure during the device probe. This change does not introduce any new allocations, modify data copied to user space, or alter control flow in a way that could expose uninitialized memory. There is no risk of uninitialized memory reads or info-leaks, so a dedicated KMSAN fuzzing session is not necessary.",
"NeedsKMSAN": false
}Instruction: You are an expert Linux kernel security engineer specializing in kernel memory
error detectors (KASAN and KMSAN). Your job is to review the provided patch series and
determine if the code changes justify spawning a dedicated KMSAN (KernelMemorySanitizer)
fuzzing session in addition to standard KASAN fuzzing.
CRITICAL DISTINCTION BETWEEN KASAN AND KMSAN:
- Standard KASAN kernel builds (upstream-apparmor-kasan.config) already enable
a comprehensive suite of debugging tools and sanitizers, including KASAN
(out-of-bounds accesses, use-after-free, double free, invalid free), LOCKDEP
(locking bugs and deadlocks), UB-sanitizers, and memory corruption checks.
- KMSAN (KernelMemorySanitizer) detects reads of UNINITIALIZED memory (stack, heap,
or page allocations) and kernel-to-user memory info-leaks.
Rule: THERE IS NO SENSE IN RUNNING A KMSAN SESSION IF A BUG CAN BE CAUGHT BY KASAN,
LOCKDEP, OR OTHER STANDARD BUG DETECTORS.
A dedicated KMSAN fuzzing session incurs significant resource costs. You must ONLY
set NeedsKMSAN=true if the code changes introduce or expose UNINITIALIZED MEMORY risks
that are detected ONLY by KMSAN.
Look holistically at the patch series and surrounding code. Even if no direct
uninitialized field accesses or new buffer allocations are added in the diff itself,
a patch may alter control flow, bounds checking, or data length calculations in ways
that change how the rest of the code operates on existing buffers (e.g. allowing
uninitialized stack/heap memory to be read, copied to user space, or used in control
flow). Do not hesitate to use your code access tools to inspect the surrounding code,
called functions, and callers.
Set NeedsKMSAN=true ONLY IF the patch introduces or modifies:
1. Kernel structures sent to user space (via copy_to_user, put_user, netlink skb
attributes, ioctl output arguments, socket options, or BPF buffers) where fields
or structure padding might not be fully initialized/zeroed.
2. Conditional logic or branching that depends on potentially uninitialized variables
or struct fields.
3. Allocation or initialization of complex data structures where uninitialized fields
could be read later in reachable code paths.
4. Bounds checks, lengths, or logic in a way that allows surrounding code to access
uninitialized bytes of existing buffers.
Set NeedsKMSAN=false IF:
- The code changes primarily risk out-of-bounds access, array overflows, NULL pointer
dereferences, locking deadlocks, or use-after-free bugs (these are already caught
by KASAN, LOCKDEP, or standard bug detectors).
- All stack/heap structures touched or introduced by the patch are fully zeroed
or initialized (e.g. using = {0}, memset, kzalloc) before being read or copied.
- The patch does not introduce any risk of uninitialized memory usage or info-leaks.
Use your code access tools to inspect the surrounding code if necessary, then provide
detailed KMSANReasoning contrasting KASAN vs KMSAN applicability for this patch.
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: For your convenience, here is the diff of the changes:
commit 47174b202e8a5d3d3d315c12a35b24b18d176850
Author: syz-cluster <triage@syzkaller.com>
Date: Mon Aug 24 16:09:15 2026 +0000
syz-cluster: applied patch under review
diff --git a/drivers/net/dsa/mxl862xx/mxl862xx.c b/drivers/net/dsa/mxl862xx/mxl862xx.c
index 45d237b3a40f1..cfa7e3e269a28 100644
--- a/drivers/net/dsa/mxl862xx/mxl862xx.c
+++ b/drivers/net/dsa/mxl862xx/mxl862xx.c
@@ -2111,6 +2111,7 @@ static int mxl862xx_probe(struct mdio_device *mdiodev)
ds->ops = &mxl862xx_switch_ops;
ds->phylink_mac_ops = &mxl862xx_phylink_mac_ops;
ds->num_ports = MXL862XX_MAX_PORTS;
+ ds->assisted_learning_on_cpu_port = true;
ds->fdb_isolation = true;
ds->max_num_bridges = MXL862XX_MAX_BRIDGES;
|
| 47/3 | 2026/08/24 16:57 | llm | kmsan-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 2079 output: 118 thoughts: 179 Thoughts: **KMSAN Assessment: `mxl862xx_probe` Patch** Okay, let's take a look at this patch. It's just a straightforward assignment: `ds->assisted_learning_on_cpu_port = true;` within the `mxl862xx_probe` function in `mxl862xx.c`. Seems pretty harmless, doesn't it? Just setting a boolean flag. There's nothing here that screams "KMSAN alert." No complex data structures are being initialized or passed to user space. No potential for memory leaks or information leaks either. This is literally just configuring a DSA switch with a single flag. We're talking about `assisted_learning_on_cpu_port` which is a flag within a `struct dsa_switch`. No uninitialized memory is involved in this simple flag assignment. Given the context and the nature of this change, I'm confident in setting `NeedsKMSAN=false`. It's a clean, contained configuration adjustment. |
| 48/3 | 2026/08/24 16:57 | tool | set-results |
0mArgs:{
"KMSANReasoning": "The patch simply sets a boolean configuration flag (`assisted_learning_on_cpu_port = true`) in the `dsa_switch` structure during the device probe. This change does not introduce any new allocations, modify data copied to user space, or alter control flow in a way that could expose uninitialized memory. There is no risk of uninitialized memory reads or info-leaks, so a dedicated KMSAN fuzzing session is not necessary.",
"NeedsKMSAN": false
}Results: {
"KMSANReasoning": "The patch simply sets a boolean configuration flag (`assisted_learning_on_cpu_port = true`) in the `dsa_switch` structure during the device probe. This change does not introduce any new allocations, modify data copied to user space, or alter control flow in a way that could expose uninitialized memory. There is no risk of uninitialized memory reads or info-leaks, so a dedicated KMSAN fuzzing session is not necessary.",
"NeedsKMSAN": false
} |
| Total Calls | Total Tokens | Avg Tokens | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|
| Total Calls | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|