diff options
author | pmikus <pmikus@cisco.com> | 2016-08-16 14:22:48 +0100 |
---|---|---|
committer | Miroslav Miklus <mmiklus@cisco.com> | 2016-08-22 13:43:23 +0000 |
commit | bdc400b3feacd10d8130dedaa7df8df2d2d57feb (patch) | |
tree | e89d73a4a4a9f9f061f7e58c7d2c9949fc2f272e /resources/libraries/python/DpdkUtil.py | |
parent | 7a55817df85a52c7ae9113f61c97195381c0499f (diff) |
CSIT-366 IPv4dp - baseline vhost-user
- Add test cases for vhost-user testing with
NIC(X520)-to-VM(testpmd,virtio)
Change-Id: I598e70221b939b2b08aa324d2c98059eee8b6857
Signed-off-by: pmikus <pmikus@cisco.com>
Diffstat (limited to 'resources/libraries/python/DpdkUtil.py')
-rw-r--r-- | resources/libraries/python/DpdkUtil.py | 7 |
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() |