| 52 | } |
| 53 | |
| 54 | static inline rte_mbuf_timestamp_t |
| 55 | get_timestamp(const struct rte_mbuf *mbuf) |
| 56 | { |
| 57 | static int timestamp_dynfield_offset = -1; |
| 58 | |
| 59 | if (timestamp_dynfield_offset < 0) { |
| 60 | timestamp_dynfield_offset = rte_mbuf_dynfield_lookup( |
| 61 | RTE_MBUF_DYNFIELD_TIMESTAMP_NAME, NULL); |
| 62 | if (timestamp_dynfield_offset < 0) |
| 63 | return 0; |
| 64 | } |
| 65 | |
| 66 | return *RTE_MBUF_DYNFIELD(mbuf, |
| 67 | timestamp_dynfield_offset, rte_mbuf_timestamp_t *); |
| 68 | } |
| 69 | |
| 70 | static inline void |
| 71 | dump_pkt_burst(uint16_t port_id, uint16_t queue, struct rte_mbuf *pkts[], |
no test coverage detected