VirtualBox

Changeset 28075 in vbox for trunk/include


Ignore:
Timestamp:
Apr 7, 2010 11:42:21 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
59785
Message:

intnetinline.h: INTNETRingCommitFrameEx must account for the GSO header.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/intnetinline.h

    r28071 r28075  
    579579 * @param   pHdr                The frame header returned by
    580580 *                              INTNETRingAllocateFrame.
    581  * @param   cbUsed              The amount of space actually used.
     581 * @param   cbUsed              The amount of space actually used.  This does
     582 *                              not include the GSO part.
    582583 */
    583584DECLINLINE(void) INTNETRingCommitFrameEx(PINTNETRINGBUF pRingBuf, PINTNETHDR pHdr, size_t cbUsed)
     
    589590    INTNETHDR_ASSERT_SANITY(pHdr, pRingBuf);
    590591    Assert(pRingBuf->offWriteCom == ((uintptr_t)pHdr - (uintptr_t)pRingBuf));
     592
     593    if (pHdr->u16Type == INTNETHDR_TYPE_GSO)
     594        cbUsed += sizeof(PDMNETWORKGSO);
    591595
    592596    /*
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette