Content-Type: multipart/mixed; boundary="===============6301474654976982986==" MIME-Version: 1.0 From: ramesh.thomas at intel.com Subject: [Accel-config] [PATCH v1 4/6] accel-config: Remove existing op_cap API to be replaced with new one Date: Fri, 07 May 2021 15:31:24 -0400 Message-ID: <20210507193126.841998-5-ramesh.thomas@intel.com> In-Reply-To: 20210507193126.841998-1-ramesh.thomas@intel.com To: accel-config@lists.01.org List-ID: --===============6301474654976982986== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Ramesh Thomas 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 --- 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 cha= r *ctl_base, "max_batch_size"); device->max_transfer_size =3D accfg_get_param_unsigned_llong(ctx, dfd, "max_transfer_size"); - device->opcap =3D accfg_get_param_unsigned_llong(ctx, dfd, "op_cap"); device->gencap =3D accfg_get_param_unsigned_llong(ctx, dfd, "gen_cap"); device->configurable =3D 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 *dev= ice); 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_d= evice *device, json_object_object_add(jdevice, "errors", jobj); } = - ulong_val =3D accfg_device_get_op_cap(device); - if (ulong_val > 0) { - jobj =3D util_json_object_hex(ulong_val, flags); - if (!jobj) - goto err; - json_object_object_add(jdevice, "op_cap", jobj); - } - jobj =3D util_json_object_hex(accfg_device_get_gen_cap(device), flags); if (!jobj) goto err; -- = 2.26.3 --===============6301474654976982986==--