Stores timestamp in the cache structure to share data with datapath. */
| 555 | |
| 556 | /* Stores timestamp in the cache structure to share data with datapath. */ |
| 557 | static inline void |
| 558 | mlx5_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. */ |
| 570 | static inline void |
no outgoing calls
no test coverage detected