diff options
author | Xavier Simonart <xavier.simonart@intel.com> | 2018-01-08 12:10:41 +0100 |
---|---|---|
committer | Xavier Simonart <xavier.simonart@intel.com> | 2018-01-08 12:10:41 +0100 |
commit | 3487cd356b4007aeef6c14ce5dda9459c7b1c6a4 (patch) | |
tree | 26948a94fd61c88ca31c2df58744632b9a0c3eb8 | |
parent | dd77bd89e11d84d378167468db85fb4ef35a0c7a (diff) |
Fix using signature in latency measurements
When doing latency measurements the generator can add a
32 bits signature in the packet at a specific location,
so that the receiver only uses the packets generated by the
generator and ignores packets generated for instance by a switch
The is particuly important for latency measurements as we use
data in the packets as timestamps, and packets generated elsewhere
would result in random latency for those packets.
Change-Id: I8352b35aff76ec8d1344a1e492b9dcc20a53f1ce
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
-rw-r--r-- | VNFs/DPPD-PROX/handle_lat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/VNFs/DPPD-PROX/handle_lat.c b/VNFs/DPPD-PROX/handle_lat.c index 0b7ad561..95ebcc73 100644 --- a/VNFs/DPPD-PROX/handle_lat.c +++ b/VNFs/DPPD-PROX/handle_lat.c @@ -611,6 +611,9 @@ static void init_task_lat(struct task_base *tbase, struct task_args *targ) task->lat_pos = targ->lat_pos; task->accur_pos = targ->accur_pos; + task->sig_pos = targ->sig_pos; + task->sig = targ->sig; + task->unique_id_pos = targ->packet_id_pos; task->latency_buffer_size = targ->latency_buffer_size; |