diff options
author | 2017-05-22 16:41:09 +0530 | |
---|---|---|
committer | 2017-05-23 18:15:30 +0530 | |
commit | 2aa95a88109a96e24ea4329364a2ecc07fe575fd (patch) | |
tree | 167d49cfd55aecae2dd2cf8f1e36db35a94562dd /os_net_config/impl_ifcfg.py | |
parent | e7e81ac01122dd1b7711116d583a69fb655e0bca (diff) |
Configure multi-queue value for DPDK Port
The multi-queue option for DPDK is applied via ovs-vsctl command
via ovs_extra params. This patch adds support for configuring the
rx_queue (multi-queue) value to the DPDK Ports.
Change-Id: Ib9faad5e9d49f78e3a0b45ef3ae0082f3e9d14a6
Co-Authored-By: Karthik S <ksundara@redhat.com>
implements: blueprint ovs-2-6-features-dpdk
Diffstat (limited to 'os_net_config/impl_ifcfg.py')
-rw-r--r-- | os_net_config/impl_ifcfg.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/os_net_config/impl_ifcfg.py b/os_net_config/impl_ifcfg.py index 6f35688..4658b93 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, |