+static int +handle_dcf_arg(__rte_unused const char *key, const char *value, + __rte_unused void *arg) __rte_unused is not needed here.
+{ + bool *dcf = arg; + + if (arg == NULL || value == NULL) + return -EINVAL; + + if (strcmp(value, "dcf") == 0) + *dcf = true; + else + *dcf = false; + + return 0; +} +