"Call succeeded with invalid parameters\n");
config.max_routes = MAX_ROUTES;
- config.type = RTE_FIB_TYPE_MAX;
+ config.type = RTE_FIB_DIR24_8 + 1;
fib = rte_fib_create(__func__, SOCKET_ID_ANY, &config);
RTE_TEST_ASSERT(fib == NULL,
"Call succeeded with invalid parameters\n");
"Call succeeded with invalid parameters\n");
config.max_routes = MAX_ROUTES;
- config.type = RTE_FIB6_TYPE_MAX;
+ config.type = RTE_FIB6_TRIE + 1;
fib = rte_fib6_create(__func__, SOCKET_ID_ANY, &config);
RTE_TEST_ASSERT(fib == NULL,
"Call succeeded with invalid parameters\n");
/* Check user arguments. */
if ((name == NULL) || (conf == NULL) || (conf->max_routes < 0) ||
- (conf->type >= RTE_FIB_TYPE_MAX)) {
+ (conf->type > RTE_FIB_DIR24_8)) {
rte_errno = EINVAL;
return NULL;
}
/** Type of FIB struct */
enum rte_fib_type {
RTE_FIB_DUMMY, /**< RIB tree based FIB */
- RTE_FIB_DIR24_8, /**< DIR24_8 based FIB */
- RTE_FIB_TYPE_MAX
+ RTE_FIB_DIR24_8 /**< DIR24_8 based FIB */
};
/** Modify FIB function */
/* Check user arguments. */
if ((name == NULL) || (conf == NULL) || (conf->max_routes < 0) ||
- (conf->type >= RTE_FIB6_TYPE_MAX)) {
+ (conf->type > RTE_FIB6_TRIE)) {
rte_errno = EINVAL;
return NULL;
}
/** Type of FIB struct */
enum rte_fib6_type {
RTE_FIB6_DUMMY, /**< RIB6 tree based FIB */
- RTE_FIB6_TRIE, /**< TRIE based fib */
- RTE_FIB6_TYPE_MAX
+ RTE_FIB6_TRIE /**< TRIE based fib */
};
/** Modify FIB function */