Spdk/test/unit/lib/bdev/crypto.c
Darek Stojaczyk 73d1df6dd6 bdev/crypto: align I/O buffers for encrypt
In patch fbec702944 (bdev/crypto: Set QAT alignment
requirement) we added an alignment requirement for I/O
buffers, but the internally-allocated buffers for
encryption haven't respected it.

We now allocate those buffers with the crypto bdev's
required alignment. It is only required for QAT and we
do it unconditionally, but we don't want to strcmp the
driver name in the hot I/O path just for that - the
code is to be refactored anyway.

Change-Id: I2cbc04408ddc5574f212b63536a05eb73ceba104
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/441908
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2019-01-24 21:52:22 +00:00
..
.gitignore bdev: Add crypto virtual bdev module 2018-09-17 21:23:14 +00:00
crypto_ut.c bdev/crypto: align I/O buffers for encrypt 2019-01-24 21:52:22 +00:00
Makefile build: remove duplicate spdk.app.mk includes 2018-12-11 18:07:53 +00:00
rte_crypto.h bdev: Add crypto virtual bdev module 2018-09-17 21:23:14 +00:00
rte_cryptodev.h ut/crypto: update mocked headers for dpdk 18.08 2018-10-22 18:01:45 +00:00
rte_mbuf.h bdev: Add crypto virtual bdev module 2018-09-17 21:23:14 +00:00
rte_mempool.h bdev: Add crypto virtual bdev module 2018-09-17 21:23:14 +00:00