Commit f7d25cf7 authored by paul luse's avatar paul luse Committed by Jim Harris
Browse files

lib/accel: remove dead code



Not needed with new scheme around accel_task in prior patches.

Signed-off-by: default avatarpaul luse <paul.e.luse@intel.com>
Change-Id: Ic6f16654db62fe1dc51b0822f0ff92261da4494c
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3212


Community-CI: Mellanox Build Bot
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent e8463f87
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -8,6 +8,9 @@ The accel_fw was updated to no longer require the app to allocate an
accel_task on its behalf. All public APIs now take a callback arg as
the parameter that used to be the accel_task.

The accel_fw API `spdk_accel_task_size` was removed as it is no longer
required.

The accel_fw was updated to support compare, dualcast, crc32c.

The accel_fw introduced batching support for all commands in all plug-ins.
+0 −9
Original line number Diff line number Diff line
@@ -71,8 +71,6 @@ typedef void (*spdk_accel_fini_cb)(void *cb_arg);

struct spdk_io_channel;

struct spdk_accel_task;

struct spdk_accel_batch;

/**
@@ -336,13 +334,6 @@ int spdk_accel_batch_prep_crc32c(struct spdk_io_channel *ch, struct spdk_accel_b
int spdk_accel_submit_crc32c(struct spdk_io_channel *ch, uint32_t *dst, void *src, uint32_t seed,
			     uint64_t nbytes, spdk_accel_completion_cb cb_fn, void *cb_arg);

/**
 * Get the size of an acceleration task.
 *
 * \return the size of acceleration task.
 */
size_t spdk_accel_task_size(void);

struct spdk_json_write_ctx;

/**
+0 −7
Original line number Diff line number Diff line
@@ -427,13 +427,6 @@ spdk_accel_submit_crc32c(struct spdk_io_channel *ch, uint32_t *dst, void *src, u
	}
}

/* Returns the largest context size of the accel modules. */
size_t
spdk_accel_task_size(void)
{
	return g_max_accel_module_size;
}

/* Helper function when when accel modules register with the framework. */
void spdk_accel_module_list_add(struct spdk_accel_module_if *accel_module)
{
+0 −1
Original line number Diff line number Diff line
@@ -21,7 +21,6 @@
	spdk_accel_submit_compare;
	spdk_accel_submit_fill;
	spdk_accel_submit_crc32c;
	spdk_accel_task_size;
	spdk_accel_write_config_json;

	# functions needed by modules