Skip to content

Ethtool Queue Enhancement#260

Open
sunnyhe2 wants to merge 1 commit into
developmentfrom
sunny_rdmaethool_enhance
Open

Ethtool Queue Enhancement#260
sunnyhe2 wants to merge 1 commit into
developmentfrom
sunny_rdmaethool_enhance

Conversation

@sunnyhe2

Copy link
Copy Markdown
Collaborator

Summary

  • added queue fields
  • ethtool -S no longer depends on rdma
  • rdma collector args changed for html output

Test plan

  • pytest test/unit
  • pytest test/functional (if applicable)
  • pre-commit run --all-files

Checklist

  • Added/updated tests (or explained why not)
  • Updated docs/README if behavior changed
  • No secrets or credentials committed

@sunnyhe2 sunnyhe2 requested a review from alexandraBara July 13, 2026 18:42
@sunnyhe2 sunnyhe2 changed the title added queue fields Ethtool Queue Enhancement Jul 13, 2026
@@ -620,18 +588,40 @@ def _collect_rdma_scoped_ethtool_statistic(

return EthtoolStatistics(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this should also populate statistics right. Something like:


+        raw_statistics = {k: v for k, v in stats_dict.items() if k != "netdev"}
+
         return EthtoolStatistics(
             netdev=netdev,
             driver=driver or None,
             vendor_statistics=vendor_stats,
+            statistics=raw_statistics,
             queue_statistics=queue_statistics,
         )

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

We could, but the current implementation only keeps what we check into the datamodel and drops the rest. I think we are okay to omit this as the raw output still exists in command_artifacts.json/html

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

what about this:

for stat_name, stat_value in ethtool_info.statistics.items():

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