sriovdp does not work after
https://gerrit.akraino.org/r/c/ta/infra-ansible/+/2237
sriovdp_config: Improvements and fixes. Modification
is need to init.sh script.
Signed-off-by: mikarautakumpu <mika.rautakumpu@nokia.com>
Change-Id: Ia3a7e19f09f845b787715701bb5786174b31b24c
%define COMPONENT sriovdp
%define RPM_NAME caas-%{COMPONENT}
%define RPM_MAJOR_VERSION 3.1.0
%define COMPONENT sriovdp
%define RPM_NAME caas-%{COMPONENT}
%define RPM_MAJOR_VERSION 3.1.0
-%define RPM_MINOR_VERSION 0
+%define RPM_MINOR_VERSION 1
%define IMAGE_TAG %{RPM_MAJOR_VERSION}-%{RPM_MINOR_VERSION}
%define go_version 1.12.10
%define SRIOVDP 3.1
%define IMAGE_TAG %{RPM_MAJOR_VERSION}-%{RPM_MINOR_VERSION}
%define go_version 1.12.10
%define SRIOVDP 3.1
rootdevs=`jq -r .resourceList[].rootDevices[] </etc/pcidp/config.json 2>/dev/null`
if [[ -n "$rootdevs" ]]; then
for pci in $rootdevs; do
rootdevs=`jq -r .resourceList[].rootDevices[] </etc/pcidp/config.json 2>/dev/null`
if [[ -n "$rootdevs" ]]; then
for pci in $rootdevs; do
- vf=`cat /sys/bus/pci/devices/0000:$pci/sriov_numvfs`
+ vf=`cat /sys/bus/pci/devices/$pci/sriov_numvfs`
echo "$pci: $vf VFs"
if [[ -z "$vf" || "$vf" == "0" ]]; then
echo "No VFs found -> SR-IOV DP cannot be started"
echo "$pci: $vf VFs"
if [[ -z "$vf" || "$vf" == "0" ]]; then
echo "No VFs found -> SR-IOV DP cannot be started"