Remove need to configure VF during DPDK deployment
The current configuration expects VF & bonding info by default. This patch set removes the need to configure them for every deployment. Change-Id: Id546c113b2d3c42591a0326ee8cd442cccc73578
This commit is contained in:
parent
d2abe39d49
commit
05bff26162
@ -175,13 +175,14 @@ function process_dpdk_nics {
|
||||
|
||||
iface=$(get_name_by_pci_id "${pci_id}")
|
||||
|
||||
if [ -n "${iface}" ]; then
|
||||
ip link set ${iface} promisc on
|
||||
if [ -n "${vf_index}" ]; then
|
||||
vf_string="vf ${vf_index}"
|
||||
fi
|
||||
|
||||
ip link set ${iface} promisc on
|
||||
ip link set ${iface} ${vf_string} trust on
|
||||
ip link set ${iface} ${vf_string} spoofchk off
|
||||
fi
|
||||
fi
|
||||
|
||||
# Fetch the PCI to be bound to DPDK driver.
|
||||
# In case VF Index is configured then PCI of that particular VF
|
||||
@ -258,13 +259,14 @@ function process_dpdk_bonds {
|
||||
|
||||
iface=$(get_name_by_pci_id "${pci_id}")
|
||||
|
||||
if [ -n "${iface}" ]; then
|
||||
ip link set ${iface} promisc on
|
||||
if [ -n "${vf_index}" ]; then
|
||||
vf_string="vf ${vf_index}"
|
||||
fi
|
||||
|
||||
ip link set ${iface} promisc on
|
||||
ip link set ${iface} ${vf_string} trust on
|
||||
ip link set ${iface} ${vf_string} spoofchk off
|
||||
fi
|
||||
fi
|
||||
|
||||
# Fetch the PCI to be bound to DPDK driver.
|
||||
# In case VF Index is configured then PCI of that particular VF
|
||||
|
@ -21,3 +21,4 @@ conf:
|
||||
migrate_ip: true
|
||||
bridges:
|
||||
- name: br-phy
|
||||
bonds: []
|
||||
|
Loading…
Reference in New Issue
Block a user