You can try it with testpmd as following:

port stop all
port config all rx-timestamp on
port start all
start


you will get all packets as following if running in rxonly mode.
port 1/queue 1: received 1 packets
  src=00:16:3E:23:D0:6D - dst=7C:FE:90:12:23:15 - type=0x8100 - length=1496 - 
nb_segs=1 - RSS hash=0xf32d0b79 - RSS queue=0x1 - timestamp 189810534625590  - 
hw ptype: L2_ETHER L3_IPV4_EXT_UNKNOWN L4_NONFRAG  - sw ptype: L2_ETHER_VLAN 
L3_IPV4  - l2_len=18 - l3_len=20 - Receive queue=0x1
  ol_flags: PKT_RX_RSS_HASH PKT_RX_L4_CKSUM_UNKNOWN PKT_RX_IP_CKSUM_UNKNOWN 
PKT_RX_TIMESTAMP


Kindest regards,
Raslan Darawsheh

-----Original Message-----
From: users [mailto:users-boun...@dpdk.org] On Behalf Of Yuliang Li
Sent: Monday, July 9, 2018 6:56 PM
To: users@dpdk.org
Subject: [dpdk-users] NIC rx timestamp

Hi,

Is there any way to get the NIC (hardware) rx timestamp for every packet in 
dpdk?

Thanks,
--
Yuliang Li
PhD student
Department of Computer Science
Yale University

Reply via email to