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

Function mlx5_txpp_cache_timestamp

dpdk/drivers/net/mlx5/mlx5_txpp.c:557–567  ·  view source on GitHub ↗

Stores timestamp in the cache structure to share data with datapath. */

Source from the content-addressed store, hash-verified

555
556/* Stores timestamp in the cache structure to share data with datapath. */
557static inline void
558mlx5_txpp_cache_timestamp(struct mlx5_dev_ctx_shared *sh,
559 uint64_t ts, uint64_t ci)
560{
561 ci = ci << (64 - MLX5_CQ_INDEX_WIDTH);
562 ci |= (ts << MLX5_CQ_INDEX_WIDTH) >> MLX5_CQ_INDEX_WIDTH;
563 rte_compiler_barrier();
564 __atomic_store_n(&sh->txpp.ts.ts, ts, __ATOMIC_RELAXED);
565 __atomic_store_n(&sh->txpp.ts.ci_ts, ci, __ATOMIC_RELAXED);
566 rte_wmb();
567}
568
569/* Reads timestamp from Clock Queue CQE and stores in the cache. */
570static inline void

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected