Fixes for issue 1606971:

[Qlogic] Low number of VF is incorrectly handled by plugin

Change-Id: Ia53fd18c6a8f46aa93568a283ed534d2bde21503
This commit is contained in:
Rick Hicksted 2016-08-16 08:01:07 -07:00
parent 5c4efb3e9a
commit c9bbcc804a
4 changed files with 14 additions and 2 deletions

View File

@ -27,6 +27,8 @@ for interface_name in $ethx; do
fi
fi
done
sleep 20;
#Find out Supported NIC with Link UP
count_eths_up=0
for i in "${q_eths[@]}"
@ -43,7 +45,7 @@ echo "SR-IOV Supported Nic with Link up: ${q_eths_up[0]}"
# Enable VFs
q_eth_len=${#q_eths_up[@]}
n_10G_vfs=$VFS
n_10G_vfs=$E3VFS
for (( count = 0; count < ${q_eth_len} ; count++ ));
do
sriov_totalvfs=`cat /sys/class/net/${q_eths_up[$count]}/device/sriov_totalvfs`

View File

@ -7,5 +7,15 @@ if ! grep -q 'GRUB_CMDLINE_LINUX_DEFAULT.*intel_iommu=on' /etc/default/grup;
then
sed -ri '/^GRUB_CMDLINE_LINUX_DEFAULT\s*=/ s/^(.*)"$/\1 intel_iommu=on"/' /etc/default/grub
fi
#update grub file
update-grub
#findout bnx2x driver package and install it.
debpk=`ls ./debpackage/bnx2x*`
dpkg -i $debpk
#update module.dep file
depmod -a
#update initramfs
update-initramfs -u -k all

View File

@ -2,7 +2,7 @@ attributes:
nic_10G:
value: false
label: 'Enbale SR-IOV for QLogic NX2 10G Ethernet'
label: 'Enable SR-IOV for QLogic NX2 10G Ethernet'
Description: 'Enable SRIOV Support for QLogic NX2 10GbE Single and Dual Port Adapter'
weight: 10
type: 'checkbox'