summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuilherme Amadio <amadio@gentoo.org>2017-11-27 15:02:30 +0100
committerGuilherme Amadio <amadio@gentoo.org>2017-11-28 00:00:01 +0100
commit148d258205d9dac8c75d6b5ae041e6a96de5b075 (patch)
tree6e96cb334bc05ecf13442c05f2830e5f1dc9efcc /app-emulation/virtualbox-modules/files
parentdev-util/radare2: drop old (diff)
downloadgentoo-148d258205d9dac8c75d6b5ae041e6a96de5b075.tar.gz
gentoo-148d258205d9dac8c75d6b5ae041e6a96de5b075.tar.bz2
gentoo-148d258205d9dac8c75d6b5ae041e6a96de5b075.zip
app-emulation/virtualbox-modules: support linux 4.14.x, fix bug #636484
SKB_GSO_UDP has been removed in linux by commit d9d30adf56777c402c0027c0e6ae21f17cc0a365. Reported-by: Fabio Rossi <rossi.f@inwind.it> Suggested-by: Herb Miller Jr. <herb@hlmjr.com> Closes: https://bugs.gentoo.org/636484 Package-Manager: Portage-2.3.16, Repoman-2.3.6
Diffstat (limited to 'app-emulation/virtualbox-modules/files')
-rw-r--r--app-emulation/virtualbox-modules/files/virtualbox-modules-5.1.30-udp.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/app-emulation/virtualbox-modules/files/virtualbox-modules-5.1.30-udp.patch b/app-emulation/virtualbox-modules/files/virtualbox-modules-5.1.30-udp.patch
new file mode 100644
index 000000000000..b9f695e49a1b
--- /dev/null
+++ b/app-emulation/virtualbox-modules/files/virtualbox-modules-5.1.30-udp.patch
@@ -0,0 +1,35 @@
+diff --git a/work/vboxnetflt/linux/VBoxNetFlt-linux.c b/work/vboxnetflt/linux/VBoxNetFlt-linux.c
+index f824654..b61d82c 100644
+--- work/vboxnetflt/linux/VBoxNetFlt-linux.c
++++ work/vboxnetflt/linux/VBoxNetFlt-linux.c
+@@ -126,6 +126,10 @@ typedef struct VBOXNETFLTNOTIFIER *PVBOXNETFLTNOTIFIER;
+ # endif
+ #endif
+
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)
++#define SKB_GSO_UDP 0
++#endif
++
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 20, 0)
+ # define VBOX_HAVE_SKB_VLAN
+ #else
+diff --git a/work/vboxpci/linux/VBoxPci-linux.c b/work/vboxpci/linux/VBoxPci-linux.c
+index 2dbf47f..e361ef3 100644
+--- work/vboxpci/linux/VBoxPci-linux.c
++++ work/vboxpci/linux/VBoxPci-linux.c
+@@ -353,12 +353,16 @@ static void vboxPciFileClose(struct file* file)
+ static int vboxPciFileWrite(struct file* file, unsigned long long offset, unsigned char* data, unsigned int size)
+ {
+ int ret;
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)
++ ret = kernel_write(file, data, size, &offset);
++#else
+ mm_segment_t fs_save;
+
+ fs_save = get_fs();
+ set_fs(get_ds());
+ ret = vfs_write(file, data, size, &offset);
+ set_fs(fs_save);
++#endif
+ if (ret < 0)
+ printk(KERN_DEBUG "vboxPciFileWrite: error %d\n", ret);