ovn/controller/lflow.c
static struct logical_datapath *
ldp_lookup(const struct sbrec_datapath_binding *binding)
{
    struct logical_datapath *ldp;
    HMAP_FOR_EACH_IN_BUCKET (ldp, hmap_node, uuid_hash(&binding->header_.uuid),
                             &logical_datapaths) {
        if (uuid_equals(&ldp->uuid, &binding->header_.uuid)) {
            return ldp;
        }
    }
    return NULL;
}
/* Finds and returns the logical_datapath for 'binding', or NULL if no such
 * logical_datapath exists. */
Finds and returns the logical_datapath for 'binding', or NULL if no such
logical_datapath exists.
Finds and returns the logical_datapath for ' binding ' or NULL if no such logical_datapath exists .
static struct logical_datapath *
ldp_lookup(const struct sbrec_datapath_binding *binding)
{
    struct logical_datapath *ldp;
    HMAP_FOR_EACH_IN_BUCKET (ldp, hmap_node, uuid_hash(&binding->header_.uuid),
                             &logical_datapaths) {
        if (uuid_equals(&ldp->uuid, &binding->header_.uuid)) {
            return ldp;
        }
    }
    return NULL;
}
static struct logical_datapath * ldp_lookup ( const struct sbrec_datapath_binding * binding ) { struct logical_datapath * ldp ; HMAP_FOR_EACH_IN_BUCKET ( ldp , hmap_node , uuid_hash ( & binding -> header_ . uuid ) , & logical_datapaths ) { if ( uuid_equals ( & ldp -> uuid , & binding -> header_ . uuid ) ) { return ldp ; } } return NULL ; }
Finds and returns the logical_datapath for 'binding', or NULL if no such
 logical_datapath exists.
Finds and returns the logical_datapath for ' binding ' or NULL if no such logical_datapath exists .