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

Function is_timestamp_enabled

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

Source from the content-addressed store, hash-verified

35}
36
37static inline bool
38is_timestamp_enabled(const struct rte_mbuf *mbuf)
39{
40 static uint64_t timestamp_rx_dynflag;
41 int timestamp_rx_dynflag_offset;
42
43 if (timestamp_rx_dynflag == 0) {
44 timestamp_rx_dynflag_offset = rte_mbuf_dynflag_lookup(
45 RTE_MBUF_DYNFLAG_RX_TIMESTAMP_NAME, NULL);
46 if (timestamp_rx_dynflag_offset < 0)
47 return false;
48 timestamp_rx_dynflag = RTE_BIT64(timestamp_rx_dynflag_offset);
49 }
50
51 return (mbuf->ol_flags & timestamp_rx_dynflag) != 0;
52}
53
54static inline rte_mbuf_timestamp_t
55get_timestamp(const struct rte_mbuf *mbuf)

Callers 1

dump_pkt_burstFunction · 0.85

Calls 1

rte_mbuf_dynflag_lookupFunction · 0.85

Tested by

no test coverage detected