Changeset 38050 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt/linux
- Timestamp:
- Jul 19, 2011 8:18:52 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
r38007 r38050 906 906 if ( !VALID_PTR(pOverride) 907 907 || 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) 909 909 || !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) */ 911 911 ) 912 912 { … … 963 963 return; 964 964 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) 966 966 /** 967 967 * There is no need to save ethtool_ops structure since we only modify … … 969 969 */ 970 970 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) */ 972 972 pOverride->Ops = *pDev->OVR_OPS; 973 973 pOverride->Ops.ndo_start_xmit = vboxNetFltLinuxStartXmitFilter;
Note:
See TracChangeset
for help on using the changeset viewer.