Those were added to allow us mocking DPDK functions originaly defined as static inline. They are based on a fixed DPDK version and currently require a lot of effort to update for DPDK 19.02+. There's a different way of mocking them: > #define rte_crypto_op_bulk_alloc mock_rte_crypto_op_bulk_alloc > static inline unsigned mock_rte_crypto_op_bulk_alloc() { ... } This patch uses the above method to mock all static inline functions before including the crypto source file in crypto_ut. As a result we can get rid of the rte_ header copies from SPDK, which greatly reduces the effort required to make crypto_ut work with DPDK 19.02. Change-Id: I0f07a9ff4f1c63036e058dffd3fcf0c21e77bff3 Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/c/443592 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> |
||
---|---|---|
.. | ||
.gitignore | ||
crypto_ut.c | ||
Makefile |