VirtualBox

Ignore:
Timestamp:
Jul 19, 2011 8:18:52 AM (13 years ago)
Author:
vboxsync
Message:

netflt: RHEL5 fix

File:
1 edited

Legend:

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

    r38007 r38050  
    906906    if (   !VALID_PTR(pOverride)
    907907        || pOverride->u32Magic != VBOXNETDEVICEOPSOVERRIDE_MAGIC
    908 # if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29)
     908# if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) || defined(VBOXNETFLT_WITH_GRO)
    909909        || !VALID_PTR(pOverride->pOrgOps)
    910 # endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) */
     910# endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) || defined(VBOXNETFLT_WITH_GRO) */
    911911        )
    912912    {
     
    963963        return;
    964964    pOverride->pOrgOps              = pDev->OVR_OPS;
    965 # if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29)
     965# if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29) && !defined(VBOXNETFLT_WITH_GRO)
    966966    /**
    967967     * There is no need to save ethtool_ops structure since we only modify
     
    969969     */
    970970    pOverride->pfnStartXmit         = pDev->hard_start_xmit;
    971 # else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) */
     971# else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) || defined(VBOXNETFLT_WITH_GRO) */
    972972    pOverride->Ops                  = *pDev->OVR_OPS;
    973973    pOverride->Ops.ndo_start_xmit   = vboxNetFltLinuxStartXmitFilter;
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