summaryrefslogtreecommitdiffstats
path: root/vnfs/qemu/qemu_dpdk_vhost_user.py
diff options
context:
space:
mode:
authorChristian Trautman <ctrautma@redhat.com>2017-01-11 15:00:52 -0500
committerChristian Trautman <ctrautma@redhat.com>2017-01-13 17:57:37 -0500
commit3ea19952db315e88263437ed41b0c31bd3bdbdf4 (patch)
tree9499954b7606bd7f54678898e9b3dcf139116de4 /vnfs/qemu/qemu_dpdk_vhost_user.py
parent5bd06d3527c2ade600cab62764aed06f344986bc (diff)
testpmd_pvp: Adds pkt_fwd to allow pvp topology testing
Requires DPDK 16.11 or greater to support vdev flags. Initial support for TestPMD to support guests. Allows vsperf to execute TestPMD as a switch for pvp test scenarios. Can be increased in functionality later to support multiple guest configs. JIRA: VSPERF-406 Change-Id: I67a5a355c990ca6cfcbb5845a2beaf1c1f21f5f0 Signed-off-by: Christian Trautman <ctrautma@redhat.com>
Diffstat (limited to 'vnfs/qemu/qemu_dpdk_vhost_user.py')
-rw-r--r--vnfs/qemu/qemu_dpdk_vhost_user.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/vnfs/qemu/qemu_dpdk_vhost_user.py b/vnfs/qemu/qemu_dpdk_vhost_user.py
index 51c10242..f09ded13 100644
--- a/vnfs/qemu/qemu_dpdk_vhost_user.py
+++ b/vnfs/qemu/qemu_dpdk_vhost_user.py
@@ -56,9 +56,16 @@ class QemuDpdkVhostUser(IVnfQemu):
ifi = str(index)
net = 'net' + str(index + 1)
+ # In case of testpmd as switch, path to vhost netdev folder will be set
+ # to tmp location instead of default ovs_var_tmp folder.
+ if S.getValue('VSWITCH') == 'none':
+ vhost_folder = '/tmp/'
+ else:
+ vhost_folder = S.getValue('TOOLS')['ovs_var_tmp']
+
self._cmd += ['-chardev',
'socket,id=char' + ifi +
- ',path=' + S.getValue('TOOLS')['ovs_var_tmp'] +
+ ',path=' + vhost_folder +
'dpdkvhostuser' + ifi,
'-netdev',
'type=vhost-user,id=' + net +