diff options
author | Luc Provoost <luc.provoost@intel.com> | 2021-02-25 18:34:11 +0100 |
---|---|---|
committer | Luc Provoost <luc.provoost@intel.com> | 2021-03-15 17:06:50 +0000 |
commit | c8b5dd5aa379c9b8fd60a66be16351f62e5e5ebb (patch) | |
tree | 24bf27741728e7b9e2cc1b921ad523271f8f90f6 /VNFs/DPPD-PROX/handle_mirror.c | |
parent | 296cfb0b4fd5fdc534a1c2f6104d83be21a4f62b (diff) |
Fix the tuned optimizations
tuned-adm is now run through check_prox_system_setup.sh at the first
system startup/reboot. This will result in the correct grub cmdline
parameters.
We are also coying the default rapid_rsa_key in the authorized_keys of
the rapid user, which is now the default user to run the tests.
Fixed also an issue in handle_mirror.c: using now ETYPE_IPv4.
Changed deploycentostools.sh to reflect the changes done when building
the image with disk-image-create.
Change-Id: I5933d21faef9fe02b56c01d0b96e2c143cc5476d
Signed-off-by: Luc Provoost <luc.provoost@intel.com>
Diffstat (limited to 'VNFs/DPPD-PROX/handle_mirror.c')
-rw-r--r-- | VNFs/DPPD-PROX/handle_mirror.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/VNFs/DPPD-PROX/handle_mirror.c b/VNFs/DPPD-PROX/handle_mirror.c index 53e341e2..ba6e590c 100644 --- a/VNFs/DPPD-PROX/handle_mirror.c +++ b/VNFs/DPPD-PROX/handle_mirror.c @@ -71,7 +71,7 @@ static int handle_mirror_bulk(struct task_base *tbase, struct rte_mbuf **mbufs, for (uint16_t j = 0; j < n_pkts; ++j) { rte_pktmbuf_refcnt_update(mbufs2[j], (task->n_dests - 1) * task->multiplier); prox_rte_ipv4_hdr *pip = (prox_rte_ipv4_hdr *) (hdr[j] + 1); - if ((task->mirror_size != 0) && (hdr[j]->ether_type == RTE_ETHER_TYPE_IPV4) && ((pip->next_proto_id == IPPROTO_UDP) || (pip->next_proto_id == IPPROTO_TCP))) { + if ((task->mirror_size != 0) && (hdr[j]->ether_type == ETYPE_IPv4) && ((pip->next_proto_id == IPPROTO_UDP) || (pip->next_proto_id == IPPROTO_TCP))) { rte_pktmbuf_pkt_len(mbufs2[j]) = task->mirror_size; rte_pktmbuf_data_len(mbufs2[j]) = task->mirror_size; pip->total_length = rte_bswap16(task->mirror_size-sizeof(prox_rte_ether_hdr)); |