Author: adamg Date: Sun Jan 31 13:41:52 2010 GMT Module: packages Tag: HEAD ---- Log message: - new; buildfix for kernels 2.6.31+
---- Files affected: packages/VMware-server: VMware-server-linux-2.6.31.patch (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/VMware-server/VMware-server-linux-2.6.31.patch diff -u /dev/null packages/VMware-server/VMware-server-linux-2.6.31.patch:1.1 --- /dev/null Sun Jan 31 14:41:52 2010 +++ packages/VMware-server/VMware-server-linux-2.6.31.patch Sun Jan 31 14:41:47 2010 @@ -0,0 +1,39 @@ +patch from: http://communities.vmware.com/thread/231812 + +diff -Naur ./vmnet-only/netif.c.org ./vmnet-only/netif.c +--- ./vmnet-only/netif.c.org 2009-10-22 09:55:41.937580511 +0200 ++++ ./vmnet-only/netif.c 2009-10-22 09:55:41.937580511 +0200 +@@ -194,10 +194,25 @@ + *---------------------------------------------------------------------- + */ + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 30) ++static const struct net_device_ops vnet_netdev_ops = { ++ .ndo_init = VNetNetifProbe, ++ .ndo_open = VNetNetifOpen, ++ .ndo_start_xmit = VNetNetifStartXmit, ++ .ndo_stop = VNetNetifClose, ++ .ndo_get_stats = VNetNetifGetStats, ++ .ndo_set_mac_address = VNetNetifSetMAC, ++ .ndo_set_multicast_list = VNetNetifSetMulticast, ++}; ++#endif ++ + static void + VNetNetIfSetup(struct net_device *dev) // IN: + { + ether_setup(dev); // turns on IFF_BROADCAST, IFF_MULTICAST ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 30) ++ dev->netdev_ops = &vnet_netdev_ops; ++#else + dev->init = VNetNetifProbe; + dev->open = VNetNetifOpen; + dev->hard_start_xmit = VNetNetifStartXmit; +@@ -205,6 +220,7 @@ + dev->get_stats = VNetNetifGetStats; + dev->set_mac_address = VNetNetifSetMAC; + dev->set_multicast_list = VNetNetifSetMulticast; ++#endif + #ifdef KERNEL_2_3_43 + /* + * We cannot stuck... If someone will report problems under ================================================================ _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit