From f00777e57d4da05d65a292b2a797f99d853a43e1 Mon Sep 17 00:00:00 2001 From: Hemachandra Reddy Date: Tue, 28 Jan 2020 18:24:35 +0000 Subject: [PATCH] Make sure requested mtu is set The 'options' keyword for setting mtu in 'set interface' does not set mtu and it seems to ignore/fail the request silently. Change-Id: Icec98c5166611a8c538f93e6326cf7d20b545ecd --- neutron/templates/bin/_neutron-openvswitch-agent-init.sh.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neutron/templates/bin/_neutron-openvswitch-agent-init.sh.tpl b/neutron/templates/bin/_neutron-openvswitch-agent-init.sh.tpl index e0d72c2da8..d7c4347932 100644 --- a/neutron/templates/bin/_neutron-openvswitch-agent-init.sh.tpl +++ b/neutron/templates/bin/_neutron-openvswitch-agent-init.sh.tpl @@ -216,7 +216,7 @@ function process_dpdk_nics { fi mtu=$(get_dpdk_config_value ${nic} '.mtu') if [ -n "${mtu}" ]; then - dpdk_options+='options:mtu_request=${mtu} ' + dpdk_options+='mtu_request=${mtu} ' fi n_rxq_size=$(get_dpdk_config_value ${nic} '.n_rxq_size') if [ -n "${n_rxq_size}" ]; then @@ -293,7 +293,7 @@ function process_dpdk_bonds { dev_args_str+=" -- set Interface "${nic_name}" type=dpdk options:dpdk-devargs=""${dpdk_pci_id}" if [[ -n ${mtu} ]]; then - dev_args_str+=" -- set Interface "${nic_name}" options:mtu_request=${mtu}" + dev_args_str+=" -- set Interface "${nic_name}" mtu_request=${mtu}" fi if [[ -n ${n_rxq} ]]; then