From c30b51c3780c541a15524ac4a09d44a310f3e6cb Mon Sep 17 00:00:00 2001 From: Mohit Khanna Date: Fri, 1 Feb 2019 15:30:26 -0800 Subject: [PATCH] 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 --- dp/wifi3.0/dp_rx.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dp/wifi3.0/dp_rx.h b/dp/wifi3.0/dp_rx.h index 37bfa6e115..12db05c098 100644 --- a/dp/wifi3.0/dp_rx.h +++ b/dp/wifi3.0/dp_rx.h @@ -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 */