VirtualBox

Changeset 28061 in vbox


Ignore:
Timestamp:
Apr 7, 2010 6:45:51 PM (15 years ago)
Author:
vboxsync
Message:

Misc.

Location:
trunk/src/VBox/Devices/Network
Files:
2 edited

Legend:

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

    r28057 r28061  
    21042104        }
    21052105    }
     2106
     2107    if (cb > 0)
     2108        E1kLog(("%s Out of recieve buffers, dropping %u bytes", INSTANCE(pState), cb));
     2109
    21062110#ifdef E1K_LEDS_WITH_MUTEX
    21072111    if (RT_LIKELY(e1kCsEnter(pState, VERR_SEM_BUSY, RT_SRC_POS) == VINF_SUCCESS))
  • trunk/src/VBox/Devices/Network/DrvNAT.cpp

    r28054 r28061  
    429429             */
    430430            /** @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
    431434            uint8_t const  *pbFrame = (uint8_t const *)pSgBuf->aSegs[0].pvSeg;
    432435            PCPDMNETWORKGSO pGso    = (PCPDMNETWORKGSO)pSgBuf->pvUser;
     
    440443                    break;
    441444
     445#if 1
    442446                uint32_t cbPayload;
    443447                uint32_t offPayload = PDMNetGsoCarveSegment(pGso, pbFrame, pSgBuf->cbUsed,
     
    446450
    447451                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
    448460            }
    449461        }
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