qcacmn: QDF API for skb_clone_fraglist along with copy expand

Add API wrapper function for skb_clone_fraglist along
with skb_copy_expand.

Change-Id: Ib03e16566368d75a7a547fea6fd863e6411f98ef
这个提交包含在:
nobelj
2020-03-01 19:33:38 -08:00
提交者 nshrivas
父节点 09849da4ce
当前提交 7b76263659
修改 2 个文件,包含 39 行新增0 行删除

查看文件

@@ -1697,8 +1697,32 @@ static inline qdf_nbuf_t qdf_nbuf_copy_expand(qdf_nbuf_t buf, int headroom,
{
return __qdf_nbuf_copy_expand(buf, headroom, tailroom);
}
#endif /* NBUF_MEMORY_DEBUG */
/**
* qdf_nbuf_copy_expand_fraglist() - copy and expand nbuf and
* get reference of the fraglist.
* @buf: Network buf instance
* @headroom: Additional headroom to be added
* @tailroom: Additional tailroom to be added
*
* Return: New nbuf that is a copy of buf, with additional head and tailroom
* or NULL if there is no memory
*/
static inline qdf_nbuf_t
qdf_nbuf_copy_expand_fraglist(qdf_nbuf_t buf, int headroom,
int tailroom)
{
buf = qdf_nbuf_copy_expand(buf, headroom, tailroom);
/* get fraglist reference */
if (buf)
__qdf_nbuf_get_ref_fraglist(buf);
return buf;
}
#ifdef WLAN_FEATURE_FASTPATH
/**
* qdf_nbuf_init_fast() - before put buf into pool,turn it to init state