diff options
author | Xavier Simonart <xavier.simonart@intel.com> | 2019-10-11 13:18:33 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2019-10-11 13:18:33 +0000 |
commit | b9af66b18bf298f292c62339b0ca41595a3e6b56 (patch) | |
tree | 586cf83b684ceef7bfebc24b5968d061ad44ae4e /VNFs/DPPD-PROX/handle_dump.c | |
parent | d11d6d0006c890d586e0d2d3382436804cda8625 (diff) | |
parent | 0f150c2738f496a52cce712991af9ad737ef9254 (diff) |
Merge "Fix generation through pcap file"
Diffstat (limited to 'VNFs/DPPD-PROX/handle_dump.c')
-rw-r--r-- | VNFs/DPPD-PROX/handle_dump.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/VNFs/DPPD-PROX/handle_dump.c b/VNFs/DPPD-PROX/handle_dump.c index 71874620..29a46fef 100644 --- a/VNFs/DPPD-PROX/handle_dump.c +++ b/VNFs/DPPD-PROX/handle_dump.c @@ -65,6 +65,8 @@ static void init_task_dump(struct task_base *tbase, __attribute__((unused)) stru struct task_dump *task = (struct task_dump *)tbase; const int socket_id = rte_lcore_to_socket_id(targ->lconf->id); + if (targ->n_pkts == 0) + targ->n_pkts = 64 * 1024; task->mbufs = prox_zmalloc(sizeof(*task->mbufs) * targ->n_pkts, socket_id); task->n_pkts = targ->n_pkts; if (!strcmp(targ->pcap_file, "")) { |