Skip to content

Commit

Permalink
Add some device error checking code to gen-trex-cfg.py
Browse files Browse the repository at this point in the history
  • Loading branch information
k-rister committed Jun 1, 2021
1 parent 84ee89a commit dce9304
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 dce9304

Please sign in to comment.