Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Du <[email protected]>
  • Loading branch information
frankdjx committed Dec 26, 2023
1 parent 56c0b58 commit 80620d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/dev/mt_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1938,11 +1938,13 @@ int mt_dev_get_socket_id(const char* port) {
int mt_dev_init(struct mtl_init_params* p, struct mt_kport_info* kport_info) {
int ret;

#if RTE_VERSION >= RTE_VERSION_NUM(23, 7, 0, 0) /* introduce from 23.07 */
if (p->memzone_max) {
rte_memzone_max_set(p->memzone_max);
info("%s, user preferred memzone_max %u, now %" PRIu64 "\n", __func__, p->memzone_max,
rte_memzone_max_get());
}
#endif

ret = dev_eal_init(p, kport_info);
if (ret < 0) {
Expand Down

0 comments on commit 80620d6

Please sign in to comment.