From 01455386f7186721ffd7578d95a84580a5ff7087 Mon Sep 17 00:00:00 2001 From: Martin Klozik Date: Thu, 20 Jul 2017 15:49:16 +0100 Subject: dpdk: Support dpdk vhost-user client mode Support of vhost-user client mode has been added for both OVS and VPP. VSPERF configures vhost-user server mode in vswitches by default for backward compatibility. Support of vhost-user server mode is deprecated in OVS and it can be removed in future releases. Once it will happen, we have to change vsperf default behavior to usage of vhost-user client ports at vswitch side. This patch also fixes processing of boolean configuration parameters passed via --test-params option. In the past it was not possible to set boolean value to False through --test-params option. JIRA: VSPERF-517 Change-Id: I65e341f820edd6c720043a4acc74c5140b05db18 Signed-off-by: Martin Klozik Reviewed-by: Al Morton Reviewed-by: Christian Trautman Reviewed-by: Sridhar Rao Reviewed-by: Trevor Cooper --- vnfs/qemu/qemu_dpdk_vhost_user.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vnfs') diff --git a/vnfs/qemu/qemu_dpdk_vhost_user.py b/vnfs/qemu/qemu_dpdk_vhost_user.py index 3e9aecc8..93147838 100644 --- a/vnfs/qemu/qemu_dpdk_vhost_user.py +++ b/vnfs/qemu/qemu_dpdk_vhost_user.py @@ -68,10 +68,11 @@ class QemuDpdkVhostUser(IVnfQemu): else: vhost_folder = S.getValue('TOOLS')['ovs_var_tmp'] + nic_mode = '' if S.getValue('VSWITCH_VHOSTUSER_SERVER_MODE') else ',server' self._cmd += ['-chardev', 'socket,id=char' + ifi + ',path=' + vhost_folder + - 'dpdkvhostuser' + ifi, + 'dpdkvhostuser' + ifi + nic_mode, '-netdev', 'type=vhost-user,id=' + net + ',chardev=char' + ifi + ',vhostforce' + queue_str, -- cgit 1.2.3-korg