VirtualBox

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


Ignore:
Timestamp:
Aug 8, 2008 3:19:12 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
34337
Message:

DrvIntNet: Jumbo frame up to 16KB.

File:
1 edited

Legend:

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

    r11157 r11259  
    847847        OpenReq.fFlags |= INTNET_OPEN_FLAGS_SHARED_MAC_ON_WIRE;
    848848
    849     /** @cfgm{ReceiveBufferSize, uint32_t, 234 KB}
     849    /** @cfgm{ReceiveBufferSize, uint32_t, 218 KB}
    850850     * The size of the receive buffer.
    851851     */
    852852    rc = CFGMR3QueryU32(pCfgHandle, "ReceiveBufferSize", &OpenReq.cbRecv);
    853853    if (rc == VERR_CFGM_VALUE_NOT_FOUND)
    854         OpenReq.cbRecv = 234 * _1K ;
     854        OpenReq.cbRecv = 218 * _1K ;
    855855    else if (VBOX_FAILURE(rc))
    856856        return PDMDRV_SET_ERROR(pDrvIns, rc,
    857857                                N_("Configuration error: Failed to get the \"ReceiveBufferSize\" value"));
    858858
    859     /** @cfgm{SendBufferSize, uint32_t, 17 KB}
     859    /** @cfgm{SendBufferSize, uint32_t, 36 KB}
    860860     * The size of the send (transmit) buffer.
     861     * This should be more than twice the size of the larges frame size because
     862     * the ring buffer is very simple and doesn't support splitting up frames
     863     * nor inserting padding. So, if this is too close to the frame size the
     864     * header will fragment the buffer such that the frame won't fit on either
     865     * side of it and the code will get very upset about it all.
    861866     */
    862867    rc = CFGMR3QueryU32(pCfgHandle, "SendBufferSize", &OpenReq.cbSend);
    863868    if (rc == VERR_CFGM_VALUE_NOT_FOUND)
    864         OpenReq.cbSend = 17*_1K;
     869        OpenReq.cbSend = 36*_1K;
    865870    else if (VBOX_FAILURE(rc))
    866871        return PDMDRV_SET_ERROR(pDrvIns, rc,
     
    869874        return PDMDRV_SET_ERROR(pDrvIns, rc,
    870875                                N_("Configuration error: The \"SendBufferSize\" value is too small"));
    871     if (OpenReq.cbSend < 1536*2 + 64)
    872         LogRel(("DrvIntNet: Warning! SendBufferSize=%u, Recommended minimum size %u butes.\n", OpenReq.cbSend, 1536*2 + 64));
     876    if (OpenReq.cbSend < 16384*2 + 64)
     877        LogRel(("DrvIntNet: Warning! SendBufferSize=%u, Recommended minimum size %u butes.\n", OpenReq.cbSend, 16384*2 + 64));
    873878
    874879    /** @cfgm{IsService, boolean, true}
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