Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Add some device error checking code to gen-trex-cfg.py #171

Merged
merged 1 commit into from
Jun 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions gen-trex-cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@ def main():
return(3)
else:
pair['node'] = int(fh.readline().rstrip())
else:
t_global.log.error("Could not determine NUMA node for device %s" % (dev))
return(16)
else:
t_global.log.error("Could not find /sys/bus/pci/devices/%s" % (dev))
return(17)

t_global.log.debug("device pairs: %s" % (t_global.device_pairs))

Expand Down