Skip to content

[E1000] Implement OID_GEN_PHYSICAL_MEDIUM #8027

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2025
Merged

Conversation

tkreuzer
Copy link
Contributor

@tkreuzer tkreuzer commented May 21, 2025

Purpose

Implement OID_GEN_PHYSICAL_MEDIUM in e1000 driver to silence annoying debug spam on VBox.

Testbot runs (Filled in by Devs)

@tkreuzer tkreuzer self-assigned this May 21, 2025
@github-actions github-actions bot added the drivers Kernel mode drivers and frameworks label May 21, 2025
@disean
Copy link
Contributor

disean commented May 21, 2025

This OID is optional for NDIS miniport drivers, I believe the debug print should be muted instead.

NDIS_DbgPrint(MAX_TRACE, ("Query OID 0x%x(%s): Completed with status 0x%x (%d, %d)\n",

+if (Oid != OID_GEN_PHYSICAL_MEDIUM)
+{
    NDIS_DbgPrint(MAX_TRACE, ("Query OID 0x%x(%s): Completed with status 0x%x (%d, %d)\n",
                              Oid, Oid2Str(Oid), status, *BytesWritten, *BytesNeeded));
+}

@tkreuzer
Copy link
Contributor Author

tkreuzer commented May 21, 2025

This OID is optional for NDIS miniport drivers, I believe the debug print should be muted instead.

@disean What's wrong with implementing an optional OID?

@disean
Copy link
Contributor

disean commented May 22, 2025

What's wrong with implementing an optional OID?

Because it's meant more for Wi-Fi drivers. You're fixing the debug spam in a Vbox-specific environment setup, but not the root cause of it.

@tkreuzer
Copy link
Contributor Author

tkreuzer commented May 22, 2025

Because it's meant more for Wi-Fi drivers.

It's meant for any kind of driver, because that is why the enum contains all those values.

You're fixing the debug spam in a Vbox-specific environment setup, but not the root cause of it.

Huh? The root cause of that debug print is the debug print due to it being unimplemented. If with "root cause" you mean the calling code should first use OID_GEN_SUPPORTED_LIST or cache the status or whatever: feel free to implement that, but that code is WIP and I will not touch it.

@tkreuzer tkreuzer merged commit 4cb4eee into reactos:master May 22, 2025
34 checks passed
@tkreuzer tkreuzer deleted the pr/e1000 branch May 22, 2025 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
drivers Kernel mode drivers and frameworks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants