[Accel-config] [PATCH v1 4/6] accel-config: Remove existing op_cap API to be replaced with new one

ramesh.thomas at intel.com
Newsgroups dev.linux.lists.accel-config
Message-ID <[email protected]>
From: Ramesh Thomas <ramesh.thomas(a)intel.com>

Remove the existing op_cap API which only handles the first 64 bits of
op_cap. Following patches will add new API supporting all 256 bits of
op_cap.

Signed-off-by: Ramesh Thomas <ramesh.thomas(a)intel.com>
---
 accfg/lib/libaccel-config.sym | 2 --
 accfg/lib/libaccfg.c          | 7 -------
 accfg/libaccel_config.h       | 1 -
 util/json.c                   | 8 --------
 4 files changed, 18 deletions(-)

diff --git a/accfg/lib/libaccel-config.sym b/accfg/lib/libaccel-config.sym
index 87b53f5..bffb8d8 100644
--- a/accfg/lib/libaccel-config.sym
+++ b/accfg/lib/libaccel-config.sym
@@ -22,11 +22,9 @@ LIBACCFG_1 {
 	accfg_device_get_ims_size;
 	accfg_device_get_max_batch_size;
 	accfg_device_get_max_transfer_size;
-	accfg_device_get_op_cap;
 	accfg_device_get_configurable;
 	accfg_device_get_pasid_enabled;
 	accfg_device_get_errors;
-	accfg_device_get_op_cap;
 	accfg_device_get_state;
 	accfg_device_get_max_tokens;
 	accfg_device_get_max_batch_size;
diff --git a/accfg/lib/libaccfg.c b/accfg/lib/libaccfg.c
index 548827e..1d39bd6 100644
--- a/accfg/lib/libaccfg.c
+++ b/accfg/lib/libaccfg.c
@@ -574,7 +574,6 @@ static void *add_device(void *parent, int id, const char *ctl_base,
 			"max_batch_size");
 	device->max_transfer_size =
 	    accfg_get_param_unsigned_llong(ctx, dfd, "max_transfer_size");
-	device->opcap = accfg_get_param_unsigned_llong(ctx, dfd, "op_cap");
 	device->gencap = accfg_get_param_unsigned_llong(ctx, dfd, "gen_cap");
 	device->configurable = accfg_get_param_unsigned_llong(ctx, dfd,
 			"configurable");
@@ -1251,12 +1250,6 @@ ACCFG_EXPORT uint64_t accfg_device_get_max_transfer_size(
 	return device->max_transfer_size;
 }
 
-ACCFG_EXPORT uint64_t accfg_device_get_op_cap(
-		struct accfg_device *device)
-{
-	return device->opcap;
-}
-
 ACCFG_EXPORT uint64_t accfg_device_get_gen_cap(struct accfg_device *device)
 {
 	return device->gencap;
diff --git a/accfg/libaccel_config.h b/accfg/libaccel_config.h
index 238ca1a..3354028 100644
--- a/accfg/libaccel_config.h
+++ b/accfg/libaccel_config.h
@@ -168,7 +168,6 @@ int accfg_device_get_numa_node(struct accfg_device *device);
 unsigned int accfg_device_get_ims_size(struct accfg_device *device);
 unsigned int accfg_device_get_max_batch_size(struct accfg_device *device);
 uint64_t accfg_device_get_max_transfer_size(struct accfg_device *device);
-uint64_t accfg_device_get_op_cap(struct accfg_device *device);
 uint64_t accfg_device_get_gen_cap(struct accfg_device *device);
 unsigned int accfg_device_get_configurable(struct accfg_device *device);
 bool accfg_device_get_pasid_enabled(struct accfg_device  *device);
diff --git a/util/json.c b/util/json.c
index 0ce7848..e6e12e4 100644
--- a/util/json.c
+++ b/util/json.c
@@ -228,14 +228,6 @@ struct json_object *util_device_to_json(struct accfg_device *device,
 		json_object_object_add(jdevice, "errors", jobj);
 	}
 
-	ulong_val = accfg_device_get_op_cap(device);
-	if (ulong_val > 0) {
-		jobj = util_json_object_hex(ulong_val, flags);
-		if (!jobj)
-			goto err;
-		json_object_object_add(jdevice, "op_cap", jobj);
-	}
-
 	jobj = util_json_object_hex(accfg_device_get_gen_cap(device), flags);
 	if (!jobj)
 		goto err;
-- 
2.26.3
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.