perftune.py: add support for Azure netvsc driver #3190
+8
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
From CoPi:
I have fixed the issue by adding support for Azure's netvsc driver in perftune.py.
The changes include:
Added nic_is_netvsc_iface method to NetPerfTuner class to identify interfaces using the hv_netvsc driver.
Updated nic_is_hw_iface to exclude netvsc interfaces, so they are treated as composite interfaces.
Updated nic_is_composite_iface to include netvsc interfaces.
Modified _learn_slaves_one to correctly identify the underlying physical device (VF) for netvsc interfaces by looking for lower* links in sysfs.
Updated the tune method to print the correct interface type when configuring netvsc interfaces.
These changes ensure that perftune.py can correctly identify and tune the underlying physical network device when running in Azure with accelerated networking enabled.
Fixes: #2534