Changeset 28061 in vbox
- Timestamp:
- Apr 7, 2010 6:45:51 PM (15 years ago)
- Location:
- trunk/src/VBox/Devices/Network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevE1000.cpp
r28057 r28061 2104 2104 } 2105 2105 } 2106 2107 if (cb > 0) 2108 E1kLog(("%s Out of recieve buffers, dropping %u bytes", INSTANCE(pState), cb)); 2109 2106 2110 #ifdef E1K_LEDS_WITH_MUTEX 2107 2111 if (RT_LIKELY(e1kCsEnter(pState, VERR_SEM_BUSY, RT_SRC_POS) == VINF_SUCCESS)) -
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r28054 r28061 429 429 */ 430 430 /** @todo Make the NAT engine grok large frames? Could be more efficient... */ 431 #if 0 /* this is for testing PDMNetGsoCarveSegmentQD. */ 432 uint8_t abHdrScratch[256]; 433 #endif 431 434 uint8_t const *pbFrame = (uint8_t const *)pSgBuf->aSegs[0].pvSeg; 432 435 PCPDMNETWORKGSO pGso = (PCPDMNETWORKGSO)pSgBuf->pvUser; … … 440 443 break; 441 444 445 #if 1 442 446 uint32_t cbPayload; 443 447 uint32_t offPayload = PDMNetGsoCarveSegment(pGso, pbFrame, pSgBuf->cbUsed, … … 446 450 447 451 slirp_input(pThis->pNATState, m, cbPayload + pGso->cbHdrs); 452 #else 453 uint32_t cbSegFrame; 454 void *pvSegFrame = PDMNetGsoCarveSegmentQD(pGso, (uint8_t *)pbFrame, pSgBuf->cbUsed, abHdrScratch, 455 iSeg, cSegs, &cbSegFrame); 456 memcpy((uint8_t *)pvSeg, pvSegFrame, cbSegFrame); 457 458 slirp_input(pThis->pNATState, m, cbSegFrame); 459 #endif 448 460 } 449 461 }
Note:
See TracChangeset
for help on using the changeset viewer.