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

Function mlx5_ts_format_conv

dpdk/drivers/common/mlx5/mlx5_prm.h:5526–5532  ·  view source on GitHub ↗

* Convert a timestamp format to configure settings in the queue context. * * @param val * timestamp format supported by the queue. * * @return * Converted timestamp format settings. */

Source from the content-addressed store, hash-verified

5524 * Converted timestamp format settings.
5525 */
5526static inline uint32_t
5527mlx5_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_ */

Calls

no outgoing calls

Tested by

no test coverage detected