diff options
author | Xavier Simonart <xavier.simonart@intel.com> | 2020-11-05 12:31:45 +0100 |
---|---|---|
committer | Xavier Simonart <xavier.simonart@intel.com> | 2020-11-05 12:43:27 +0100 |
commit | 1bdca995e0a32dde93a7fcf72718f35cc0468df9 (patch) | |
tree | 94887342fe1edba349351b119e169c5ad84b7ec3 /VNFs | |
parent | 65ff9dbf91f72cd3b5001eb41e4969049c8ebcd5 (diff) |
Fix setting imx pkt sizes through config files
Change-Id: I0e5098747cc496da8632e8d6f779e418da03dc4a
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
Diffstat (limited to 'VNFs')
-rw-r--r-- | VNFs/DPPD-PROX/handle_gen.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/VNFs/DPPD-PROX/handle_gen.c b/VNFs/DPPD-PROX/handle_gen.c index 81175cb4..6a517c3f 100644 --- a/VNFs/DPPD-PROX/handle_gen.c +++ b/VNFs/DPPD-PROX/handle_gen.c @@ -1184,7 +1184,10 @@ static void task_gen_reset_pkt_templates_content(struct task_gen *task) static void task_gen_reset_pkt_templates(struct task_gen *task) { - task_gen_reset_pkt_templates_len(task); + if (task->imix_nb_pkts) + task_gen_set_pkt_templates_len(task, task->imix_pkt_sizes); + else + task_gen_reset_pkt_templates_len(task); task_gen_reset_pkt_templates_content(task); task_gen_pkt_template_recalc_all(task); } @@ -1351,6 +1354,11 @@ void task_gen_reset_values(struct task_base *tbase) struct task_gen *task = (struct task_gen *)tbase; task_gen_reset_pkt_templates_content(task); + task_gen_pkt_template_recalc_metadata(task); + check_all_pkt_size(task, DO_NOT_PANIC); + check_all_fields_in_bounds(task, DO_NOT_PANIC); + task_gen_set_eth_ip_udp_sizes(task, task->orig_n_pkts, task->imix_nb_pkts, task->imix_pkt_sizes); + if (task->flags & TASK_OVERWRITE_SRC_MAC_WITH_PORT_MAC) { for (uint32_t i = 0; i < task->n_pkts; ++i) { rte_memcpy(&task->pkt_template[i].buf[sizeof(prox_rte_ether_addr)], &task->src_mac, sizeof(prox_rte_ether_addr)); |