bdev/crypto: report accel sequence support
The code was already ready for that, so it's only a matter of reporting that to the bdev layer. Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: I46ea2e6794e00590930651c5ff8c36588de641b4 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17042 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
This commit is contained in:
parent
43cf39be90
commit
6a86385dad
@ -695,14 +695,27 @@ vbdev_crypto_get_memory_domains(void *ctx, struct spdk_memory_domain **domains,
|
|||||||
return num_domains + 1;
|
return num_domains + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static bool
|
||||||
|
vbdev_crypto_sequence_supported(void *ctx, enum spdk_bdev_io_type type)
|
||||||
|
{
|
||||||
|
switch (type) {
|
||||||
|
case SPDK_BDEV_IO_TYPE_READ:
|
||||||
|
case SPDK_BDEV_IO_TYPE_WRITE:
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* When we register our bdev this is how we specify our entry points. */
|
/* When we register our bdev this is how we specify our entry points. */
|
||||||
static const struct spdk_bdev_fn_table vbdev_crypto_fn_table = {
|
static const struct spdk_bdev_fn_table vbdev_crypto_fn_table = {
|
||||||
.destruct = vbdev_crypto_destruct,
|
.destruct = vbdev_crypto_destruct,
|
||||||
.submit_request = vbdev_crypto_submit_request,
|
.submit_request = vbdev_crypto_submit_request,
|
||||||
.io_type_supported = vbdev_crypto_io_type_supported,
|
.io_type_supported = vbdev_crypto_io_type_supported,
|
||||||
.get_io_channel = vbdev_crypto_get_io_channel,
|
.get_io_channel = vbdev_crypto_get_io_channel,
|
||||||
.dump_info_json = vbdev_crypto_dump_info_json,
|
.dump_info_json = vbdev_crypto_dump_info_json,
|
||||||
.get_memory_domains = vbdev_crypto_get_memory_domains,
|
.get_memory_domains = vbdev_crypto_get_memory_domains,
|
||||||
|
.accel_sequence_supported = vbdev_crypto_sequence_supported,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct spdk_bdev_module crypto_if = {
|
static struct spdk_bdev_module crypto_if = {
|
||||||
|
Loading…
Reference in New Issue
Block a user