Merge "Remove need to configure VF during DPDK deployment"
This commit is contained in:
commit
083ae1d515
@ -179,14 +179,15 @@ function process_dpdk_nics {
|
|||||||
|
|
||||||
iface=$(get_name_by_pci_id "${pci_id}")
|
iface=$(get_name_by_pci_id "${pci_id}")
|
||||||
|
|
||||||
if [ -n "${vf_index}" ]; then
|
if [ -n "${iface}" ]; then
|
||||||
vf_string="vf ${vf_index}"
|
ip link set ${iface} promisc on
|
||||||
|
if [ -n "${vf_index}" ]; then
|
||||||
|
vf_string="vf ${vf_index}"
|
||||||
|
ip link set ${iface} ${vf_string} trust on
|
||||||
|
ip link set ${iface} ${vf_string} spoofchk off
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ip link set ${iface} promisc on
|
|
||||||
ip link set ${iface} ${vf_string} trust on
|
|
||||||
ip link set ${iface} ${vf_string} spoofchk off
|
|
||||||
|
|
||||||
# Fetch the PCI to be bound to DPDK driver.
|
# Fetch the PCI to be bound to DPDK driver.
|
||||||
# In case VF Index is configured then PCI of that particular VF
|
# In case VF Index is configured then PCI of that particular VF
|
||||||
# is bound to DPDK, otherwise PF PCI is bound to DPDK.
|
# is bound to DPDK, otherwise PF PCI is bound to DPDK.
|
||||||
@ -262,14 +263,15 @@ function process_dpdk_bonds {
|
|||||||
|
|
||||||
iface=$(get_name_by_pci_id "${pci_id}")
|
iface=$(get_name_by_pci_id "${pci_id}")
|
||||||
|
|
||||||
if [ -n "${vf_index}" ]; then
|
if [ -n "${iface}" ]; then
|
||||||
vf_string="vf ${vf_index}"
|
ip link set ${iface} promisc on
|
||||||
|
if [ -n "${vf_index}" ]; then
|
||||||
|
vf_string="vf ${vf_index}"
|
||||||
|
ip link set ${iface} ${vf_string} trust on
|
||||||
|
ip link set ${iface} ${vf_string} spoofchk off
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ip link set ${iface} promisc on
|
|
||||||
ip link set ${iface} ${vf_string} trust on
|
|
||||||
ip link set ${iface} ${vf_string} spoofchk off
|
|
||||||
|
|
||||||
# Fetch the PCI to be bound to DPDK driver.
|
# Fetch the PCI to be bound to DPDK driver.
|
||||||
# In case VF Index is configured then PCI of that particular VF
|
# In case VF Index is configured then PCI of that particular VF
|
||||||
# is bound to DPDK, otherwise PF PCI is bound to DPDK.
|
# is bound to DPDK, otherwise PF PCI is bound to DPDK.
|
||||||
|
@ -21,3 +21,4 @@ conf:
|
|||||||
migrate_ip: true
|
migrate_ip: true
|
||||||
bridges:
|
bridges:
|
||||||
- name: br-phy
|
- name: br-phy
|
||||||
|
bonds: []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user