Skip to content

fix: Add namespace variable to get_driver_info function for LinuxNetworkInterface object - #45

Open
KTokarze wants to merge 1 commit into
intel:mainfrom
KTokarze:get_driver_info_linux_namespace_fix
Open

fix: Add namespace variable to get_driver_info function for LinuxNetworkInterface object#45
KTokarze wants to merge 1 commit into
intel:mainfrom
KTokarze:get_driver_info_linux_namespace_fix

Conversation

@KTokarze

@KTokarze KTokarze commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

This pull request introduces improvements to how network interface namespaces are handled and passed through the codebase, particularly for retrieving driver information. The changes ensure that the namespace is correctly set and accessed, and that it is used when fetching driver details.

Namespace handling improvements:

  • Added a setter method for the namespace property in the NetworkInterface class, allowing the namespace to be updated as needed.

Driver information retrieval:

  • Updated the call to _ethtool.get_driver_information in the get_driver_info method to pass the interface's namespace, ensuring driver info is fetched within the correct network namespace context.

Copilot AI review requested due to automatic review settings March 4, 2026 14:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Improves network namespace propagation for Linux network interfaces so driver information can be retrieved in the correct namespace context.

Changes:

  • Added a namespace setter to NetworkInterface so the namespace can be updated.
  • Updated driver info lookup to pass the interface namespace into _ethtool.get_driver_information.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
mfd_network_adapter/network_interface/linux.py Adds a setter to allow updating the interface namespace.
mfd_network_adapter/network_interface/feature/driver/linux.py Passes namespace into ethtool driver info retrieval.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread mfd_network_adapter/network_interface/linux.py Outdated
Comment thread mfd_network_adapter/network_interface/feature/driver/linux.py Outdated
Comment thread mfd_network_adapter/network_interface/feature/driver/linux.py Outdated
@KTokarze
KTokarze force-pushed the get_driver_info_linux_namespace_fix branch 3 times, most recently from cb60d18 to edf00ac Compare March 9, 2026 09:42
…orkInterface object

Signed-off-by: Kacper Tokarzewski <kacper.tokarzewski@intel.com>
@KTokarze
KTokarze force-pushed the get_driver_info_linux_namespace_fix branch from edf00ac to 24d0a3c Compare March 20, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants