nvethernet: schedule TX timestamp workqueue

Issue: With TSN + PTP test cases, PTP packets
shaped based on TSN GCL which may lead to not
having time stamp when asked.

Fix: in case of failure to get timestamp,
schedule workqueue again to try to get timestamp.

Bug 200777069

Change-Id: Ic557f6ba7df5147ce85b21278f053e07a984f410
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2599845
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Rakesh Goyal
2021-09-24 09:54:07 +05:30
committed by Revanth Kumar Uppala
parent 44b74a383b
commit 260d005cc1
2 changed files with 10 additions and 0 deletions

View File

@@ -112,6 +112,11 @@
*/
#define ETHER_DEFAULT_PTP_QUEUE 3U
/**
* @brief TX timestamp miss threshold
*/
#define TS_MISS_THRESHOLD 200U
/**
* @brief Ethernet clk rates
*/