Changeset 30771 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt/linux
- Timestamp:
- Jul 9, 2010 5:26:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
r30732 r30771 122 122 #endif 123 123 124 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) 125 /** This enables or disables handling of GSO frames coming from the wire (GRO). */ 126 # define VBOXNETFLT_WITH_GRO 1 127 #endif 128 /* 129 * GRO support was backported to RHEL 5.4 130 */ 131 #ifdef RHEL_RELEASE_CODE 132 # if RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(5, 4) 133 # define VBOXNETFLT_WITH_GRO 1 134 # endif 135 #endif 124 136 125 137 /******************************************************************************* … … 1425 1437 { 1426 1438 Log5(("vboxNetFltLinuxCanForwardAsGso: fSrc=wire\n")); 1427 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29)1439 #ifdef VBOXNETFLT_WITH_GRO 1428 1440 /* 1429 1441 * The packet came from the wire and the driver has already consumed … … 1434 1446 Log5(("vboxNetFltLinuxCanForwardAsGso: mac_len=%d data=%p mac_header=%p network_header=%p\n", 1435 1447 pSkb->mac_len, pSkb->data, skb_mac_header(pSkb), skb_network_header(pSkb))); 1436 #else /* LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29)*/1448 #else /* !VBOXNETFLT_WITH_GRO */ 1437 1449 /* Older kernels didn't have GRO. */ 1438 1450 return false; 1439 #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29)*/1451 #endif /* !VBOXNETFLT_WITH_GRO */ 1440 1452 } 1441 1453 else
Note:
See TracChangeset
for help on using the changeset viewer.