VirtualBox

Changeset 42102 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 11, 2012 10:52:50 AM (13 years ago)
Author:
vboxsync
Message:

NetShaper: GSO on RX path (#5582)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DrvNetShaper.cpp

    r42066 r42102  
    235235
    236236/**
     237 * @interface_method_impl{PDMINETWORKDOWN,pfnReceiveGso}
     238 */
     239static DECLCALLBACK(int) drvR3NetShaperDown_ReceiveGso(PPDMINETWORKDOWN pInterface, const void *pvBuf, size_t cb, PCPDMNETWORKGSO pGso)
     240{
     241    PDRVNETSHAPER pThis = RT_FROM_MEMBER(pInterface, DRVNETSHAPER, INetworkDown);
     242    if (pThis->pIAboveNet->pfnReceiveGso)
     243        return pThis->pIAboveNet->pfnReceiveGso(pThis->pIAboveNet, pvBuf, cb, pGso);
     244    return VERR_NOT_SUPPORTED;
     245}
     246
     247
     248/**
    237249 * @interface_method_impl{PDMINETWORKDOWN,pfnXmitPending}
    238250 */
     
    433445    pThis->INetworkDown.pfnWaitReceiveAvail         = drvR3NetShaperDown_WaitReceiveAvail;
    434446    pThis->INetworkDown.pfnReceive                  = drvR3NetShaperDown_Receive;
     447    pThis->INetworkDown.pfnReceiveGso               = drvR3NetShaperDown_ReceiveGso;
    435448    pThis->INetworkDown.pfnXmitPending              = drvR3NetShaperDown_XmitPending;
    436449    /* INetworkConfig */
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