MCPcopy Create free account
hub / github.com/F-Stack/f-stack / get_timestamp

Function get_timestamp

dpdk/app/test-pmd/util.c:54–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54static inline rte_mbuf_timestamp_t
55get_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
70static inline void
71dump_pkt_burst(uint16_t port_id, uint16_t queue, struct rte_mbuf *pkts[],

Callers 1

dump_pkt_burstFunction · 0.85

Calls 1

rte_mbuf_dynfield_lookupFunction · 0.85

Tested by

no test coverage detected