qcacmn: Implement delay VOW stats for hawkeye

Delay counters per TID have been implemented for following types:
1. Linux stack to hw enqueue delay
2. HW enqueue delay to tx completion delay
3. TX interframe delay
4. RX interframe delay
5. RX frame delay from ring reap to networking stack

Change-Id: I836596cbd878a43955c18b4981cb5b7b43d4df5e
This commit is contained in:
Varsha Mishra
2019-03-11 12:16:14 +05:30
committed by nshrivas
parent 17e1cb5cf4
commit a331e6e55f
14 changed files with 380 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2014-2019 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -2021,6 +2021,19 @@ __qdf_nbuf_set_timestamp(struct sk_buff *skb)
__net_timestamp(skb);
}
/**
* __qdf_nbuf_get_timestamp() - get the timestamp for frame
*
* @buf: sk buff
*
* Return: timestamp stored in skb in ms
*/
static inline uint64_t
__qdf_nbuf_get_timestamp(struct sk_buff *skb)
{
return ktime_to_ms(skb_get_ktime(skb));
}
/**
* __qdf_nbuf_get_timedelta_ms() - get time difference in ms
*