Changeset 11259 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Aug 8, 2008 3:19:12 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 34337
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvIntNet.cpp
r11157 r11259 847 847 OpenReq.fFlags |= INTNET_OPEN_FLAGS_SHARED_MAC_ON_WIRE; 848 848 849 /** @cfgm{ReceiveBufferSize, uint32_t, 2 34KB}849 /** @cfgm{ReceiveBufferSize, uint32_t, 218 KB} 850 850 * The size of the receive buffer. 851 851 */ 852 852 rc = CFGMR3QueryU32(pCfgHandle, "ReceiveBufferSize", &OpenReq.cbRecv); 853 853 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 854 OpenReq.cbRecv = 2 34* _1K ;854 OpenReq.cbRecv = 218 * _1K ; 855 855 else if (VBOX_FAILURE(rc)) 856 856 return PDMDRV_SET_ERROR(pDrvIns, rc, 857 857 N_("Configuration error: Failed to get the \"ReceiveBufferSize\" value")); 858 858 859 /** @cfgm{SendBufferSize, uint32_t, 17KB}859 /** @cfgm{SendBufferSize, uint32_t, 36 KB} 860 860 * 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. 861 866 */ 862 867 rc = CFGMR3QueryU32(pCfgHandle, "SendBufferSize", &OpenReq.cbSend); 863 868 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 864 OpenReq.cbSend = 17*_1K;869 OpenReq.cbSend = 36*_1K; 865 870 else if (VBOX_FAILURE(rc)) 866 871 return PDMDRV_SET_ERROR(pDrvIns, rc, … … 869 874 return PDMDRV_SET_ERROR(pDrvIns, rc, 870 875 N_("Configuration error: The \"SendBufferSize\" value is too small")); 871 if (OpenReq.cbSend < 1 536*2 + 64)872 LogRel(("DrvIntNet: Warning! SendBufferSize=%u, Recommended minimum size %u butes.\n", OpenReq.cbSend, 1 536*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)); 873 878 874 879 /** @cfgm{IsService, boolean, true}
Note:
See TracChangeset
for help on using the changeset viewer.