qcacmn: avoid vdev stats aggregate for every ppdu stats event
Avoid vdev aggregate stats for every ppdu stats event as it is consuming high CPU in veriwave max clients testcase. Instead aggregate the stats when ifconfig athX command is issued. Add CDP API to aggregate and update stats called when needed Change-Id: I801d5f8fab0c275942b77a9975293f95bd4026b0 CRs-Fixed: 2220704
This commit is contained in:

committed by
nshrivas

szülő
46ffb86105
commit
2faa46fbfb
@@ -1498,17 +1498,18 @@ void cdp_vdev_tx_unlock(ol_txrx_soc_handle soc,
|
||||
/**
|
||||
* cdp_ath_getstats() - get updated athstats
|
||||
* @soc: opaque soc handle
|
||||
* @pdev: data path pdev handle
|
||||
* @net_device_stats: interface stats
|
||||
* @rtnl_link_stats64: device statistics structure
|
||||
* @dev: dp interface handle
|
||||
* @stats: cdp network device stats structure
|
||||
* @type: device type pdev/vdev
|
||||
*
|
||||
* Return: void
|
||||
*/
|
||||
static inline void cdp_ath_getstats(ol_txrx_soc_handle soc,
|
||||
struct cdp_pdev *pdev, struct cdp_dev_stats *stats)
|
||||
void *dev, struct cdp_dev_stats *stats,
|
||||
uint8_t type)
|
||||
{
|
||||
if (soc && soc->ops && soc->ops->cmn_drv_ops->txrx_ath_getstats)
|
||||
soc->ops->cmn_drv_ops->txrx_ath_getstats(pdev, stats);
|
||||
soc->ops->cmn_drv_ops->txrx_ath_getstats(dev, stats, type);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user