Skip to content

Commit

Permalink
changes to the test verify_vmbus_devices_channels as per the patches
Browse files Browse the repository at this point in the history
  • Loading branch information
umfranci committed Feb 6, 2025
1 parent b8dc542 commit e9f3b57
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions microsoft/testsuites/core/lsvmbus.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,11 @@ def verify_vmbus_devices_channels(self, node: Node) -> None:
# vmbus channels created and associated.
lscpu_tool = node.tools[Lscpu]
core_count = lscpu_tool.get_core_count()
# Each netvsc device should have "the_number_of_vCPUs" channel(s)
# with a cap value of 8.
expected_network_channel_count = min(core_count, 8)
# Each netvsc device should have channels based on the number of vCPUs
if core_count <= 16:
expected_network_channel_count = core_count
else:
expected_network_channel_count = min(64, max(16, core_count // 2))
# Each storvsc SCSI device should have "the_number_of_vCPUs / 4" channel(s)
# with a cap value of 64.
if node.nics.is_mana_device_present():
Expand Down

0 comments on commit e9f3b57

Please sign in to comment.