A new API was added `spdk_bdev_io_get_aux_buf` allowing the caller to request an auxiliary buffer for its own private use. The API is used in the same manner that `spdk_bdev_io_get_buf` is used and the length of the buffer is always the same as the bdev_io primary buffer. 'spdk_bdev_io_put_aux_buf' is called to free the auxiliary buffer. The initial use case is crypto, in the next patch in series it is used. No UT were added as the logic isn't that complicated and it is fully tested with each run of crypto. Fixed a comment typo also (not mine for once). Signed-off-by: paul luse <paul.e.luse@intel.com> Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: Ib1939fcbc8e5db36fd909ef26771a725a551e8e6 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/478383 Community-CI: SPDK CI Jenkins <sys_sgci@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> |
||
---|---|---|
.. | ||
bdev_internal.h | ||
bdev_rpc.c | ||
bdev_zone.c | ||
bdev.c | ||
Makefile | ||
part.c | ||
scsi_nvme.c | ||
vtune.c |