From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4FF69A0509; Thu, 7 Apr 2022 04:59:36 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D577F42877; Thu, 7 Apr 2022 04:58:58 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id A59F242877 for ; Thu, 7 Apr 2022 04:58:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649300337; x=1680836337; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Q8zu++if4OJIy2DXqid6J16Ii5Eb2G8jviGgZ00yUCA=; b=eis0SrQUyh9NOCEjDxhdihR5msbaPtIg20SaSuvRNe/3u++ZdUUfQjWl 9cDe9e+l5dNJVmiO1NjiuIOPBs7vZEXIhOeS9i4K2jh5ZIiyLM1pEYhwT dopQfJLpnr0i0rs8aqTl/e/7BJlbp6Yr/QpGjuk9wtmh8JnPT7lzPCT9o PTyBEbZ1lkujU0qaqSLhzaevv4THxamHhtHSoE5SFiknbPIyoMPbLyvML DWuL7hDs2U8vSrQNzMcn2MCyXWadZ2Mew5DRrlZAJjDOuaJlESB1r7ZbE 34KkBTEqmS956o3blAkKRz2zwZvk0xPUwi7Xhe4uBkhD6OXtL1pXxFDOE w==; X-IronPort-AV: E=McAfee;i="6200,9189,10309"; a="248738373" X-IronPort-AV: E=Sophos;i="5.90,241,1643702400"; d="scan'208";a="248738373" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2022 19:58:57 -0700 X-IronPort-AV: E=Sophos;i="5.90,241,1643702400"; d="scan'208";a="570850594" Received: from intel-cd-odc-kevin.cd.intel.com ([10.240.178.195]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2022 19:58:54 -0700 From: Kevin Liu To: dev@dpdk.org Cc: qiming.yang@intel.com, qi.z.zhang@intel.com, stevex.yang@intel.com, Alvin Zhang , Steven Zou , Kevin Liu Subject: [PATCH 15/39] net/iavf: support checking if device is an MDCF instance Date: Thu, 7 Apr 2022 10:56:42 +0000 Message-Id: <20220407105706.18889-16-kevinx.liu@intel.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220407105706.18889-1-kevinx.liu@intel.com> References: <20220407105706.18889-1-kevinx.liu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Alvin Zhang For an MDCF instance (with 'mdcf' in the parameter list), it should not be bound to iavf PMD. Signed-off-by: Steven Zou Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- 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