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 A95F1A0543; Thu, 15 Dec 2022 05:23:18 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 14CBA40684; Thu, 15 Dec 2022 05:23:18 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 9869540223; Thu, 15 Dec 2022 05:23:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671078196; x=1702614196; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7KFHas8Y6NEmPeMR6heLF5RsrLUQQOnNm839FT13KRA=; b=loJbD7kP7buWJ2ddCBMf5Rjsz5K3OhZSdwZO1HBahGr8c2v16GRnNdkT JoBMyzwTq7kHyQaQvwUwD/gH5shTK699g801cs5193U+sOytjV/OJp938 5klvCLAsFnqgLAhI5D4Hv8C7Yo+csbEyVKnkYW8TNJL+wJtL1M8tiRBxZ Xp3totWpSyiVdUgAo1CY73y31YukKatVTKOarKSfcFkmJrc+Cg5E4PeTU EUcJ1uZrUw4sRUDXr0WromdnIKqPhFJsUIpYIotwRclAIx7gt04dDzLm5 ellvGTli1m9KzQcyovEyiahibbS1czcpFwhbg0dO07OBAIrTXdsqYVWq2 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10561"; a="317296785" X-IronPort-AV: E=Sophos;i="5.96,246,1665471600"; d="scan'208";a="317296785" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Dec 2022 20:23:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10561"; a="681727351" X-IronPort-AV: E=Sophos;i="5.96,246,1665471600"; d="scan'208";a="681727351" Received: from unknown (HELO localhost.localdomain) ([10.190.193.12]) by orsmga001.jf.intel.com with ESMTP; 14 Dec 2022 20:23:13 -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 v4] vdpa/ifc: Match default subsystem IDs for modern virtio-blk devices Date: Thu, 15 Dec 2022 09:18:18 +0530 Message-Id: <20221215034818.2145612-1-abhishek.maheshwari@intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20221215034207.2145419-1-abhishek.maheshwari@intel.com> References: <20221215034207.2145419-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 Amending the match table for vdpa/ifcvf driver to work with virtio-blk devices that have default subsystem IDs. Cc: stable@dpdk.org Signed-off-by: Abhishek Maheshwari --- v3: * Removing match with ANY_IDs * Adding support for only default subsystem IDs v2: * commit message update --- drivers/vdpa/ifc/base/ifcvf.h | 1 + drivers/vdpa/ifc/ifcvf_vdpa.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/drivers/vdpa/ifc/base/ifcvf.h b/drivers/vdpa/ifc/base/ifcvf.h index 3726da7a33..04c81c8196 100644 --- a/drivers/vdpa/ifc/base/ifcvf.h +++ b/drivers/vdpa/ifc/base/ifcvf.h @@ -20,6 +20,7 @@ #define IFCVF_SUBSYS_DEVICE_ID 0x001A #define IFCVF_SUBSYS_NET_DEVICE_ID 0x0001 #define IFCVF_SUBSYS_BLK_DEVICE_ID 0x0002 +#define IFCVF_SUBSYS_DEFAULT_DEVICE_ID 0x0000 #define IFCVF_MAX_QUEUES 32 diff --git a/drivers/vdpa/ifc/ifcvf_vdpa.c b/drivers/vdpa/ifc/ifcvf_vdpa.c index 49d68ad1b1..edc6db545d 100644 --- a/drivers/vdpa/ifc/ifcvf_vdpa.c +++ b/drivers/vdpa/ifc/ifcvf_vdpa.c @@ -1849,6 +1849,13 @@ static const struct rte_pci_id pci_id_ifcvf_map[] = { .subsystem_device_id = IFCVF_SUBSYS_BLK_DEVICE_ID, }, + { .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_DEFAULT_DEVICE_ID, + }, /* virtio-blk devices with default subsystem IDs */ + { .vendor_id = 0, /* sentinel */ }, }; -- 2.31.1