Loading lib/bdev/malloc/blockdev_malloc.c +3 −1 Original line number Diff line number Diff line Loading @@ -235,12 +235,14 @@ struct malloc_disk *create_malloc_disk(uint64_t num_blocks, uint32_t block_size) return NULL; } mdisk = rte_zmalloc(NULL, sizeof(*mdisk), 0); mdisk = rte_malloc(NULL, sizeof(*mdisk), 0); if (!mdisk) { perror("mdisk"); return NULL; } memset(mdisk, 0, sizeof(*mdisk)); /* * Allocate the large backend memory buffer using rte_malloc(), * so that we guarantee it is allocated from hugepage memory. Loading lib/ioat/ioat_impl.h +7 −2 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ #include <pthread.h> #include <stdio.h> #include <stdbool.h> #include <string.h> #include <rte_config.h> #include <rte_malloc.h> #include <rte_atomic.h> Loading Loading @@ -39,8 +40,12 @@ static inline void * ioat_zmalloc(const char *tag, size_t size, unsigned align, uint64_t *phys_addr) { void *buf = rte_zmalloc(tag, size, align); void *buf = rte_malloc(tag, size, align); if (buf) { memset(buf, 0, size); *phys_addr = rte_malloc_virt2phy(buf); } return buf; } Loading Loading
lib/bdev/malloc/blockdev_malloc.c +3 −1 Original line number Diff line number Diff line Loading @@ -235,12 +235,14 @@ struct malloc_disk *create_malloc_disk(uint64_t num_blocks, uint32_t block_size) return NULL; } mdisk = rte_zmalloc(NULL, sizeof(*mdisk), 0); mdisk = rte_malloc(NULL, sizeof(*mdisk), 0); if (!mdisk) { perror("mdisk"); return NULL; } memset(mdisk, 0, sizeof(*mdisk)); /* * Allocate the large backend memory buffer using rte_malloc(), * so that we guarantee it is allocated from hugepage memory. Loading
lib/ioat/ioat_impl.h +7 −2 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ #include <pthread.h> #include <stdio.h> #include <stdbool.h> #include <string.h> #include <rte_config.h> #include <rte_malloc.h> #include <rte_atomic.h> Loading Loading @@ -39,8 +40,12 @@ static inline void * ioat_zmalloc(const char *tag, size_t size, unsigned align, uint64_t *phys_addr) { void *buf = rte_zmalloc(tag, size, align); void *buf = rte_malloc(tag, size, align); if (buf) { memset(buf, 0, size); *phys_addr = rte_malloc_virt2phy(buf); } return buf; } Loading