summaryrefslogtreecommitdiffstats
path: root/kud/deployment_infra/installers/skb-frag-off.patch
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/skb-frag-off.patch
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/skb-frag-off.patch')
-rw-r--r--kud/deployment_infra/installers/skb-frag-off.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/kud/deployment_infra/installers/skb-frag-off.patch b/kud/deployment_infra/installers/skb-frag-off.patch
new file mode 100644
index 00000000..935828ee
--- /dev/null
+++ b/kud/deployment_infra/installers/skb-frag-off.patch
@@ -0,0 +1,14 @@
+diff --git a/src/kcompat.h b/src/kcompat.h
+index 21e9818..97abc2f 100644
+--- a/src/kcompat.h
++++ b/src/kcompat.h
+@@ -7074,7 +7074,8 @@ devlink_flash_update_status_notify(struct devlink __always_unused *devlink,
+ /*****************************************************************************/
+ #if (LINUX_VERSION_CODE < KERNEL_VERSION(5,4,0))
+ #if (!(RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8,2)) && \
+- !(SLE_VERSION_CODE >= SLE_VERSION(15,2,0)))
++ !(SLE_VERSION_CODE >= SLE_VERSION(15,2,0)) && \
++ !(UBUNTU_VERSION_CODE >= UBUNTU_VERSION(4,15,0,159)))
+ static inline unsigned int skb_frag_off(const skb_frag_t *frag)
+ {
+ return frag->page_offset;