From b769c6c95aa66942415fbe2187b18f9bd340d9b5 Mon Sep 17 00:00:00 2001 From: Antonio_Fischetti Date: Fri, 6 Jan 2017 19:39:17 +0000 Subject: ovs-dpdk port setup: specify PCI slot. Update to use options:dpdk-devargs coming from the Arbitray Port Naming feature lately upstreamed in Ovs-DPDK project. See Commit ID: 55e075e65ef9ecbd70e5e0fada2704c3d73724d8. By this new param you can explicitly select a PCI slot for a dpdk port. JIRA: VSPERF-449 Change-Id: Id6028cc4efbaf228a99c6f0a346a8e96a82e43a6 Signed-off-by: Antonio Fischetti Reviewed-by: Maryam Tahhan Reviewed-by: Martin Klozik martinx.klozik@intel.com Reviewed-by: Al Morton Reviewed-by: Christian Trautman Reviewed-by: Reviewed-by: --- vswitches/ovs_dpdk_vhost.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'vswitches') diff --git a/vswitches/ovs_dpdk_vhost.py b/vswitches/ovs_dpdk_vhost.py index 67011d20..a2731478 100644 --- a/vswitches/ovs_dpdk_vhost.py +++ b/vswitches/ovs_dpdk_vhost.py @@ -108,7 +108,11 @@ class OvsDpdkVhost(IVSwitchOvs): bridge = self._bridges[switch_name] dpdk_count = self._get_port_count('type=dpdk') port_name = 'dpdk' + str(dpdk_count) - params = ['--', 'set', 'Interface', port_name, 'type=dpdk'] + # PCI info. Please note there must be no blank space, eg must be + # like 'options:dpdk-devargs=0000:06:00.0' + _NICS = settings.getValue('NICS') + nic_pci = 'options:dpdk-devargs=' + _NICS[dpdk_count]['pci'] + params = ['--', 'set', 'Interface', port_name, 'type=dpdk', nic_pci] # multi-queue enable if int(settings.getValue('VSWITCH_DPDK_MULTI_QUEUES')) and \ -- cgit 1.2.3-korg