qcacmn: add rx nbuf ipa smmu map/unmap trace

Currently in_use and unmapped flag from rx_desc can not know is
the rx nbuf has done IPA smmu map/unmap accurately.
add rx nbuf IPA smmu map/unmap flag in qdf_nbuf_cb, and use
this flag to check if IPA smmu map/unmap need to be done or not.

Change-Id: I19bbc6cc69ba752ef7c58d41fbe26299ca96d29e
CRs-Fixed: 2731313
This commit is contained in:
Jinwei Chen
2020-07-20 23:10:57 +08:00
committed by snandini
parent fc461df2d5
commit d552bfa2cb
7 changed files with 115 additions and 3 deletions

View File

@@ -119,4 +119,28 @@ static inline uint8_t qdf_nbuf_is_exc_frame(qdf_nbuf_t buf)
{
return QDF_NBUF_CB_RX_PACKET_EXC_FRAME(buf);
}
/**
* qdf_nbuf_set_rx_ipa_smmu_map() - set ipa smmu mapped flag
* @buf: Network buffer
* @value: 1 - ipa smmu mapped, 0 - ipa smmu unmapped
*
* Return: none
*/
static inline void qdf_nbuf_set_rx_ipa_smmu_map(qdf_nbuf_t buf,
uint8_t value)
{
QDF_NBUF_CB_RX_PACKET_IPA_SMMU_MAP(buf) = value;
}
/**
* qdf_nbuf_is_rx_ipa_smmu_map() - check ipa smmu map flag
* @buf: Network buffer
*
* Return 0 or 1
*/
static inline uint8_t qdf_nbuf_is_rx_ipa_smmu_map(qdf_nbuf_t buf)
{
return QDF_NBUF_CB_RX_PACKET_IPA_SMMU_MAP(buf);
}
#endif /* _QDF_NBUF_M_H */