X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=VNFs%2FDPPD-PROX%2Fcommands.c;fp=VNFs%2FDPPD-PROX%2Fcommands.c;h=6c715c25b76b9ff9b865a445fa9c2675a8a3b117;hb=3e532aca841cbd004515930496495bea50e9b52a;hp=9f0be145b311cf91f1ff583b592154ea69c4246d;hpb=247bf8232dacf0108eb46efe8cf2151bbf855b8a;p=samplevnf.git diff --git a/VNFs/DPPD-PROX/commands.c b/VNFs/DPPD-PROX/commands.c index 9f0be145..6c715c25 100644 --- a/VNFs/DPPD-PROX/commands.c +++ b/VNFs/DPPD-PROX/commands.c @@ -261,6 +261,7 @@ void cmd_mem_stats(void) void cmd_mem_layout(void) { +#if RTE_VERSION < RTE_VERSION_NUM(18,5,0,0) const struct rte_memseg* memseg = rte_eal_get_physmem_layout(); plog_info("Memory layout:\n"); @@ -287,6 +288,10 @@ void cmd_mem_layout(void) memseg[i].addr, memseg[i].len/memseg[i].hugepage_sz, sz_str); } +#else + plog_info("Memory layout: command not supported in this DPDK version\n"); + // TODO DPDK1805 +#endif } void cmd_dump(uint8_t lcore_id, uint8_t task_id, uint32_t nb_packets, struct input *input, int rx, int tx)