qcacmn: Add qdf_nbuf_fast_xmit() API
Some platforms support a skb_recycler feature which patches the Linux kernel to add a bool fast_xmit member to struct sk_buff. Add a QDF abstraction to return the value of this member when it is supported, and return false when it is not supported. Change-Id: I6dfe6276779218f4d0245ec44035b4aa596d0e2a CRs-Fixed: 3418516
This commit is contained in:

committed by
Madan Koyyalamudi

parent
ddabd3eda4
commit
8e3fc021bf
@@ -2664,6 +2664,19 @@ bool __qdf_nbuf_is_ipv4_v6_pure_tcp_ack(struct sk_buff *skb)
|
||||
return is_tcp_ack;
|
||||
}
|
||||
|
||||
#ifdef QCA_DP_NBUF_FAST_RECYCLE_CHECK
|
||||
bool qdf_nbuf_fast_xmit(qdf_nbuf_t nbuf)
|
||||
{
|
||||
return nbuf->fast_xmit;
|
||||
}
|
||||
#else
|
||||
bool qdf_nbuf_fast_xmit(qdf_nbuf_t nbuf)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
qdf_export_symbol(qdf_nbuf_fast_xmit);
|
||||
|
||||
#ifdef NBUF_MEMORY_DEBUG
|
||||
|
||||
static spinlock_t g_qdf_net_buf_track_lock[QDF_NET_BUF_TRACK_MAX_SIZE];
|
||||
|
Reference in New Issue
Block a user