aboutsummaryrefslogtreecommitdiffstats
path: root/kud/deployment_infra/installers/entrypoint-iavf-driver-installer.sh
diff options
context:
space:
mode:
authorTodd Malsbary <todd.malsbary@intel.com>2021-10-01 13:51:00 -0700
committerTodd Malsbary <todd.malsbary@intel.com>2021-10-01 15:56:48 -0700
commite909ce962b520ef1deaf02f9b53889f0db9e9212 (patch)
treeafd5d03d8c1a7d72f415bdabf31e04cbc1f5e0ae /kud/deployment_infra/installers/entrypoint-iavf-driver-installer.sh
parentdc62323aa7f6782d69c7ac6509eb270e86ef31bd (diff)
Fix iavf driver build failure
With kernel 4.15.0-159, Ubuntu added the skb_frag_off functions to the kernel headers. Issue-ID: MULTICLOUD-1396 Signed-off-by: Todd Malsbary <todd.malsbary@intel.com> Change-Id: I283d6ea394ac4685be842339acd2a89548295b4f
Diffstat (limited to 'kud/deployment_infra/installers/entrypoint-iavf-driver-installer.sh')
-rwxr-xr-xkud/deployment_infra/installers/entrypoint-iavf-driver-installer.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/kud/deployment_infra/installers/entrypoint-iavf-driver-installer.sh b/kud/deployment_infra/installers/entrypoint-iavf-driver-installer.sh
index 6cfc373d..d47e3b97 100755
--- a/kud/deployment_infra/installers/entrypoint-iavf-driver-installer.sh
+++ b/kud/deployment_infra/installers/entrypoint-iavf-driver-installer.sh
@@ -2,6 +2,7 @@
#set -x
source _common.sh
+SCRIPT_DIR=$(readlink -f "$(dirname "${BASH_SOURCE[0]}")")
IAVF_DRIVER_VERSION="${IAVF_DRIVER_VERSION:-4.0.2}"
IAVF_DRIVER_DOWNLOAD_URL_DEFAULT="https://downloadmirror.intel.com/30305/eng/iavf-${IAVF_DRIVER_VERSION}.tar.gz"
@@ -27,10 +28,15 @@ download_iavf_src() {
pushd "${IAVF_INSTALL_DIR_CONTAINER}" > /dev/null
curl -L -sS "${IAVF_DRIVER_DOWNLOAD_URL}" -o "${IAVF_DRIVER_ARCHIVE}"
tar xf "${IAVF_DRIVER_ARCHIVE}" --strip-components=1
+ info "Patching IAVF source ... "
+ # Ubuntu 18.04 added the skb_frag_off definitions to the kernel
+ # headers beginning with 4.15.0-159
+ patch -p1 < "${SCRIPT_DIR}/skb-frag-off.patch"
popd > /dev/null
}
build_iavf_src() {
+
info "Building IAVF source ... "
pushd "${IAVF_INSTALL_DIR_CONTAINER}/src" > /dev/null
KSRC=${KERNEL_SRC_DIR} SYSTEM_MAP_FILE="${ROOT_MOUNT_DIR}/boot/System.map-$(uname -r)" INSTALL_MOD_PATH="${ROOT_MOUNT_DIR}" make install