From 6142f32c0293a47b96128e30b48cece6cd603753 Mon Sep 17 00:00:00 2001 From: Roy Tang Date: Fri, 21 Feb 2020 10:28:16 -0600 Subject: [PATCH] Update neutron ovs-agent init There is a bug with the Intel i40e driver version 2.11.21 or earlier where the interface VF spoof check must be toggle on and off after bond is created (TODO: insert release note or bug here) Change-Id: I9723e52fc87291f5e90df29a154c04180cbfe955 --- .../templates/bin/_neutron-openvswitch-agent-init.sh.tpl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/neutron/templates/bin/_neutron-openvswitch-agent-init.sh.tpl b/neutron/templates/bin/_neutron-openvswitch-agent-init.sh.tpl index f893b76284..b1534344a1 100644 --- a/neutron/templates/bin/_neutron-openvswitch-agent-init.sh.tpl +++ b/neutron/templates/bin/_neutron-openvswitch-agent-init.sh.tpl @@ -184,6 +184,10 @@ function process_dpdk_nics { if [ -n "${vf_index}" ]; then vf_string="vf ${vf_index}" ip link set ${iface} ${vf_string} trust on + + # NOTE: To ensure proper toggle of spoofchk, + # turn it on then off. + ip link set ${iface} ${vf_string} spoofchk on ip link set ${iface} ${vf_string} spoofchk off fi fi @@ -278,6 +282,10 @@ function process_dpdk_bonds { if [ -n "${vf_index}" ]; then vf_string="vf ${vf_index}" ip link set ${iface} ${vf_string} trust on + + # NOTE: To ensure proper toggle of spoofchk, + # turn it on then off. + ip link set ${iface} ${vf_string} spoofchk on ip link set ${iface} ${vf_string} spoofchk off fi fi