diff options
author | Xavier Simonart <xavier.simonart@intel.com> | 2020-05-26 11:46:41 +0200 |
---|---|---|
committer | Xavier Simonart <xavier.simonart@intel.com> | 2020-05-29 23:47:36 +0200 |
commit | ad584f4d9da98fa5fbdc19a69b63b323e27458dc (patch) | |
tree | 28a042978087d29390083d3607637810d91e2119 | |
parent | 4fa870ba4647271b11ae7927ead2696e13dad7e4 (diff) |
Fix source mac address when applying imix
Change-Id: I8cbbe1b08af9b5472c304f2fba3635f0a084fdd8
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
-rw-r--r-- | VNFs/DPPD-PROX/handle_gen.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/VNFs/DPPD-PROX/handle_gen.c b/VNFs/DPPD-PROX/handle_gen.c index ac75f221..427564c9 100644 --- a/VNFs/DPPD-PROX/handle_gen.c +++ b/VNFs/DPPD-PROX/handle_gen.c @@ -712,6 +712,9 @@ static int task_gen_set_eth_ip_udp_sizes(struct task_gen *task, uint32_t n_orig_ template = &task->pkt_template[k]; template->len = pkt_sizes[j]; rte_memcpy(template->buf, task->pkt_template_orig[i].buf, pkt_sizes[j]); + if (task->flags & TASK_OVERWRITE_SRC_MAC_WITH_PORT_MAC) { + rte_memcpy(&template->buf[sizeof(prox_rte_ether_addr)], &task->src_mac, sizeof(prox_rte_ether_addr)); + } parse_l2_l3_len(template->buf, &template->l2_len, &template->l3_len, template->len); if (template->l2_len == 0) continue; |