lib/dpif-netdev-lookup.c
/* sets the priority of the lookup function with "name". */
sets the priority of the lookup function with "name".
sets the priority of the lookup function with " name " .
int32_t
dpcls_subtable_set_prio(const char *name, uint8_t priority)
{
    for (int i = 0; i < ARRAY_SIZE(subtable_lookups); i++) {
        if (strcmp(name, subtable_lookups[i].name) == 0) {
                subtable_lookups[i].prio = priority;
                VLOG_INFO("Subtable function '%s' set priority to %d\n",
                         name, priority);
                return 0;
        }
    }
    VLOG_WARN("Subtable function '%s' not found, failed to set priority\n",
              name);
    return -EINVAL;
}
int32_t dpcls_subtable_set_prio ( const char * name , uint8_t priority ) { for ( int i = 0 ; i < ARRAY_SIZE ( subtable_lookups ) ; i ++ ) { if ( strcmp ( name , subtable_lookups [ i ] . name ) == 0 ) { subtable_lookups [ i ] . prio = priority ; VLOG_INFO ( " \n " , name , priority ) ; return 0 ; } } VLOG_WARN ( " \n " , name ) ; return - EINVAL ; }
sets the priority of the lookup function with "name".
sets the priority of the lookup function with " name " .