VirtualBox

Changeset 37909 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Jul 13, 2011 10:27:45 AM (14 years ago)
Author:
vboxsync
Message:

IntNet: moved header buffer from trunk to sended interface (#5775)

File:
1 edited

Legend:

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

    r36089 r37909  
    283283    /** Pointer to the trunk's per interface data.  Can be NULL. */
    284284    void                   *pvIfData;
     285    /** Header buffer for when we're carving GSO frames. */
     286    uint8_t                 abGsoHdrs[256];
    285287} INTNETIF;
    286288/** Pointer to an internal network interface. */
     
    319321     * number. */
    320322    uint32_t                fHostGsoCapabilites;
    321     /** Header buffer for when we're carving GSO frames. */
    322     uint8_t                 abGsoHdrs[256];
    323323    /** The destination table spinlock, interrupt safe.
    324324     * Protects apTaskDstTabs and apIntDstTabs. */
     
    26652665        uint32_t cbSegPayload;
    26662666        uint32_t offSegPayload = PDMNetGsoCarveSegment(&pSG->GsoCtx, (uint8_t *)pSG->aSegs[0].pv, pSG->cbTotal, iSeg, cSegs,
    2667                                                        pThis->abGsoHdrs, &cbSegPayload);
     2667                                                       pIfSender->abGsoHdrs, &cbSegPayload);
    26682668
    26692669        IntNetSgInitTempSegs(&u.SG, pSG->GsoCtx.cbHdrs + cbSegPayload, 2, 2);
    26702670        u.SG.aSegs[0].Phys = NIL_RTHCPHYS;
    2671         u.SG.aSegs[0].pv   = pThis->abGsoHdrs;
     2671        u.SG.aSegs[0].pv   = pIfSender->abGsoHdrs;
    26722672        u.SG.aSegs[0].cb   = pSG->GsoCtx.cbHdrs;
    26732673        u.SG.aSegs[1].Phys = NIL_RTHCPHYS;
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