Changeset 92951 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Dec 15, 2021 9:03:29 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevVirtioNet_1_0.cpp
r92950 r92951 1968 1968 /* 1969 1969 * Try to do fast (e.g. single-buffer) copy to guest, even if MRG_RXBUF feature is enabled 1970 * If1971 1970 */ 1972 1971 STAM_PROFILE_START(&pThis->StatReceiveStore, a); … … 1977 1976 pRxPktHdr->uNumBuffers = 1; 1978 1977 rc = virtioCoreR3VirtqUsedBufPut(pDevIns, &pThis->Virtio, pRxVirtq->uIdx, cbPktHdr, pRxPktHdr, pVirtqBuf, 0 /* cbEnqueue */); 1979 AssertMsgReturn(rc == VINF_SUCCESS, ("%Rrc\n", rc), rc); 1980 rc = virtioCoreR3VirtqUsedBufPut(pDevIns, &pThis->Virtio, pRxVirtq->uIdx, cb, pvBuf, pVirtqBuf, cbPktHdr + cb /* cbEnqueue */); 1981 AssertMsgReturn(rc == VINF_SUCCESS, ("%Rrc\n", rc), rc); 1978 if (rc == VINF_SUCCESS) 1979 rc = virtioCoreR3VirtqUsedBufPut(pDevIns, &pThis->Virtio, pRxVirtq->uIdx, cb, pvBuf, pVirtqBuf, cbPktHdr + cb /* cbEnqueue */); 1982 1980 virtioCoreR3VirtqBufRelease(&pThis->Virtio, pVirtqBuf); 1983 1981 virtioCoreVirtqUsedRingSync(pDevIns, &pThis->Virtio, pRxVirtq->uIdx); 1982 AssertMsgReturn(rc == VINF_SUCCESS, ("%Rrc\n", rc), rc); 1984 1983 } 1985 1984 else … … 2373 2372 * This function handles all parts of the host-side of the ctrlq round-trip buffer processing. 2374 2373 * 2375 * Invoked by worker for virtio-net defincecontrol queue to process a queued control command buffer.2374 * Invoked by worker for virtio-net control queue to process a queued control command buffer. 2376 2375 * 2377 2376 * @param pDevIns PDM device instance … … 3327 3326 * Case in point: According to VirtIO 0.95 ("legacy") specification, section 2.2.1, "historically" 3328 3327 * drivers may start driving prior to feature negotiation and prior to drivers setting DRIVER_OK 3329 * status, "provided driver doesn't use features that alter early use of this device". That3330 * is Interpreted here to mean a virtio-net driver must respect default settings (such as implicit3331 * pkt header defaultsize, as determined per Note 1 below).3328 * status, "provided driver doesn't use features that alter early use of this device". Interpreted 3329 * here to mean a virtio-net driver must respect default settings (such as implicit pkt header default 3330 * size, as determined per Note 1 below). 3332 3331 * 3333 3332 * ----------------------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.