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
This commit is contained in:
Roy Tang 2020-02-21 10:28:16 -06:00 committed by Roy Tang
parent 8a7b7ba086
commit 6142f32c02

View File

@ -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