aboutsummaryrefslogtreecommitdiffstats
path: root/os_net_config/impl_ifcfg.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-06-08 04:04:43 +0000
committerGerrit Code Review <review@openstack.org>2017-06-08 04:04:43 +0000
commit9626b44cc931e899d22b1285b7acab87f0e67fe8 (patch)
treebeb8d154c71821040dd94e8477eb37954d534d60 /os_net_config/impl_ifcfg.py
parentcc7ff987cae3452a28f85ca3cabef49a3a64a2ff (diff)
parent2aa95a88109a96e24ea4329364a2ecc07fe575fd (diff)
Merge "Configure multi-queue value for DPDK Port"
Diffstat (limited to 'os_net_config/impl_ifcfg.py')
-rw-r--r--os_net_config/impl_ifcfg.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/os_net_config/impl_ifcfg.py b/os_net_config/impl_ifcfg.py
index 18de8fc..d98df31 100644
--- a/os_net_config/impl_ifcfg.py
+++ b/os_net_config/impl_ifcfg.py
@@ -301,6 +301,10 @@ class IfcfgNetConfig(os_net_config.NetConfig):
data += "OVS_BRIDGE=%s\n" % base_opt.bridge_name
if base_opt.mtu:
ovs_extra.append("set Interface $DEVICE mtu_request=$MTU")
+ if base_opt.rx_queue:
+ data += "RX_QUEUE=%i\n" % base_opt.rx_queue
+ ovs_extra.append("set Interface $DEVICE " +
+ "options:n_rxq=$RX_QUEUE")
elif isinstance(base_opt, objects.OvsDpdkBond):
ovs_extra.extend(base_opt.ovs_extra)
# Referring to bug:1643026, the below commenting of the interfaces,