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 63D3DA054A; Tue, 6 Dec 2022 14:24:45 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 094B040687; Tue, 6 Dec 2022 14:24:45 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id EB6564021D; Tue, 6 Dec 2022 14:24:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670333084; x=1701869084; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=LxHaanGrt7AdRIIYvRQwaUTghXJlykImJdEVvhmSMis=; b=J0VC2gSbpxBYvOOKFtz9LOAXD4Uh4gfPYKiDb4ilLQSprEl3QgHDbPWA l89R7GNLVXdlVUEepBSJuHpVU710zQQtdhos9sMWkk0iTiHn+WKM8z1OW SPgSp0zH2kPrRg3VTk5nmbUWbvP26lQPFKE1FY2eRgrfgx0afxQz1AdX8 jPcXqkS63vWinumqrT7Do/NVHIKqKfJ1Qtgz6LHBenlV63qcEXbKAAUQR 9WUrVhCUkpmiyFtX/7FOjBY9ZSP8whx/jeq0xevfiqlcsP2GmdWXvnY1i 2u8fnG0cmABkJ9Na6mbXRWbSs44vYfF/wVaIc5xHUXUPIkkuoKIZTPw5a A==; X-IronPort-AV: E=McAfee;i="6500,9779,10552"; a="316644104" X-IronPort-AV: E=Sophos;i="5.96,222,1665471600"; d="scan'208";a="316644104" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Dec 2022 05:24:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10552"; a="788483534" X-IronPort-AV: E=Sophos;i="5.96,222,1665471600"; d="scan'208";a="788483534" Received: from unknown (HELO localhost.localdomain) ([10.190.193.12]) by fmsmga001.fm.intel.com with ESMTP; 06 Dec 2022 05:24:38 -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] vdpa/ifc: Match ANY subsystem IDs for modern virtio devices Date: Tue, 6 Dec 2022 18:20:41 +0530 Message-Id: <20221206125041.339275-1-abhishek.maheshwari@intel.com> X-Mailer: git-send-email 2.31.1 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, 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