- Timestamp:
- Apr 25, 2010 9:50:56 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 60595
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/intnet.h
r28711 r28723 519 519 * @param fDst The destination mask (INTNETTRUNKDIR_XXX). 520 520 * 521 * @remarks May take a spinlock or two.521 * @remarks Does not take any locks. 522 522 */ 523 523 DECLR0CALLBACKMEMBER(void, pfnReportGsoCapabilities,(PINTNETTRUNKSWPORT pSwitchPort, uint32_t fGsoCapabilities, uint32_t fDst)); 524 525 /** 526 * Reports the no-preemption-xmit capabilities of the host and wire. 527 * 528 * This is supposed to be used only when creating, connecting or reconnecting 529 * the trunk. It is assumed that the GSO capabilities are kind of static the 530 * rest of the time. 531 * 532 * @param pSwitchPort Pointer to this structure. 533 * @param fNoPreemptDsts The destinations (INTNETTRUNKDIR_XXX) which it 534 * is safe to transmit to with preemption disabled. 535 * @param fDst The destination mask (INTNETTRUNKDIR_XXX). 536 * 537 * @remarks Does not take any locks. 538 */ 539 DECLR0CALLBACKMEMBER(void, pfnReportNoPreemptDsts,(PINTNETTRUNKSWPORT pSwitchPort, uint32_t fNoPreemptDsts)); 524 540 525 541 /** Structure version number. (INTNETTRUNKSWPORT_VERSION) */ … … 731 747 732 748 /** The UUID for the (current) trunk factory. (case sensitive) */ 733 #define INTNETTRUNKFACTORY_UUID_STR " 7eb192c8-6ee3-4d0a-96fb-f51ce7381354"749 #define INTNETTRUNKFACTORY_UUID_STR "5d347cb7-98e3-411f-916a-67c4becae09b" 734 750 735 751 /** @name INTNETTRUNKFACTORY::pfnCreateAndConnect flags. -
trunk/src/VBox/Devices/Network/SrvIntNetR0.cpp
r28722 r28723 4285 4285 /** @copydoc INTNETTRUNKSWPORT::pfnReportGsoCapabilities */ 4286 4286 static DECLCALLBACK(void) intnetR0TrunkIfPortReportGsoCapabilities(PINTNETTRUNKSWPORT pSwitchPort, 4287 uint32_t fGsoCapabilities, uint32_t fDst)4287 uint32_t fGsoCapabilities, uint32_t fDst) 4288 4288 { 4289 4289 PINTNETTRUNKIF pThis = INTNET_SWITCHPORT_2_TRUNKIF(pSwitchPort); … … 4299 4299 if (fDst & INTNETTRUNKDIR_WIRE) 4300 4300 pThis->fWireGsoCapabilites = fGsoCapabilities; 4301 } 4302 4303 4304 /** @copydoc INTNETTRUNKSWPORT::pfnReportNoPreemptDsts */ 4305 static DECLCALLBACK(void) intnetR0TrunkIfPortReportNoPreemptDsts(PINTNETTRUNKSWPORT pSwitchPort, uint32_t fNoPreemptDsts) 4306 { 4307 PINTNETTRUNKIF pThis = INTNET_SWITCHPORT_2_TRUNKIF(pSwitchPort); 4308 Assert(!(fNoPreemptDsts & ~INTNETTRUNKDIR_VALID_MASK)); 4309 4310 pThis->fNoPreemptDsts = fNoPreemptDsts; 4301 4311 } 4302 4312 … … 4727 4737 pTrunk->SwitchPort.pfnReportPromiscuousMode = intnetR0TrunkIfPortReportPromiscuousMode; 4728 4738 pTrunk->SwitchPort.pfnReportGsoCapabilities = intnetR0TrunkIfPortReportGsoCapabilities; 4739 pTrunk->SwitchPort.pfnReportNoPreemptDsts = intnetR0TrunkIfPortReportNoPreemptDsts; 4729 4740 pTrunk->SwitchPort.u32VersionEnd = INTNETTRUNKSWPORT_VERSION; 4730 4741 pTrunk->FastMutex3 = NIL_RTSEMFASTMUTEX; -
trunk/src/VBox/HostDrivers/VBoxNetFlt/darwin/VBoxNetFlt-darwin.cpp
r28714 r28723 966 966 pThis->pSwitchPort->pfnReportPromiscuousMode(pThis->pSwitchPort, vboxNetFltDarwinIsPromiscuous(pThis)); 967 967 pThis->pSwitchPort->pfnReportGsoCapabilities(pThis->pSwitchPort, 0, INTNETTRUNKDIR_WIRE | INTNETTRUNKDIR_HOST); 968 pThis->pSwitchPort->pfnReportNoPreemptDsts(pThis->pSwitchPort, 0 /* none */); 968 969 } 969 970 } -
trunk/src/VBox/HostDrivers/VBoxNetFlt/freebsd/VBoxNetFlt-freebsd.c
r28714 r28723 579 579 pThis->pSwitchPort->pfnReportPromiscuousMode(pThis->pSwitchPort, vboxNetFltFreeBsdIsPromiscuous(pThis)); 580 580 pThis->pSwitchPort->pfnReportGsoCapabilities(pThis->pSwitchPort, 0, INTNETTRUNKDIR_WIRE | INTNETTRUNKDIR_HOST); 581 pThis->pSwitchPort->pfnReportNoPreemptDsts(pThis->pSwitchPort, 0 /* none */); 581 582 582 583 return VINF_SUCCESS; -
trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c
r28714 r28723 1378 1378 pThis->pSwitchPort->pfnReportMacAddress(pThis->pSwitchPort, &pThis->u.s.MacAddr); 1379 1379 pThis->pSwitchPort->pfnReportPromiscuousMode(pThis->pSwitchPort, vboxNetFltLinuxPromiscuous(pThis)); 1380 pThis->pSwitchPort->pfnReportNoPreemptDsts(pThis->pSwitchPort, INTNETTRUNKDIR_WIRE | INTNETTRUNKDIR_HOST); 1380 1381 } 1381 1382 else … … 1663 1664 * Report the GSO capabilities of the host and device (if connected). 1664 1665 */ 1666 /** @todo duplicate work here now? Attach */ 1665 1667 #if defined(VBOXNETFLT_WITH_GSO_XMIT_HOST) 1666 1668 pThis->pSwitchPort->pfnReportGsoCapabilities(pThis->pSwitchPort, -
trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFlt-solaris.c
r28714 r28723 2620 2620 pThis->pSwitchPort->pfnReportPromiscuousMode(pThis->pSwitchPort, false); 2621 2621 pThis->pSwitchPort->pfnReportGsoCapabilities(pThis->pSwitchPort, 0, INTNETTRUNKDIR_WIRE | INTNETTRUNKDIR_HOST); 2622 pThis->pSwitchPort->pfnReportNoPreemptDsts(pThis->pSwitchPort, 0 /* none */); 2622 2623 2623 2624 /* -
trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFltBow-solaris.c
r28714 r28723 848 848 pThis->pSwitchPort->pfnReportPromiscuousMode(pThis->pSwitchPort, false); /** @todo Promisc */ 849 849 pThis->pSwitchPort->pfnReportGsoCapabilities(pThis->pSwitchPort, 0, INTNETTRUNKDIR_WIRE | INTNETTRUNKDIR_HOST); 850 850 pThis->pSwitchPort->pfnReportNoPreemptDsts(pThis->pSwitchPort, 0 /* none */); 851 851 852 852 LogFlow((DEVICE_NAME ":vboxNetFltSolarisAttachToInterface successfully attached over '%s'\n", pThis->szName)); -
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/VBoxNetFlt-win.c
r28714 r28723 3282 3282 pThis->pSwitchPort->pfnReportGsoCapabilities(pThis->pSwitchPort, 0, 3283 3283 INTNETTRUNKDIR_WIRE | INTNETTRUNKDIR_HOST); 3284 /** @todo We should be able to do pfnXmit at DISPATCH_LEVEL... */ 3285 pThis->pSwitchPort->pfnReportNoPreemptDsts(pThis->pSwitchPort, 0 /* none */); 3284 3286 } 3285 3287 return;
Note:
See TracChangeset
for help on using the changeset viewer.