[PATCH 15/39] net/iavf: support checking if device is an MDCF instance
Kevin Liu
kevinx.liu at intel.com
Thu Apr 7 12:56:42 CEST 2022
From: Alvin Zhang <alvinx.zhang at intel.com>
For an MDCF instance (with 'mdcf' in the parameter list),
it should not be bound to iavf PMD.
Signed-off-by: Steven Zou <steven.zou at intel.com>
Signed-off-by: Alvin Zhang <alvinx.zhang at intel.com>
Signed-off-by: Kevin Liu <kevinx.liu at intel.com>
---
drivers/net/iavf/iavf_ethdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c
index d6190ac24a..afc1ee53e7 100644
--- a/drivers/net/iavf/iavf_ethdev.c
+++ b/drivers/net/iavf/iavf_ethdev.c
@@ -2678,7 +2678,7 @@ static int
iavf_dcf_cap_check_handler(__rte_unused const char *key,
const char *value, __rte_unused void *opaque)
{
- if (strcmp(value, "dcf"))
+ if (strcmp(value, "dcf") && strcmp(value, "mdcf"))
return -1;
return 0;
--
2.33.1
More information about the dev
mailing list