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 70FD3A0543; Thu, 15 Dec 2022 05:17:14 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0C9DB40684; Thu, 15 Dec 2022 05:17:14 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 1ED7940223; Thu, 15 Dec 2022 05:17:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671077832; x=1702613832; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=E3PbE5VOvBbX0bSP929zE6Gh6zWjxNYvJJ/qmDv7k/k=; b=NJ/gaw/evL3OpxJJJwBPmGriQemKb6mtl7P3s1wOTMFKrqmU581mpwgQ 2fEmK2u+j4j8YrKTqO3mxPwiNUoUHovOYSVnrCIZHTMXvPW3VgEkMpx5g L6MEkEysCgDAuQOpe+MxCuJ4yYSEg5TJQmWpa6VAiiSEhGkTh2gx788Gl 6O3OHEsu/EN+fX1EckC7jal/cg25n6Ag+rT2ZMhbg/LXNyRrjVNdKbGf3 09qUo8WBt2nPR8NfIK7+K38R1LPPnvGN2goLxLDCV1SirOmjjX6SQCpOk 6Edt9NLcsJsQ2OCkMqPFi5t+dFFzdfm5RIYN8X7qcHYb1NaWqTHhLbmvp w==; X-IronPort-AV: E=McAfee;i="6500,9779,10561"; a="320437321" X-IronPort-AV: E=Sophos;i="5.96,246,1665471600"; d="scan'208";a="320437321" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Dec 2022 20:17:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10561"; a="773568093" X-IronPort-AV: E=Sophos;i="5.96,246,1665471600"; d="scan'208";a="773568093" Received: from unknown (HELO localhost.localdomain) ([10.190.193.12]) by orsmga004.jf.intel.com with ESMTP; 14 Dec 2022 20:17:08 -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 v3] vdpa/ifc: Match default subsystem IDs for modern virtio-blk devices Date: Thu, 15 Dec 2022 09:12:07 +0530 Message-Id: <20221215034207.2145419-1-abhishek.maheshwari@intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20221206125524.339468-1-abhishek.maheshwari@intel.com> References: <20221206125524.339468-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 Ammending 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