qcacmn: Add WBUFF statistics

Currently, there are no statistics whatsoever present in WBUFF module.
To start with, add some basic statistics to the WBUFF module.

Change-Id: I63c06cfb8b1430b2e86539f88025e6d74a00012b
CRs-Fixed: 3548509
This commit is contained in:
Manikanta Pubbisetty
2023-07-03 18:30:58 +05:30
committad av Rahul Choudhary
förälder 799450bbce
incheckning e2b9779df7
4 ändrade filer med 164 tillägg och 0 borttagningar

Visa fil

@@ -2837,6 +2837,19 @@ static inline unsigned int __qdf_nbuf_get_truesize(struct sk_buff *skb)
return skb->truesize;
}
/**
* __qdf_nbuf_get_allocsize() - Return the actual size of the skb->head
* excluding the header and variable data area
* @skb: sk buff
*
* Return: actual allocated size of network buffer
*/
static inline unsigned int __qdf_nbuf_get_allocsize(struct sk_buff *skb)
{
return SKB_WITH_OVERHEAD(skb->truesize) -
SKB_DATA_ALIGN(sizeof(struct sk_buff));
}
#ifdef CONFIG_WLAN_SYSFS_MEM_STATS
/**
* __qdf_record_nbuf_nbytes() - add or subtract the size of the nbuf