net/mlx5: fix timestamp initialization on empty clock queue
authorViacheslav Ovsiienko <viacheslavo@nvidia.com>
Wed, 28 Jul 2021 14:23:35 +0000 (17:23 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 29 Jul 2021 16:01:23 +0000 (18:01 +0200)
commitdab07e489cd5be47a017e0b8558b3fe3ee03b979
tree4d504642ad2bc59db27b15f9586b491f69d1d76d
parente3db2250656883a4de037d3e702187b5dc5b7bfb
net/mlx5: fix timestamp initialization on empty clock queue

The committing completions by clock queue might be delayed
after queue initialization is done and the only Clock Queue
completion entry (CQE) might keep the invalid status till
the CQE first update happens.

The mlx5_txpp_update_timestamp() wrongly recognized invalid
status as error and reported about lost synchronization.

The patch recognizes the invalid status as "not updated yet"
and accurate scheduling initialization routine waits till
CQE first update happens.

Some collateral typos in comment are fixed as well.

Fixes: 77522be0a56d ("net/mlx5: introduce clock queue service routine")
Cc: stable@dpdk.org
Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_txpp.c