]> git.droids-corp.org - dpdk.git/blobdiff - app/test-pmd/rxonly.c
app/testpmd: add Rx HW timestamp
[dpdk.git] / app / test-pmd / rxonly.c
index 57df0146843a2da5676a81d72c4a1945cd3fa48d..fd9a437b68ac9662d6e5b36b3b665a2c7c149a84 100644 (file)
@@ -158,6 +158,8 @@ pkt_burst_receive(struct fwd_stream *fs)
                                printf("hash=0x%x ID=0x%x ",
                                       mb->hash.fdir.hash, mb->hash.fdir.id);
                }
+               if (ol_flags & PKT_RX_TIMESTAMP)
+                       printf(" - timestamp %"PRIu64" ", mb->timestamp);
                if (ol_flags & PKT_RX_VLAN_STRIPPED)
                        printf(" - VLAN tci=0x%x", mb->vlan_tci);
                if (ol_flags & PKT_RX_QINQ_STRIPPED)