]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
VMXNET: Fix compilation on kernel 2.6.34-rc1+
authorVMware, Inc <>
Mon, 22 Mar 2010 22:17:57 +0000 (15:17 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Mon, 22 Mar 2010 22:17:57 +0000 (15:17 -0700)
change_mtu() method was removed from netdevice and moved into
net_device_ops. HAVE_CHANGE_MTU was removed as well which
caused vmxnet_change_mtu to be omitted but it is still needed.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/modules/linux/vmxnet/vmxnet.c

index 3c70bc1fc87434e16d1407555bb41ba30cd6af89..e23ce629c6dc01093bfebea22422c9cca6e68f94 100644 (file)
@@ -78,7 +78,7 @@ static int vmxnet_close(struct net_device *dev);
 static void vmxnet_set_multicast_list(struct net_device *dev);
 static int vmxnet_set_mac_address(struct net_device *dev, void *addr);
 static struct net_device_stats *vmxnet_get_stats(struct net_device *dev);
-#ifdef HAVE_CHANGE_MTU
+#if defined(HAVE_CHANGE_MTU) || defined(HAVE_NET_DEVICE_OPS)
 static int vmxnet_change_mtu(struct net_device *dev, int new_mtu);
 #endif
 
@@ -271,7 +271,7 @@ static struct pci_driver vmxnet_driver = {
 #endif
                                          };
 
-#ifdef HAVE_CHANGE_MTU
+#if defined(HAVE_CHANGE_MTU) || defined(HAVE_NET_DEVICE_OPS)
 static int
 vmxnet_change_mtu(struct net_device *dev, int new_mtu)
 {