third-party/libfabric/libfabric-src/prov/usnic/src/usnic_direct/usd_device.c
/*
 * Check that device is ready to have queues created
 */
Check that device is ready to have queues created
Check that device is ready to have queues created
int
usd_device_ready(
    struct usd_device *dev)
{
    if (dev->ud_attrs.uda_ipaddr_be == 0) {
        return -EADDRNOTAVAIL;
    }
    if (dev->ud_attrs.uda_link_state != USD_LINK_UP) {
        return -ENETDOWN;
    }
    return 0;
}
int usd_device_ready ( struct usd_device * dev ) { if ( dev -> ud_attrs . uda_ipaddr_be == 0 ) { return - EADDRNOTAVAIL ; } if ( dev -> ud_attrs . uda_link_state != USD_LINK_UP ) { return - ENETDOWN ; } return 0 ; }
Check that device is ready to have queues created
Check that device is ready to have queues created