qcacmn: QDF API for skb_copy_expand
Add QDF wrappers for skb_copy_expand Change-Id: I401241259c87a067ed4773bee9fdfc7ee3cdcc23
This commit is contained in:

committed by
nshrivas

parent
8e626ee720
commit
91da9dce36
@@ -1581,6 +1581,24 @@ qdf_nbuf_t qdf_nbuf_clone_debug(qdf_nbuf_t buf, const char *func,
|
||||
*/
|
||||
qdf_nbuf_t qdf_nbuf_copy_debug(qdf_nbuf_t buf, const char *func, uint32_t line);
|
||||
|
||||
#define qdf_nbuf_copy_expand(buf, headroom, tailroom) \
|
||||
qdf_nbuf_copy_expand_debug(buf, headroom, tailroom, __func__, __LINE__)
|
||||
|
||||
/**
|
||||
* qdf_nbuf_copy_expand_debug() - copy and expand nbuf
|
||||
* @buf: Network buf instance
|
||||
* @headroom: Additional headroom to be added
|
||||
* @tailroom: Additional tailroom to be added
|
||||
* @func: name of the calling function
|
||||
* @line: line number of the callsite
|
||||
*
|
||||
* Return: New nbuf that is a copy of buf, with additional head and tailroom
|
||||
* or NULL if there is no memory
|
||||
*/
|
||||
qdf_nbuf_t
|
||||
qdf_nbuf_copy_expand_debug(qdf_nbuf_t buf, int headroom, int tailroom,
|
||||
const char *func, uint32_t line);
|
||||
|
||||
#else /* NBUF_MEMORY_DEBUG */
|
||||
|
||||
static inline void qdf_net_buf_debug_init(void) {}
|
||||
@@ -1648,6 +1666,20 @@ static inline qdf_nbuf_t qdf_nbuf_copy(qdf_nbuf_t buf)
|
||||
return __qdf_nbuf_copy(buf);
|
||||
}
|
||||
|
||||
/**
|
||||
* qdf_nbuf_copy_expand() - copy and expand nbuf
|
||||
* @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(qdf_nbuf_t buf, int headroom,
|
||||
int tailroom)
|
||||
{
|
||||
return __qdf_nbuf_copy_expand(buf, headroom, tailroom);
|
||||
}
|
||||
#endif /* NBUF_MEMORY_DEBUG */
|
||||
|
||||
#ifdef WLAN_FEATURE_FASTPATH
|
||||
|
Reference in New Issue
Block a user