From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47450C61DD6 for ; Tue, 1 Sep 2026 16:17:42 +0000 (UTC) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6E41840ED2; Tue, 1 Sep 2026 18:16:08 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by mails.dpdk.org (Postfix) with ESMTP id 10FA540E72 for ; Tue, 1 Sep 2026 18:16:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1788279366; x=1819815366; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=LsSS4K04/8gx9qpkdJ7KWGwNSmkzZtHLfRkPEnqpf4g=; b=R+aWM3+Iy9c7/ms6l6nxFGqo5ghxIGc9UMZVvl6LkAVUVeYAE+4BX+ln hIubSUa/DvEDrRFl5M7Zm4zGexMpLz3nGPlD/U2znhbTk0bHIYTat+26o QAhZPPXA8vU9+OzThFnixEMuRY1zWof4LHUNHsTGC+K7gn4FKrduBr2qg uHzB3TRe8O88CgNF6q+ThEjchhloiqahseANFRf6Frcw7urooRGIbXQXv byR2+pipktV2iAFhNZDlUkTfBHxgUimuJ1Ap8NJETv/dgGUVuJYWYvh7a 1KQ8UAqfGFZwLvM6fk3cKyFSk/kqAqFEfX9sAyjBZbHm3oWyNtsbQy3E1 g==; X-CSE-ConnectionGUID: i0y8Prt9ThuXi2izQvH/1A== X-CSE-MsgGUID: 1ySnYvqbRROBJ+mgi46miQ== X-IronPort-AV: E=McAfee;i="6800,10657,11893"; a="87656103" X-IronPort-AV: E=Sophos;i="6.25,256,1779174000"; d="scan'208";a="87656103" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2026 09:16:06 -0700 X-CSE-ConnectionGUID: lG39vepsS02UR6mkugUDZg== X-CSE-MsgGUID: 7ij8K6kwSd2PlKL1EtSTnQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,256,1779174000"; d="scan'208";a="299032570" Received: from silpixa00401119.ir.intel.com ([10.20.224.206]) by orviesa002.jf.intel.com with ESMTP; 01 Sep 2026 09:16:04 -0700 From: Anatoly Burakov To: dev@dpdk.org, Maxime Coquelin , Chenbo Xia Subject: [PATCH v15 17/25] vhost: remove group-related API from driver Date: Tue, 1 Sep 2026 17:15:23 +0100 Message-ID: <7a53f64240a3ed537392b2c3e36dfbe973524f7e.1788278992.git.anatoly.burakov@intel.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: References: 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 The vDPA driver API has "get_vfio_group_fd" in its ops structure, but no driver is using it any more, as better API's were added and implemented. Remove this API from vDPA ops structure. Signed-off-by: Anatoly Burakov --- doc/guides/prog_guide/vhost_lib.rst | 4 ---- doc/guides/rel_notes/deprecation.rst | 4 ---- doc/guides/rel_notes/release_26_11.rst | 3 +++ lib/vhost/vdpa_driver.h | 3 --- 4 files changed, 3 insertions(+), 11 deletions(-) diff --git a/doc/guides/prog_guide/vhost_lib.rst b/doc/guides/prog_guide/vhost_lib.rst index 345a621716..99355b8afd 100644 --- a/doc/guides/prog_guide/vhost_lib.rst +++ b/doc/guides/prog_guide/vhost_lib.rst @@ -471,10 +471,6 @@ Finally, a set of device ops is defined for device specific operations: Called to allow the device to respond to RARP sending. -* ``get_vfio_group_fd`` - - Called to get the VFIO group fd of the device. - * ``get_vfio_device_fd`` Called to get the VFIO device fd of the device. diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index 8a82c815e3..e4a754d037 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc/guides/rel_notes/deprecation.rst @@ -29,10 +29,6 @@ Deprecation Notices Use the ``-S `` parameter instead to specify the cores to be used for background services in DPDK. -* vdpa: The vDPA driver API will no longer offer ``get_vfio_group_fd`` - as part of its internal API. All drivers will be adjusted - to use the new unified VFIO container device assignment API. - * rte_atomicNN_xxx: These APIs do not take memory order parameter. This does not allow for writing optimized code for all the CPU architectures supported in DPDK. DPDK has adopted the atomic operations from diff --git a/doc/guides/rel_notes/release_26_11.rst b/doc/guides/rel_notes/release_26_11.rst index 71d12a4398..006b1d3e5a 100644 --- a/doc/guides/rel_notes/release_26_11.rst +++ b/doc/guides/rel_notes/release_26_11.rst @@ -117,6 +117,9 @@ ABI Changes These functions are now available only to EAL and drivers, and are no longer part of the public ABI. +* vdpa: Removed ``get_vfio_group_fd`` from ``struct rte_vdpa_dev_ops``. + vDPA drivers should now use the VFIO container device assignment API. + Known Issues ------------ diff --git a/lib/vhost/vdpa_driver.h b/lib/vhost/vdpa_driver.h index 42392a0d14..c7b9be09fb 100644 --- a/lib/vhost/vdpa_driver.h +++ b/lib/vhost/vdpa_driver.h @@ -50,9 +50,6 @@ struct rte_vdpa_dev_ops { /** Destination operations when migration done */ int (*migration_done)(int vid); - /** Get the vfio group fd */ - int (*get_vfio_group_fd)(int vid); - /** Get the vfio device fd */ int (*get_vfio_device_fd)(int vid); -- 2.52.0