diff options
author | Deepak S <deepak.s@linux.intel.com> | 2018-07-27 16:13:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-07-27 16:13:49 +0000 |
commit | 974e4b3123b7d926d548d8924b41e8b732e2732f (patch) | |
tree | b3cb268bc4b95d1a617710d3e0346234bcf1dcd1 /VNFs/DPPD-PROX/commands.c | |
parent | 2e924e65c5ac509925bc5a28b724db108fe99111 (diff) | |
parent | 3e532aca841cbd004515930496495bea50e9b52a (diff) |
Merge "Initial support for DPDK 18.05"
Diffstat (limited to 'VNFs/DPPD-PROX/commands.c')
-rw-r--r-- | VNFs/DPPD-PROX/commands.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) |