qcacmn: Change order of conditions for peer stats update
Change order of conditions for peer stats update for KPI optimization. Change-Id: If764ecaf575f9fc60f5c6d3332a7716b6a50be65 CRs-Fixed: 3281386
这个提交包含在:
@@ -1135,25 +1135,25 @@ void DP_PRINT_STATS(const char *fmt, ...);
|
||||
defined(QCA_ENHANCED_STATS_SUPPORT)
|
||||
#define DP_PEER_TO_STACK_INCC_PKT(_handle, _count, _bytes, _cond) \
|
||||
{ \
|
||||
if (!(_handle->hw_txrx_stats_en) || _cond) \
|
||||
if (_cond || !(_handle->hw_txrx_stats_en)) \
|
||||
DP_PEER_STATS_FLAT_INC_PKT(_handle, to_stack, _count, _bytes); \
|
||||
}
|
||||
|
||||
#define DP_PEER_TO_STACK_DECC(_handle, _count, _cond) \
|
||||
{ \
|
||||
if (!(_handle->hw_txrx_stats_en) || _cond) \
|
||||
if (_cond || !(_handle->hw_txrx_stats_en)) \
|
||||
DP_PEER_STATS_FLAT_DEC(_handle, to_stack.num, _count); \
|
||||
}
|
||||
|
||||
#define DP_PEER_MC_INCC_PKT(_handle, _count, _bytes, _cond) \
|
||||
{ \
|
||||
if (!(_handle->hw_txrx_stats_en) || _cond) \
|
||||
if (_cond || !(_handle->hw_txrx_stats_en)) \
|
||||
DP_PEER_PER_PKT_STATS_INC_PKT(_handle, rx.multicast, _count, _bytes); \
|
||||
}
|
||||
|
||||
#define DP_PEER_BC_INCC_PKT(_handle, _count, _bytes, _cond) \
|
||||
{ \
|
||||
if (!(_handle->hw_txrx_stats_en) || _cond) \
|
||||
if (_cond || !(_handle->hw_txrx_stats_en)) \
|
||||
DP_PEER_PER_PKT_STATS_INC_PKT(_handle, rx.bcast, _count, _bytes); \
|
||||
}
|
||||
#elif defined(QCA_VDEV_STATS_HW_OFFLOAD_SUPPORT)
|
||||
|
在新工单中引用
屏蔽一个用户