qcacmn: Add a change to do fast transmit completion
Lot of checks in Tx completion path are for special handlings such as when ol stats are enabled some protective debug checks etc.. Add a logic to fast free of buffer at transmit completion. If extended stats not enabled(Typically needed for enterprise cases) do the buffer free faster. This is controlled through a flag. Change-Id: I04873b5e3643d8e93e5b248fcaf23504dcb7624f
This commit is contained in:

committato da
nshrivas

parent
2bfeac4376
commit
41c0716617
@@ -726,6 +726,24 @@ dp_tx_is_desc_id_valid(struct dp_soc *soc, uint32_t tx_desc_id)
|
||||
}
|
||||
#endif /* QCA_DP_TX_DESC_ID_CHECK */
|
||||
|
||||
#ifdef QCA_DP_TX_DESC_FAST_COMP_ENABLE
|
||||
static inline void dp_tx_desc_update_fast_comp_flag(struct dp_soc *soc,
|
||||
struct dp_tx_desc_s *desc,
|
||||
uint8_t allow_fast_comp)
|
||||
{
|
||||
if (qdf_likely(!(desc->flags & DP_TX_DESC_FLAG_TO_FW)) &&
|
||||
qdf_likely(allow_fast_comp)) {
|
||||
desc->flags |= DP_TX_DESC_FLAG_SIMPLE;
|
||||
}
|
||||
}
|
||||
#else
|
||||
static inline void dp_tx_desc_update_fast_comp_flag(struct dp_soc *soc,
|
||||
struct dp_tx_desc_s *desc,
|
||||
uint8_t allow_fast_comp)
|
||||
{
|
||||
}
|
||||
#endif /* QCA_DP_TX_DESC_FAST_COMP_ENABLE */
|
||||
|
||||
/**
|
||||
* dp_tx_desc_find() - find dp tx descriptor from cokie
|
||||
* @soc - handle for the device sending the data
|
||||
|
Fai riferimento in un nuovo problema
Block a user