diff options
author | Karthik S <ksundara@redhat.com> | 2017-05-31 05:29:33 -0400 |
---|---|---|
committer | Karthik S <ksundara@redhat.com> | 2017-05-31 05:29:33 -0400 |
commit | c8901b8ac34cf180c0a62c39a2b31def9c28aaf3 (patch) | |
tree | 00a625a3bd7100c0ac582a611d3d3c450f04c71f /os_net_config/impl_ifcfg.py | |
parent | cc7ff987cae3452a28f85ca3cabef49a3a64a2ff (diff) |
Multiqueue support for OvsDpdkBond
This patch allows the Multiqueue setting for DPDK bonds. In case of DPDK
bonds, the Multiqueue setting needs to be done for each of the interfaces
attached to the bond.
Implements: blueprint ovs-2-6-features-dpdk
Signed-off-by: Karthik S <ksundara@redhat.com>
Change-Id: I21b46cee902a17f13df51d456648368e468aadb7
Diffstat (limited to 'os_net_config/impl_ifcfg.py')
-rw-r--r-- | os_net_config/impl_ifcfg.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/os_net_config/impl_ifcfg.py b/os_net_config/impl_ifcfg.py index 18de8fc..d33ebd2 100644 --- a/os_net_config/impl_ifcfg.py +++ b/os_net_config/impl_ifcfg.py @@ -322,6 +322,11 @@ class IfcfgNetConfig(os_net_config.NetConfig): for member in base_opt.members: ovs_extra.append("set Interface %s mtu_request=$MTU" % member.name) + if base_opt.rx_queue: + data += "RX_QUEUE=%i\n" % base_opt.rx_queue + for member in base_opt.members: + ovs_extra.append("set Interface %s options:n_rxq=" + "$RX_QUEUE" % member.name) if base_opt.ovs_options: data += "OVS_OPTIONS=\"%s\"\n" % base_opt.ovs_options ovs_extra.extend(base_opt.ovs_extra) |