Changeset 28095 in vbox
- Timestamp:
- Apr 8, 2010 2:44:41 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/param.h
r22594 r28095 156 156 /** @} */ 157 157 158 159 /** @defgroup grp_vbox_param_misc Misc 160 * @{ */ 161 162 #define VBOX_MAX_GSO_SIZE 0xfff0 163 164 /** @} */ 165 166 158 167 /** @} */ 159 168 -
trunk/src/VBox/Devices/Network/DrvIntNet.cpp
r28060 r28095 33 33 #include <VBox/err.h> 34 34 35 #include <VBox/param.h> 35 36 #include <VBox/log.h> 36 37 #include <iprt/asm.h> … … 1120 1121 OpenReq.fFlags |= INTNET_OPEN_FLAGS_SHARED_MAC_ON_WIRE; 1121 1122 1122 /** @cfgm{ReceiveBufferSize, uint32_t, 218 KB}1123 /** @cfgm{ReceiveBufferSize, uint32_t, 318 KB} 1123 1124 * The size of the receive buffer. 1124 1125 */ 1125 1126 rc = CFGMR3QueryU32(pCfg, "ReceiveBufferSize", &OpenReq.cbRecv); 1126 1127 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 1127 OpenReq.cbRecv = 218 * _1K ;1128 OpenReq.cbRecv = 318 * _1K ; 1128 1129 else if (RT_FAILURE(rc)) 1129 1130 return PDMDRV_SET_ERROR(pDrvIns, rc, 1130 1131 N_("Configuration error: Failed to get the \"ReceiveBufferSize\" value")); 1131 1132 1132 /** @cfgm{SendBufferSize, uint32_t, 36 KB}1133 /** @cfgm{SendBufferSize, uint32_t, 196 KB} 1133 1134 * The size of the send (transmit) buffer. 1134 1135 * This should be more than twice the size of the larges frame size because … … 1140 1141 rc = CFGMR3QueryU32(pCfg, "SendBufferSize", &OpenReq.cbSend); 1141 1142 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 1142 OpenReq.cbSend = 36*_1K;1143 OpenReq.cbSend = RT_ALIGN_Z(VBOX_MAX_GSO_SIZE * 3, _1K); 1143 1144 else if (RT_FAILURE(rc)) 1144 1145 return PDMDRV_SET_ERROR(pDrvIns, rc, 1145 1146 N_("Configuration error: Failed to get the \"SendBufferSize\" value")); 1146 if (OpenReq.cbSend < 32)1147 if (OpenReq.cbSend < 128) 1147 1148 return PDMDRV_SET_ERROR(pDrvIns, rc, 1148 1149 N_("Configuration error: The \"SendBufferSize\" value is too small")); 1149 if (OpenReq.cbSend < 16384*2 + 64)1150 LogRel(("DrvIntNet: Warning! SendBufferSize=%u, Recommended minimum size %u butes.\n", OpenReq.cbSend, 16384*2 + 64));1150 if (OpenReq.cbSend < VBOX_MAX_GSO_SIZE * 4) 1151 LogRel(("DrvIntNet: Warning! SendBufferSize=%u, Recommended minimum size %u butes.\n", OpenReq.cbSend, VBOX_MAX_GSO_SIZE * 4)); 1151 1152 1152 1153 /** @cfgm{IsService, boolean, true}
Note:
See TracChangeset
for help on using the changeset viewer.