net/pcap: propagate timestamp from header to mbuf
authorSylvain Rodon <srn@nexatech.fr>
Fri, 2 Aug 2019 08:57:24 +0000 (10:57 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 27 Aug 2019 11:52:53 +0000 (13:52 +0200)
commitce276d9ec35b7e1200d7946a5e30117ce1162950
tree5c7335732a60c7efad676e4a92210985675ebb7c
parenta9b28a4391b2a3a9f1afc0bf98a2b3a01aed9473
net/pcap: propagate timestamp from header to mbuf

Timestamp is always set in PCAP header, whether it reads a file or
listen on an interface. This information can be important for some
applications and it cannot be obtained otherwise (especially when
reading a PCAP file, where the timestamp is not the current time).
Timestamp here is the number of microseconds since epoch.

Signed-off-by: Sylvain Rodon <srn@nexatech.fr>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/pcap/rte_eth_pcap.c