Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 387292 Details for
Bug 526636
app-emulation/open-vm-tools-kmod and kernel 3.16
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
9.4.6-0006-Fix-vmxnet-module-on-kernels-3.16.patch
9.4.6-0006-Fix-vmxnet-module-on-kernels-3.16.patch (text/plain), 2.25 KB, created by
nico
on 2014-10-24 10:58:06 UTC
(
hide
)
Description:
9.4.6-0006-Fix-vmxnet-module-on-kernels-3.16.patch
Filename:
MIME Type:
Creator:
nico
Created:
2014-10-24 10:58:06 UTC
Size:
2.25 KB
patch
obsolete
>From 4601d767d60e9a377c285994266c6fef49cae550 Mon Sep 17 00:00:00 2001 >From: "Scott M. Kroll" <skroll@gmail.com> >Date: Fri, 15 Aug 2014 10:40:38 -0400 >Subject: [PATCH 10/11] Fix vmxnet module on kernels >= 3.16 > >* Add compat check for ethtool_ops in net_device struct. >* SET_ETHTOOL_OPS is no longer defined, but can be manually. >--- > open-vm-tools/modules/linux/shared/compat_netdevice.h | 4 ++++ > open-vm-tools/modules/linux/vmxnet/vmxnet.c | 13 ++++++++----- > 2 files changed, 12 insertions(+), 5 deletions(-) > >diff --git a/open-vm-tools/modules/linux/shared/compat_netdevice.h b/open-vm-tools/modules/linux/shared/compat_netdevice.h >index 3aec25b..a65d59b 100644 >--- a/open-vm-tools/modules/linux/shared/compat_netdevice.h >+++ b/open-vm-tools/modules/linux/shared/compat_netdevice.h >@@ -337,4 +337,8 @@ typedef netdev_features_t compat_netdev_features_t; > typedef u32 compat_netdev_features_t; > #endif > >+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 16, 0) || defined(SET_ETHTOOL_OPS) >+#define VMW_HAVE_ETHTOOL_OPS 1 >+#endif >+ > #endif /* __COMPAT_NETDEVICE_H__ */ >diff --git a/open-vm-tools/modules/linux/vmxnet/vmxnet.c b/open-vm-tools/modules/linux/vmxnet/vmxnet.c >index 54b4590..7fb5692 100644 >--- a/open-vm-tools/modules/linux/vmxnet/vmxnet.c >+++ b/open-vm-tools/modules/linux/vmxnet/vmxnet.c >@@ -283,8 +283,7 @@ vmxnet_change_mtu(struct net_device *dev, int new_mtu) > > #endif > >- >-#ifdef SET_ETHTOOL_OPS >+#ifdef VMW_HAVE_ETHTOOL_OPS > /* > *---------------------------------------------------------------------------- > * >@@ -530,7 +529,7 @@ vmxnet_ethtool_ops = { > }; > > >-#else /* !defined(SET_ETHTOOL_OPS) */ >+#else /* !defined(VMW_HAVE_ETHTOOL_OPS) */ > > > /* >@@ -743,7 +742,7 @@ vmxnet_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) > } > return -EOPNOTSUPP; > } >-#endif /* SET_ETHTOOL_OPS */ >+#endif /* !defined(VMW_HAVE_ETHTOOL_OPS) */ > > > /* >@@ -1142,8 +1141,12 @@ vmxnet_probe_device(struct pci_dev *pdev, // IN: vmxnet PCI device > dev->watchdog_timeo = VMXNET_WATCHDOG_TIMEOUT; > #endif > >-#ifdef SET_ETHTOOL_OPS >+#ifdef VMW_HAVE_ETHTOOL_OPS >+# ifdef SET_ETHTOOL_OPS > SET_ETHTOOL_OPS(dev, &vmxnet_ethtool_ops); >+# else >+ dev->ethtool_ops = &vmxnet_ethtool_ops; >+# endif > #else > dev->do_ioctl = vmxnet_ioctl; > #endif >-- >2.0.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 526636
: 387292 |
387294
|
387296