mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
qcacmn: Make rx desc debug API's independent of RX_DESC_DEBUG_CHECK feature
Currently rx descriptor debug info API's are under RX_DESC_DEBUG_CHECK feature, making those API's independent will be enabled with new feature flag RX_DESC_LOGGING. Change-Id: Iadb087f1b3104311b06e161bdeae975a8772e0ee CRs-Fixed: 2869335
This commit is contained in:
parent
0148887367
commit
c6fc528ef6
1 changed files with 22 additions and 23 deletions
|
|
@ -728,21 +728,7 @@ void dp_rx_desc_pool_free(struct dp_soc *soc,
|
|||
void dp_rx_deliver_raw(struct dp_vdev *vdev, qdf_nbuf_t nbuf_list,
|
||||
struct dp_peer *peer);
|
||||
|
||||
#ifdef RX_DESC_DEBUG_CHECK
|
||||
/**
|
||||
* dp_rx_desc_paddr_sanity_check() - paddr sanity for ring desc vs rx_desc
|
||||
* @rx_desc: rx descriptor
|
||||
* @ring_paddr: paddr obatined from the ring
|
||||
*
|
||||
* Returns: QDF_STATUS
|
||||
*/
|
||||
static inline
|
||||
bool dp_rx_desc_paddr_sanity_check(struct dp_rx_desc *rx_desc,
|
||||
uint64_t ring_paddr)
|
||||
{
|
||||
return (ring_paddr == qdf_nbuf_get_frag_paddr(rx_desc->nbuf, 0));
|
||||
}
|
||||
|
||||
#ifdef RX_DESC_LOGGING
|
||||
/*
|
||||
* dp_rx_desc_alloc_dbg_info() - Alloc memory for rx descriptor debug
|
||||
* structure
|
||||
|
|
@ -800,13 +786,6 @@ void dp_rx_desc_update_dbg_info(struct dp_rx_desc *rx_desc,
|
|||
}
|
||||
#else
|
||||
|
||||
static inline
|
||||
bool dp_rx_desc_paddr_sanity_check(struct dp_rx_desc *rx_desc,
|
||||
uint64_t ring_paddr)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static inline
|
||||
void dp_rx_desc_alloc_dbg_info(struct dp_rx_desc *rx_desc)
|
||||
{
|
||||
|
|
@ -822,7 +801,7 @@ void dp_rx_desc_update_dbg_info(struct dp_rx_desc *rx_desc,
|
|||
const char *func_name, uint8_t flag)
|
||||
{
|
||||
}
|
||||
#endif /* RX_DESC_DEBUG_CHECK */
|
||||
#endif /* RX_DESC_LOGGING */
|
||||
|
||||
/**
|
||||
* dp_rx_add_to_free_desc_list() - Adds to a local free descriptor list
|
||||
|
|
@ -1378,6 +1357,20 @@ void dp_rx_desc_frag_prep(struct dp_rx_desc *rx_desc,
|
|||
{
|
||||
}
|
||||
#endif /* DP_RX_MON_MEM_FRAG */
|
||||
|
||||
/**
|
||||
* dp_rx_desc_paddr_sanity_check() - paddr sanity for ring desc vs rx_desc
|
||||
* @rx_desc: rx descriptor
|
||||
* @ring_paddr: paddr obatined from the ring
|
||||
*
|
||||
* Returns: QDF_STATUS
|
||||
*/
|
||||
static inline
|
||||
bool dp_rx_desc_paddr_sanity_check(struct dp_rx_desc *rx_desc,
|
||||
uint64_t ring_paddr)
|
||||
{
|
||||
return (ring_paddr == qdf_nbuf_get_frag_paddr(rx_desc->nbuf, 0));
|
||||
}
|
||||
#else
|
||||
|
||||
static inline bool dp_rx_desc_check_magic(struct dp_rx_desc *rx_desc)
|
||||
|
|
@ -1411,6 +1404,12 @@ void dp_rx_desc_frag_prep(struct dp_rx_desc *rx_desc,
|
|||
}
|
||||
#endif /* DP_RX_MON_MEM_FRAG */
|
||||
|
||||
static inline
|
||||
bool dp_rx_desc_paddr_sanity_check(struct dp_rx_desc *rx_desc,
|
||||
uint64_t ring_paddr)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
#endif /* RX_DESC_DEBUG_CHECK */
|
||||
|
||||
void dp_rx_enable_mon_dest_frag(struct rx_desc_pool *rx_desc_pool,
|
||||
|
|
|
|||
Loading…
Reference in a new issue