|
@@ -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);
|
|
return __qdf_nbuf_copy_expand(buf, headroom, tailroom);
|
|
}
|
|
}
|
|
|
|
+
|
|
#endif /* NBUF_MEMORY_DEBUG */
|
|
#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
|
|
#ifdef WLAN_FEATURE_FASTPATH
|
|
/**
|
|
/**
|
|
* qdf_nbuf_init_fast() - before put buf into pool,turn it to init state
|
|
* qdf_nbuf_init_fast() - before put buf into pool,turn it to init state
|