Rename the nvme_free_request macro to nvme_dealloc_request to match nvme_alloc_request and add a wrapper function to nvme.c so that the macro contents are only expanded once. The DPDK nvme_impl.h uses rte_mempool_put(), which generates a large amount of code inline. Moving this macro expansion to a wrapper function avoids inlining it in the multiple places nvme_free_request() gets called, most of which are error handling cases that are not in the hot I/O path. Change-Id: I64ea9c39ba47e26672eee8d5058f1489e07eee5b Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> |
||
---|---|---|
.. | ||
Makefile | ||
nvme_ctrlr_cmd.c | ||
nvme_ctrlr.c | ||
nvme_impl.h | ||
nvme_internal.h | ||
nvme_ns_cmd.c | ||
nvme_ns.c | ||
nvme_qpair.c | ||
nvme.c |