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 8A6DEA054A; Tue, 6 Dec 2022 14:29:28 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E534C40FAE; Tue, 6 Dec 2022 14:29:27 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 26F654021D; Tue, 6 Dec 2022 14:29:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670333366; x=1701869366; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Z85qkhSEjTl9XHZaYbLlnlv5wbyiXV6DFXx5LpHCN7E=; b=VWjwDXv5N8WfjMzbVd/zQiSzps3ita6zapXyQxfVZacrg8lDsF9E+rhJ DAfAAhNthiXw2Uu5jUiTg+xNPXlWkCUad1eQHGWjcR5Xp+XLRQKlwkAFH R8Z+NP81M/TBsmwbzGIPf5e2XgVQB8pnD+i1orkWjgKWw1KIxpleTt6h8 GcCzBFiiohrLrf6oxF7LDBn+JKMPbnQaU07NXDMMQlz9JMDs6DfiU1QFP KFB15EfJQWviXyuclc2KXuda7xqWbFH9+JDlJmCuO0LhE1oBZWMtLFzqK VrhZkHLlQerTY2daiEbxtKTij+Pt6hnAtrPAg1z/se5T71bThp+Vlyes7 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10552"; a="315332919" X-IronPort-AV: E=Sophos;i="5.96,222,1665471600"; d="scan'208";a="315332919" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Dec 2022 05:29:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10552"; a="752635993" X-IronPort-AV: E=Sophos;i="5.96,222,1665471600"; d="scan'208";a="752635993" Received: from unknown (HELO localhost.localdomain) ([10.190.193.12]) by fmsmga002.fm.intel.com with ESMTP; 06 Dec 2022 05:29:22 -0800 From: Abhishek Maheshwari To: xiao.w.wang@intel.com Cc: dev@dpdk.org, stable@dpdk.org, chenbo.xia@intel.com, purna.chandra.mandal@intel.com, Abhishek Maheshwari Subject: [PATCH v2] vdpa/ifc: Match ANY subsystem IDs for modern virtio devices Date: Tue, 6 Dec 2022 18:25:24 +0530 Message-Id: <20221206125524.339468-1-abhishek.maheshwari@intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20221206125041.339275-1-abhishek.maheshwari@intel.com> References: <20221206125041.339275-1-abhishek.maheshwari@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 Fixing the match table for vdpa/ifcvf driver because as per the Virtio device specification, for modern virtio devices, drivers MAY match any PCI Subsystem Vendor ID and any PCI Subsystem Device ID value. Fixes: a60b747d0ad ("vdpa/ifc: support virtio block device") Fixes: 5c806b94785 ("vdpa/ifc: add PCI ID for legacy network device") Cc: stable@dpdk.org Signed-off-by: Abhishek Maheshwari --- drivers/vdpa/ifc/ifcvf_vdpa.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/vdpa/ifc/ifcvf_vdpa.c b/drivers/vdpa/ifc/ifcvf_vdpa.c index 49d68ad1b1..214d6e1f60 100644 --- a/drivers/vdpa/ifc/ifcvf_vdpa.c +++ b/drivers/vdpa/ifc/ifcvf_vdpa.c @@ -1824,8 +1824,8 @@ static const struct rte_pci_id pci_id_ifcvf_map[] = { { .class_id = RTE_CLASS_ANY_ID, .vendor_id = IFCVF_VENDOR_ID, .device_id = IFCVF_NET_MODERN_DEVICE_ID, - .subsystem_vendor_id = IFCVF_SUBSYS_VENDOR_ID, - .subsystem_device_id = IFCVF_SUBSYS_DEVICE_ID, + .subsystem_vendor_id = RTE_PCI_ANY_ID, + .subsystem_device_id = RTE_PCI_ANY_ID, }, { .class_id = RTE_CLASS_ANY_ID, @@ -1845,8 +1845,8 @@ static const struct rte_pci_id pci_id_ifcvf_map[] = { { .class_id = RTE_CLASS_ANY_ID, .vendor_id = IFCVF_VENDOR_ID, .device_id = IFCVF_BLK_MODERN_DEVICE_ID, - .subsystem_vendor_id = IFCVF_SUBSYS_VENDOR_ID, - .subsystem_device_id = IFCVF_SUBSYS_BLK_DEVICE_ID, + .subsystem_vendor_id = RTE_PCI_ANY_ID, + .subsystem_device_id = RTE_PCI_ANY_ID, }, { .vendor_id = 0, /* sentinel */ -- 2.31.1