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:

zatwierdzone przez
nshrivas

rodzic
16cd1b2e8d
commit
c30b51c378
@@ -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
|
* @rx_desc: rx descriptor pointer to be prepared
|
||||||
* @nbuf: nbuf to be associated with rx_desc
|
* @nbuf: nbuf to be associated with rx_desc
|
||||||
*
|
*
|
||||||
|
* Note: assumption is that we are associating a nbuf which is mapped
|
||||||
|
*
|
||||||
* Return: none
|
* Return: none
|
||||||
*/
|
*/
|
||||||
static inline void dp_rx_desc_prep(struct dp_rx_desc *rx_desc, qdf_nbuf_t nbuf)
|
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->magic = DP_RX_DESC_MAGIC;
|
||||||
rx_desc->nbuf = nbuf;
|
rx_desc->nbuf = nbuf;
|
||||||
|
rx_desc->unmapped = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#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)
|
static inline void dp_rx_desc_prep(struct dp_rx_desc *rx_desc, qdf_nbuf_t nbuf)
|
||||||
{
|
{
|
||||||
rx_desc->nbuf = nbuf;
|
rx_desc->nbuf = nbuf;
|
||||||
|
rx_desc->unmapped = 0;
|
||||||
}
|
}
|
||||||
#endif /* RX_DESC_DEBUG_CHECK */
|
#endif /* RX_DESC_DEBUG_CHECK */
|
||||||
#endif /* _DP_RX_H */
|
#endif /* _DP_RX_H */
|
||||||
|
Reference in New Issue
Block a user