Skip to content

Commit

Permalink
Dpdk: fix device_id -> device_info
Browse files Browse the repository at this point in the history
  • Loading branch information
mcgov committed Oct 30, 2024
1 parent cb68343 commit d435fd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion microsoft/testsuites/dpdk/dpdkutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -1140,7 +1140,7 @@ def get_node_nic_short_name(node: Node) -> str:
if node.nics.is_mana_device_present():
return NIC_SHORT_NAMES[NicType.MANA]
for nic_name in [NicType.CX3, NicType.CX4, NicType.CX5]:
if any([str(nic_name) in x.device_id for x in devices]):
if any([str(nic_name) in x.device_info for x in devices]):
return NIC_SHORT_NAMES[nic_name]
# We assert much earlier to enforce that SRIOV is enabled,
# so we should never hit this unless someone is testing a new platform.
Expand Down

0 comments on commit d435fd6

Please sign in to comment.