VirtualBox

Changeset 31702 in vbox


Ignore:
Timestamp:
Aug 16, 2010 3:15:39 PM (14 years ago)
Author:
vboxsync
Message:

vboxnetflt: qdisc state fix for 2.6.36 and newer kernels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c

    r31680 r31702  
    223223#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 27)
    224224#define QDISC_IS_BUSY(dev, qdisc)  test_bit(__LINK_STATE_SCHED, &dev->state)
    225 #else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27) */
     225#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 36)
    226226#define QDISC_IS_BUSY(dev, qdisc) (test_bit(__QDISC_STATE_RUNNING, &qdisc->state) || \
    227227                                   test_bit(__QDISC_STATE_SCHED, &qdisc->state))
    228 #endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27) */
     228#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36) */
     229#define QDISC_IS_BUSY(dev, qdisc) (qdisc_is_running(q) || \
     230                                   test_bit(__QDISC_STATE_SCHED, &qdisc->state))
     231#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36) */
    229232
    230233struct VBoxNetQDiscPriv
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette