[dpdk-dev] Saving packet timestamp when reading from pcap

2015-04-21 Thread Dor Green
Aside from testing, this also has the benefit of being able to run a capture file through your application without having to send it through another NIC (if you have only one, that'd be impossible, for example). I can see this being needed if you had, for instance, a DPI app in DPDK and wanted to r

[dpdk-dev] Saving packet timestamp when reading from pcap

2015-04-21 Thread Nicolas Pernas Maradei
Hi Dor, What you are looking for seems straight forward to implement and it should not really affect the driver's performance at all. Even adding the full timestamp (seconds plus microseconds). However, I don't see too much people looking for that feature to make it to mainline. I could be wro

[dpdk-dev] Saving packet timestamp when reading from pcap

2015-04-20 Thread Dor Green
To test my program and for some other uses I sometimes use vdev (libpcap pmd) to read data from a pcap file. Those tests would be a lot easier if the packet timestamp (which is in the cap) was supplied by DPDK, but alas it is not. So I could access it, I placed it in mbuf's userdata for the timeb