Merge "Update neutron ovs-agent init"

This commit is contained in:
Zuul 2020-03-19 00:37:40 +00:00 committed by Gerrit Code Review
commit 915276f4f7

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