summaryrefslogtreecommitdiffstats
path: root/scripts/dpdk_setup_ports.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/dpdk_setup_ports.py')
-rwxr-xr-xscripts/dpdk_setup_ports.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/dpdk_setup_ports.py b/scripts/dpdk_setup_ports.py
index 1edf8f87..3f24b244 100755
--- a/scripts/dpdk_setup_ports.py
+++ b/scripts/dpdk_setup_ports.py
@@ -543,7 +543,11 @@ Other network devices
else:
print('WARNING: Some other program is using DPDK driver.\nIf it is TRex and you did not configure it for dual run, current command will fail.')
if map_driver.parent_args.stl:
- ret = os.system('%s scapy_daemon_server restart' % sys.executable)
+ try:
+ master_core = self.m_cfg_dict[0]['platform']['master_thread_id']
+ except:
+ master_core = 0
+ ret = os.system('%s scapy_daemon_server restart -c %s' % (sys.executable, master_core))
if ret:
sys.exit(1)