From: Alvin Zhang <alvinx.zh...@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....@intel.com>
Signed-off-by: Alvin Zhang <alvinx.zh...@intel.com>
Signed-off-by: Kevin Liu <kevinx....@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

Reply via email to