[dpdk-dev] [PATCH v1 1/4] net/iavf: stop the PCI probe in DCF mode

Wu, Jingjing jingjing.wu at intel.com
Mon Mar 23 02:50:30 CET 2020


+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;
+}
+


More information about the dev mailing list