Fix using signature in latency measurements 27/50227/1
authorXavier Simonart <xavier.simonart@intel.com>
Mon, 8 Jan 2018 11:10:41 +0000 (12:10 +0100)
committerXavier Simonart <xavier.simonart@intel.com>
Mon, 8 Jan 2018 11:10:41 +0000 (12:10 +0100)
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>
VNFs/DPPD-PROX/handle_lat.c

index 0b7ad56..95ebcc7 100644 (file)
@@ -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;