qcacmn: Add QDF API to get skb timestamp in microsecond

Add QDF API to get skb timestamp in microsecond.

Change-Id: I14019e5e60599c1499285b92b8727e8d6a9bf782
CRs-Fixed: 3286751
Este commit está contenido en:
Ripan Deuri
2022-09-08 14:03:43 +05:30
cometido por Madan Koyyalamudi
padre 8b843ae157
commit c0e0b4f1e1
Se han modificado 3 ficheros con 34 adiciones y 0 borrados

Ver fichero

@@ -2342,6 +2342,19 @@ __qdf_nbuf_get_timestamp(struct sk_buff *skb)
return ktime_to_ms(skb_get_ktime(skb));
}
/**
* __qdf_nbuf_get_timestamp_us() - get the timestamp for frame
*
* @buf: sk buff
*
* Return: timestamp stored in skb in us
*/
static inline uint64_t
__qdf_nbuf_get_timestamp_us(struct sk_buff *skb)
{
return ktime_to_us(skb_get_ktime(skb));
}
/**
* __qdf_nbuf_get_timedelta_ms() - get time difference in ms
*

Ver fichero

@@ -6154,6 +6154,13 @@ uint64_t qdf_nbuf_get_timestamp(qdf_nbuf_t buf)
qdf_export_symbol(qdf_nbuf_get_timestamp);
uint64_t qdf_nbuf_get_timestamp_us(qdf_nbuf_t buf)
{
return __qdf_nbuf_get_timestamp_us(buf);
}
qdf_export_symbol(qdf_nbuf_get_timestamp_us);
uint64_t qdf_nbuf_get_timedelta_us(qdf_nbuf_t buf)
{
return __qdf_nbuf_get_timedelta_us(buf);