~ubuntu-branches/ubuntu/quantal/open-vm-tools/quantal-201210021442

« back to all changes in this revision

Viewing changes to modules/linux/shared/compat_netdevice.h

  • Committer: Bazaar Package Importer
  • Author(s): Serge Hallyn
  • Date: 2011-03-31 14:20:05 UTC
  • mfrom: (1.4.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110331142005-3n9red91p7ogkweo
Tags: 2011.03.28-387002-0ubuntu1
* Merge latest upstream git tag.  This has the unlocked_ioctl change
  needed to fix dkms build failures (LP: #727342)
* Changes in debian/rules:
  - work around a bug in toolbox/Makefile, where install-exec-hook is
    not happening.  This needs to get fixed the right way.
  - don't install 'vmware-user' which seems to no longer exist
  - move /etc/xdg into open-vm-toolbox (which should be done using .install)
* debian/open-vm-tools.init: add 'modprobe [-r] vmblock'. (LP: #332323)
* debian/rules and debian/open-vm-toolbox.lintian-overrides:
  - Make vmware-user-suid-wrapper suid-root (LP: #332323)

Show diffs side-by-side

added added

removed removed

Lines of Context:
280
280
        unregister_netdevice_notifier(_nb);
281
281
#endif
282
282
 
283
 
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 24)
 
283
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 24) || defined(__VMKLNX__)
284
284
 
285
285
#   define compat_netif_napi_add(dev, napi, poll, quota) \
286
286
      netif_napi_add(dev, napi, poll, quota)
299
299
 
300
300
#else
301
301
 
 
302
#   define compat_napi_complete(dev, napi) netif_rx_complete(dev)
302
303
#   define compat_napi_schedule(dev, napi) netif_rx_schedule(dev)
303
304
#   define compat_napi_enable(dev, napi)   netif_poll_enable(dev)
304
305
#   define compat_napi_disable(dev, napi)  netif_poll_disable(dev)
305
306
 
306
307
/* RedHat ported GRO to 2.6.18 bringing new napi_struct with it */
307
308
#   if defined NETIF_F_GRO
308
 
#      define compat_napi_complete(dev, napi) napi_complete(napi)
309
309
#      define compat_netif_napi_add(netdev, napi, pollcb, quota) \
310
310
      do {                        \
311
311
         (netdev)->poll = (pollcb);    \
314
314
      } while (0)
315
315
 
316
316
#   else
317
 
#      define compat_napi_complete(dev, napi) netif_rx_complete(dev)
318
317
       struct napi_struct {
319
318
          int dummy;
320
319
       };
341
340
#   define compat_netif_tx_unlock(dev) do {} while (0)
342
341
#endif
343
342
 
 
343
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
 
344
#   define COMPAT_VLAN_GROUP_ARRAY_LEN VLAN_N_VID
 
345
#else
 
346
#   define COMPAT_VLAN_GROUP_ARRAY_LEN VLAN_GROUP_ARRAY_LEN
 
347
#endif
 
348
 
344
349
#endif /* __COMPAT_NETDEVICE_H__ */