From b27a1203e084461475061363f57be025fbeef7bf Mon Sep 17 00:00:00 2001 From: Ben Walker Date: Tue, 11 Jan 2022 09:05:15 -0700 Subject: [PATCH] idxd: Remove spdk_idxd_chan_get_max_operations This is no longer needed. Signed-off-by: Ben Walker Change-Id: I11b7e9acbcf1239a0ad2f49169d7e3d5844a1b93 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11029 Community-CI: Broadcom CI Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Changpeng Liu --- include/spdk/idxd.h | 8 -------- lib/idxd/idxd.c | 9 --------- lib/idxd/spdk_idxd.map | 1 - 3 files changed, 18 deletions(-) diff --git a/include/spdk/idxd.h b/include/spdk/idxd.h index 9acdb63d5..54c3d4f34 100644 --- a/include/spdk/idxd.h +++ b/include/spdk/idxd.h @@ -271,14 +271,6 @@ struct spdk_idxd_io_channel *spdk_idxd_get_channel(struct spdk_idxd_device *idxd */ void spdk_idxd_put_channel(struct spdk_idxd_io_channel *chan); -/** - * Get the max number of outstanding operations supported by this channel. - * - * \param chan IDXD channel to communicate on. - * \return max number of operations supported. - */ -int spdk_idxd_chan_get_max_operations(struct spdk_idxd_io_channel *chan); - #ifdef __cplusplus } #endif diff --git a/lib/idxd/idxd.c b/lib/idxd/idxd.c index fb951f214..aa7a5fa13 100644 --- a/lib/idxd/idxd.c +++ b/lib/idxd/idxd.c @@ -272,15 +272,6 @@ spdk_idxd_put_channel(struct spdk_idxd_io_channel *chan) free(chan); } -/* returns the total max operations for channel. */ -int -spdk_idxd_chan_get_max_operations(struct spdk_idxd_io_channel *chan) -{ - assert(chan != NULL); - - return chan->idxd->total_wq_size / chan->idxd->chan_per_device; -} - static inline struct spdk_idxd_impl * idxd_get_impl_by_name(const char *impl_name) { diff --git a/lib/idxd/spdk_idxd.map b/lib/idxd/spdk_idxd.map index 0a684a4c7..38ea77295 100644 --- a/lib/idxd/spdk_idxd.map +++ b/lib/idxd/spdk_idxd.map @@ -2,7 +2,6 @@ global: # public functions - spdk_idxd_chan_get_max_operations; spdk_idxd_probe; spdk_idxd_detach; spdk_idxd_batch_prep_copy;