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:
@@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user