qcacmn: Reset unmapped flag in during replenish logic

This rx_desc flag was removed from the function by a previous change
with id Iaa345d04b8d48814f88ed6e2237fc67696f6a20c. This flag is
needed to keep track of whether the nbuf associated with a rx_desc has
been unmapped or not. Set it to 0 when a mapped nbuf is associated with
the rx_desc.

Change-Id: I24e103c5698a556f478a3f7917076d31b5490661
CRs-Fixed: 2393056
This commit is contained in:
Mohit Khanna
2019-02-01 15:30:26 -08:00
committed by nshrivas
parent 16cd1b2e8d
commit c30b51c378

View File

@@ -1012,12 +1012,15 @@ static inline bool dp_rx_desc_check_magic(struct dp_rx_desc *rx_desc)
* @rx_desc: rx descriptor pointer to be prepared
* @nbuf: nbuf to be associated with rx_desc
*
* Note: assumption is that we are associating a nbuf which is mapped
*
* Return: none
*/
static inline void dp_rx_desc_prep(struct dp_rx_desc *rx_desc, qdf_nbuf_t nbuf)
{
rx_desc->magic = DP_RX_DESC_MAGIC;
rx_desc->nbuf = nbuf;
rx_desc->unmapped = 0;
}
#else
@@ -1030,6 +1033,7 @@ static inline bool dp_rx_desc_check_magic(struct dp_rx_desc *rx_desc)
static inline void dp_rx_desc_prep(struct dp_rx_desc *rx_desc, qdf_nbuf_t nbuf)
{
rx_desc->nbuf = nbuf;
rx_desc->unmapped = 0;
}
#endif /* RX_DESC_DEBUG_CHECK */
#endif /* _DP_RX_H */