qcacmn: add qdf API for skb_orphan

Add the qdf abstraction API for skb_orphan

Change-Id: I0fabb3fdd02e289d7bad97efebb2853e6827f458
CRs-Fixed: 2232427
This commit is contained in:
Chaithanya Garrepalli
2018-04-27 11:19:58 +05:30
committato da nshrivas
parent 4c9a4edde6
commit 5142030dd9
2 ha cambiato i file con 29 aggiunte e 0 eliminazioni

Vedi File

@@ -1860,6 +1860,20 @@ __qdf_nbuf_get_timedelta_us(struct sk_buff *skb)
{
return ktime_to_us(net_timedelta(skb->tstamp));
}
/**
* __qdf_nbuf_orphan() - orphan a nbuf
* @skb: sk buff
*
* If a buffer currently has an owner then we call the
* owner's destructor function
*
* Return: void
*/
static inline void __qdf_nbuf_orphan(struct sk_buff *skb)
{
return skb_orphan(skb);
}
#ifdef CONFIG_WIN
#include <i_qdf_nbuf_w.h>
#else