* Convert a timestamp format to configure settings in the queue context. * * @param val * timestamp format supported by the queue. * * @return * Converted timestamp format settings. */
| 5524 | * Converted timestamp format settings. |
| 5525 | */ |
| 5526 | static inline uint32_t |
| 5527 | mlx5_ts_format_conv(uint32_t ts_format) |
| 5528 | { |
| 5529 | return ts_format == MLX5_HCA_CAP_TIMESTAMP_FORMAT_FR ? |
| 5530 | MLX5_QPC_TIMESTAMP_FORMAT_FREE_RUNNING : |
| 5531 | MLX5_QPC_TIMESTAMP_FORMAT_DEFAULT; |
| 5532 | } |
| 5533 | |
| 5534 | #endif /* RTE_PMD_MLX5_PRM_H_ */ |
no outgoing calls
no test coverage detected