VirtualBox

Changeset 75583 in vbox for trunk/src/VBox/Devices/USB/usbip


Ignore:
Timestamp:
Nov 19, 2018 5:17:45 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
126751
Message:

USBProxyDevice-usbip.cpp: Convert the synchronous CTRL message exchange code to use the generic PDU receive path to ensure that the code does not try to receive a new PDU while being in the middle of another one. Hopefully fixes a few testcase failures (especially the Set/Clear halt tests which fail frequently) [build fix]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/usbip/USBProxyDevice-usbip.cpp

    r75582 r75583  
    575575
    576576/**
    577  * Converts a USB/IP status code to a VBox status code.
    578  *
    579  * @returns VUSB status code.
    580  * @param   i32Status    The USB/IP status code from the reply.
    581  */
    582 DECLINLINE(int) usbProxyUsbIpStatusConvertFromStatus(int32_t i32Status)
    583 {
    584     if (RT_LIKELY(   i32Status == USBIP_STATUS_SUCCESS
    585                   || i32Status == USBIP_STATUS_SHORT_READ))
    586         return VINF_SUCCESS;
    587 
    588     switch (i32Status)
    589     {
    590         case USBIP_STATUS_PIPE_STALLED:
    591             return VINF_SUCCESS;
    592         case USBIP_STATUS_URB_UNLINKED:
    593             return VERR_TRY_AGAIN;
    594         default:
    595             LogFlowFunc(("i32Status=%d\n", i32Status));
    596             return VERR_INVALID_STATE;
    597     }
    598     /* not reached */
    599 }
    600 
    601 /**
    602577 * Converts a USB/IP status code to a VUSB status code.
    603578 *
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