Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spdk_zmalloc: Remove unnecessary memset()
Normally, unless RTE_MALLOC_DEBUG is set, DPDK zeroes memory in rte_free(). If RTE_MALLOC_DEBUG rte_free() fills memory with poison pattern, but then (and only then) the memory is zeroed in rte_zmalloc_socket(). Relying on this behavior allows to avoid unnecessary memset() in spdk_zmalloc() path. Signed-off-by: Robert Baldyga <robert.baldyga@intel.com> Change-Id: If3efa4dd22f1568949c3fb529b604bd597ceb32f Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6975 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
- Loading branch information