aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/DpdkUtil.py
diff options
context:
space:
mode:
Diffstat (limited to 'resources/libraries/python/DpdkUtil.py')
-rw-r--r--resources/libraries/python/DpdkUtil.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/resources/libraries/python/DpdkUtil.py b/resources/libraries/python/DpdkUtil.py
index 5eea0d6c26..e7727c1101 100644
--- a/resources/libraries/python/DpdkUtil.py
+++ b/resources/libraries/python/DpdkUtil.py
@@ -62,6 +62,11 @@ class DpdkUtil(object):
# Disable RSS (Receive Side Scaling).
pmd_disable_rss = '--disable-rss '\
if args.get('pmd_disable_rss', '') else ''
+ # Set the MAC address XX:XX:XX:XX:XX:XX of the peer port N
+ pmd_eth_peer_0 = '--eth-peer={} '.format(args['pmd_eth_peer_0'])\
+ if args.get('pmd_eth_peer_0', '') else ''
+ pmd_eth_peer_1 = '--eth-peer={} '.format(args['pmd_eth_peer_1'])\
+ if args.get('pmd_eth_peer_1', '') else ''
# Set the hexadecimal bitmask of the cores running forwarding. Master
# lcore=0 is reserved, so highest bit is set to 0.
pmd_coremask = '--coremask={} '.format(\
@@ -86,6 +91,8 @@ class DpdkUtil(object):
+ pmd_portmask\
+ pmd_disable_hw_vlan\
+ pmd_disable_rss\
+ + pmd_eth_peer_0\
+ + pmd_eth_peer_1\
+ pmd_coremask\
+ pmd_nb_cores
ssh = SSH()