Skip to content

Commit

Permalink
Merge pull request atheurer#171 from k-rister/dev-kmr
Browse files Browse the repository at this point in the history
Add some device error checking code to gen-trex-cfg.py
  • Loading branch information
k-rister authored Jun 1, 2021
2 parents 84ee89a + dce9304 commit 6cbf236
Showing 1 changed file with 6 additions and 0 deletions.
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

0 comments on commit 6cbf236

Please sign in to comment.