Changeset 39019 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt/linux
- Timestamp:
- Oct 18, 2011 2:11:56 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 74425
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
r39018 r39019 51 51 #include "../VBoxNetFltInternal.h" 52 52 53 #define VBOXNETFLT_WITH_FILTER_HOST2GUEST_SKBS_EXPERIMENT54 55 53 56 54 /******************************************************************************* … … 245 243 246 244 /** 247 * Experiment where we filter traffic from the host to the internal network245 * We filter traffic from the host to the internal network 248 246 * before it reaches the NIC driver. 249 247 * 250 * The current code uses a very ugly hack and only works on kernels using the251 * net_device_ops (>= 2.6.29). It has been shown to give us a252 * performance boost of 60-100% though. So, we have to find some less hacky way253 * of getting this job done eventually.254 * 255 * #define VBOXNETFLT_WITH_FILTER_HOST2GUEST_SKBS_EXPERIMENT 256 */ 257 #ifdef VBOXNETFLT_WITH_ FILTER_HOST2GUEST_SKBS_EXPERIMENT248 * The current code uses a very ugly hack overriding hard_start_xmit 249 * callback in the device structure, but it has been shown to give us a 250 * performance boost of 60-100% though. Eventually we have to find some 251 * less hacky way of getting this job done. 252 */ 253 #define VBOXNETFLT_WITH_HOST2WIRE_FILTER 254 255 #ifdef VBOXNETFLT_WITH_HOST2WIRE_FILTER 258 256 259 257 # if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29) … … 454 452 } 455 453 456 #endif /* VBOXNETFLT_WITH_ FILTER_HOST2GUEST_SKBS_EXPERIMENT*/454 #endif /* VBOXNETFLT_WITH_HOST2WIRE_FILTER */ 457 455 458 456 … … 1512 1510 dev_add_pack(&pThis->u.s.PacketType); 1513 1511 1514 #ifdef VBOXNETFLT_WITH_ FILTER_HOST2GUEST_SKBS_EXPERIMENT1512 #ifdef VBOXNETFLT_WITH_HOST2WIRE_FILTER 1515 1513 vboxNetFltLinuxHookDev(pThis, pDev); 1516 1514 #endif … … 1555 1553 else 1556 1554 { 1557 #ifdef VBOXNETFLT_WITH_ FILTER_HOST2GUEST_SKBS_EXPERIMENT1555 #ifdef VBOXNETFLT_WITH_HOST2WIRE_FILTER 1558 1556 vboxNetFltLinuxUnhookDev(pThis, pDev); 1559 1557 #endif … … 1583 1581 Assert(!pThis->fDisconnectedFromHost); 1584 1582 1585 #ifdef VBOXNETFLT_WITH_ FILTER_HOST2GUEST_SKBS_EXPERIMENT1583 #ifdef VBOXNETFLT_WITH_HOST2WIRE_FILTER 1586 1584 vboxNetFltLinuxUnhookDev(pThis, pDev); 1587 1585 #endif … … 1884 1882 RTSPINLOCKTMP Tmp = RTSPINLOCKTMP_INITIALIZER; 1885 1883 1886 #ifdef VBOXNETFLT_WITH_ FILTER_HOST2GUEST_SKBS_EXPERIMENT1884 #ifdef VBOXNETFLT_WITH_HOST2WIRE_FILTER 1887 1885 vboxNetFltLinuxUnhookDev(pThis, NULL); 1888 1886 #endif
Note:
See TracChangeset
for help on using the changeset viewer.